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:
Richard W.M. Jones
2013-09-25 12:20:37 +01:00
parent ae2dd1a9e7
commit 2f4f7726e8

View File

@@ -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",