rpms/python-virtinst/F-13 virtinst-0.500.3-64bit-flag.patch,NONE,1.1

Cole Robinson crobinso at fedoraproject.org
Wed Jul 14 20:01:29 UTC 2010


Author: crobinso

Update of /cvs/pkgs/rpms/python-virtinst/F-13
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv1283

Added Files:
	virtinst-0.500.3-64bit-flag.patch 
Log Message:
If host is 64bit, make sure VM always sees 64bit CPU (bz 611584)


virtinst-0.500.3-64bit-flag.patch:
 Guest.py |    6 ++++++
 1 file changed, 6 insertions(+)

--- NEW FILE virtinst-0.500.3-64bit-flag.patch ---
diff -rup virtinst-0.500.3/virtinst/Guest.py new/virtinst/Guest.py
--- virtinst-0.500.3/virtinst/Guest.py	2010-07-14 15:52:03.137472000 -0400
+++ new/virtinst/Guest.py	2010-07-14 15:51:56.729949000 -0400
@@ -728,6 +728,12 @@ class Guest(object):
             xml += "  <cpu match='exact'>\n"
             xml += "    <model>%s</model>\n" % model
             xml += "    <feature policy='force' name='x2apic'/>\n"
+
+            # If capabilities lists the 'lm' (64 bit) feature, we need
+            # to carry it over otherwise the guest will only see a 32bit cpu
+            if self._caps.host.cpu.features["lm"]:
+                xml += "    <feature policy='optional' name='lm'/>\n"
+
             xml += "  </cpu>"
 
         return xml



More information about the scm-commits mailing list