mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
arm: Disable -machine, -enable-kvm options except on x86, x86-64.
Presently KVM is only applicable to x86 and x86-64 (although that will change in future, and there are rumoured to be implementations for some current non-x86 architectures). In any case having these options breaks ARM, so disable them for non-x86 architectures at the moment.
This commit is contained in:
@@ -598,6 +598,10 @@ launch_appliance (guestfs_h *g)
|
||||
if (qemu_supports (g, "-nodefconfig"))
|
||||
add_cmdline (g, "-nodefconfig");
|
||||
|
||||
/* The #if on the next line should really be "architectures for
|
||||
* which KVM is commonly available.
|
||||
*/
|
||||
#if defined(__i386__) || defined(__x86_64__)
|
||||
/* The qemu -machine option (added 2010-12) is a bit more sane
|
||||
* since it falls back through various different acceleration
|
||||
* modes, so try that first (thanks Markus Armbruster).
|
||||
@@ -634,6 +638,7 @@ launch_appliance (guestfs_h *g)
|
||||
is_openable (g, "/dev/kvm", O_RDWR|O_CLOEXEC))
|
||||
add_cmdline (g, "-enable-kvm");
|
||||
}
|
||||
#endif /* i386 or x86-64 */
|
||||
|
||||
/* Newer versions of qemu (from around 2009/12) changed the
|
||||
* behaviour of monitors so that an implicit '-monitor stdio' is
|
||||
|
||||
Reference in New Issue
Block a user