78dbd805f8
resolves: rhbz#2168625 Use q35 machine type for libguestfs appliance resolves: rhbz#2168578
36 lines
1.1 KiB
Diff
36 lines
1.1 KiB
Diff
From 14679ced98c82fe61d97159375c46ffdc9a7502a Mon Sep 17 00:00:00 2001
|
|
From: "Richard W.M. Jones" <rjones@redhat.com>
|
|
Date: Thu, 9 Feb 2023 13:38:50 +0000
|
|
Subject: [PATCH] lib: Choose q35 machine type for x86-64
|
|
|
|
This machine type is more modern than the older 'pc' type and as most
|
|
qemu development is now focused there we expect it will perform and
|
|
behave better. In almost all respects this change should make no
|
|
difference.
|
|
|
|
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2168578
|
|
Acked-by: Laszlo Ersek <lersek@redhat.com>
|
|
See-also: https://listman.redhat.com/archives/libguestfs/2023-February/030645.html
|
|
(cherry picked from commit f0f8e6c5fe0c3f6d5d90534d263bded3a4dc7e8d)
|
|
---
|
|
lib/guestfs-internal.h | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/lib/guestfs-internal.h b/lib/guestfs-internal.h
|
|
index 306f2a2e6..fb55e0261 100644
|
|
--- a/lib/guestfs-internal.h
|
|
+++ b/lib/guestfs-internal.h
|
|
@@ -113,6 +113,9 @@ cleanup_mutex_unlock (pthread_mutex_t **ptr)
|
|
#define MAX_WINDOWS_EXPLORER_SIZE (4 * 1000 * 1000)
|
|
|
|
/* Machine types. */
|
|
+#if defined(__x86_64__)
|
|
+#define MACHINE_TYPE "q35"
|
|
+#endif
|
|
#ifdef __arm__
|
|
#define MACHINE_TYPE "virt"
|
|
#endif
|
|
--
|
|
2.31.1
|
|
|