Commit f99fa3fc authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Removed -cpu host from KVM detection

parent a83efcd4
......@@ -13,7 +13,6 @@ all:
tar xf libguestfs-1.42.0.tar.gz
patch -Np1 -d libguestfs-1.42.0 < libguestfs-1.42.0-certo.patch
patch -Np1 -d libguestfs-1.42.0 < libguestfs-1.42.0-cpu_host.patch
patch -Np1 -d libguestfs-1.42.0 < libguestfs-1.42.0-mlv2v.patch
cd libguestfs-1.42.0 && ./configure --prefix=/usr --with-extra-packages="glibc readline ncurses util-linux xz pcre zlib systemd iproute2 libcap jansson augeas hivex libtirpc parted mdadm libaio cryptsetup popt openssl json-c cdrkit gptfdisk gcc"
$(MAKE) -C libguestfs-1.42.0
......
diff -uNr libguestfs-1.42.0/lib/qemu.c libguestfs-1.42.0-cpu_host/lib/qemu.c
--- libguestfs-1.42.0/lib/qemu.c 2020-03-06 19:31:08.173077897 +0000
+++ libguestfs-1.42.0-cpu_host/lib/qemu.c 2020-06-19 15:26:17.305478459 +0000
@@ -576,6 +576,7 @@
#endif
"accel=kvm:tcg");
guestfs_int_cmd_add_string_unquoted (cmd, " -qmp stdio");
+ guestfs_int_cmd_add_string_unquoted (cmd, " -cpu host");
guestfs_int_cmd_clear_capture_errors (cmd);
fd = guestfs_int_cmd_pipe_run (cmd, "r");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment