X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=src%2Flaunch.c;h=31d98af7fc671ab8544322d36fedea686ae79fff;hb=7aae04efa09e95773bda1e6a637fd38bfa2d076e;hp=310a88dd7b2f03b4be76c853b870badfe9b44785;hpb=7e484865894b98de7a976a688c19e64bdd13dade;p=libguestfs.git diff --git a/src/launch.c b/src/launch.c index 310a88d..31d98af 100644 --- a/src/launch.c +++ b/src/launch.c @@ -494,7 +494,19 @@ launch_appliance (guestfs_h *g) */ if (qemu_supports (g, "-machine")) { add_cmdline (g, "-machine"); +#if QEMU_MACHINE_TYPE_IS_BROKEN + /* Workaround for qemu 0.15: We have to add the '[type=]pc' + * since there is no default. This is not a permanent solution + * because this only works on PC-like hardware. Other platforms + * like ppc would need a different machine type. + * + * This bug is fixed in qemu commit 2645c6dcaf6ea2a51a, and was + * not a problem in qemu < 0.15. + */ + add_cmdline (g, "pc,accel=kvm:tcg"); +#else add_cmdline (g, "accel=kvm:tcg"); +#endif } else { /* qemu sometimes needs this option to enable hardware * virtualization, but some versions of 'qemu-kvm' will use KVM