mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone

Blame SOURCES/0030-launch-libvirt-Use-host-passthrough-instead-of-host-.patch

022f11
From 7790ed8ef557f413c46de458cf8a91e4d73fcca6 Mon Sep 17 00:00:00 2001
022f11
From: "Richard W.M. Jones" <rjones@redhat.com>
022f11
Date: Wed, 25 Sep 2013 12:20:37 +0100
022f11
Subject: [PATCH] launch: libvirt: Use host-passthrough instead of host-model.
022f11
022f11
<cpu model="host-passthrough"> really passes -cpu host to qemu, which
022f11
is what we want since we don't care about live migration or ABI
022f11
stability.
022f11
022f11
This should avoid http://bugzilla.redhat.com/870071 .
022f11
022f11
Note this "taints" the libvirt domain.  We don't particularly care
022f11
about that, and the reason for the tainting doesn't seem to make much
022f11
sense anyway.
022f11
022f11
This updates commit 6f76fdb41eb6bd124fbc3d084f5c2a3371b37d9b.
022f11
022f11
(cherry picked from commit 2f4f7726e8c81cc56befcb7caa78c01174354d76)
022f11
---
022f11
 src/launch-libvirt.c | 3 +--
022f11
 1 file changed, 1 insertion(+), 2 deletions(-)
022f11
022f11
diff --git a/src/launch-libvirt.c b/src/launch-libvirt.c
022f11
index 3690b1d..80bf44c 100644
022f11
--- a/src/launch-libvirt.c
022f11
+++ b/src/launch-libvirt.c
022f11
@@ -822,7 +822,6 @@ construct_libvirt_xml_cpu (guestfs_h *g,
022f11
 
022f11
   /* It is faster to pass the CPU host model to the appliance,
022f11
    * allowing maximum speed for things like checksums, encryption.
022f11
-   * Note this may cause problems on some CPUs.  See: RHBZ#870071.
022f11
    * Only do this with KVM.  It is broken in subtle ways on TCG, and
022f11
    * fairly pointless anyway.
022f11
    */
022f11
@@ -830,7 +829,7 @@ construct_libvirt_xml_cpu (guestfs_h *g,
022f11
     XMLERROR (-1, xmlTextWriterStartElement (xo, BAD_CAST "cpu"));
022f11
     XMLERROR (-1,
022f11
 	      xmlTextWriterWriteAttribute (xo, BAD_CAST "mode",
022f11
-					   BAD_CAST "host-model"));
022f11
+					   BAD_CAST "host-passthrough"));
022f11
     XMLERROR (-1, xmlTextWriterStartElement (xo, BAD_CAST "model"));
022f11
     XMLERROR (-1,
022f11
 	      xmlTextWriterWriteAttribute (xo, BAD_CAST "fallback",
022f11
-- 
022f11
1.8.3.1
022f11