mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
launch: libvirt: Use host-passthrough instead of host-model.
<cpu model="host-passthrough"> really passes -cpu host to qemu, which
is what we want since we don't care about live migration or ABI
stability.
This should avoid http://bugzilla.redhat.com/870071 .
Note this "taints" the libvirt domain. We don't particularly care
about that, and the reason for the tainting doesn't seem to make much
sense anyway.
This updates commit 6f76fdb41e.
This commit is contained in:
@@ -839,7 +839,6 @@ construct_libvirt_xml_cpu (guestfs_h *g,
|
||||
#ifndef __arm__
|
||||
/* It is faster to pass the CPU host model to the appliance,
|
||||
* allowing maximum speed for things like checksums, encryption.
|
||||
* Note this may cause problems on some CPUs. See: RHBZ#870071.
|
||||
* Only do this with KVM. It is broken in subtle ways on TCG, and
|
||||
* fairly pointless anyway.
|
||||
*/
|
||||
@@ -847,7 +846,7 @@ construct_libvirt_xml_cpu (guestfs_h *g,
|
||||
XMLERROR (-1, xmlTextWriterStartElement (xo, BAD_CAST "cpu"));
|
||||
XMLERROR (-1,
|
||||
xmlTextWriterWriteAttribute (xo, BAD_CAST "mode",
|
||||
BAD_CAST "host-model"));
|
||||
BAD_CAST "host-passthrough"));
|
||||
XMLERROR (-1, xmlTextWriterStartElement (xo, BAD_CAST "model"));
|
||||
XMLERROR (-1,
|
||||
xmlTextWriterWriteAttribute (xo, BAD_CAST "fallback",
|
||||
|
||||
Reference in New Issue
Block a user