[Libguestfs] [PATCH] lib: Choose q35 machine type for x86-64

Richard W.M. Jones rjones at redhat.com
Thu Feb 9 13:45:33 UTC 2023


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
---
 lib/guestfs-internal.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/guestfs-internal.h b/lib/guestfs-internal.h
index 07a2b9f617..4e9a103d78 100644
--- a/lib/guestfs-internal.h
+++ b/lib/guestfs-internal.h
@@ -128,6 +128,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.39.0



More information about the Libguestfs mailing list