diff --git a/python-virtinst.spec b/python-virtinst.spec index 45ccb2f..26b906a 100644 --- a/python-virtinst.spec +++ b/python-virtinst.spec @@ -17,7 +17,7 @@ Summary: Python modules and utilities for installing virtual machines Name: python-%{appname} Version: 0.500.3 -Release: 2%{_extra_release} +Release: 3%{_extra_release} Source0: http://virt-manager.org/download/sources/%{appname}/%{appname}-%{version}.tar.gz # Enable x2apic for new KVM guests Patch1: %{appname}-%{version}-use-x2apic.patch @@ -25,6 +25,8 @@ Patch1: %{appname}-%{version}-use-x2apic.patch Patch2: %{appname}-%{version}-fix-windows-cdrom.patch # Fix pool source listing in virt-manager Patch3: %{appname}-%{version}-poolsource-check.patch +# If host is 64bit, make sure VM always sees 64bit CPU (bz 611584) +Patch4: %{appname}-%{version}-64bit-flag.patch License: GPLv2+ Group: Development/Libraries @@ -55,6 +57,7 @@ and install new VMs) and virt-clone (clone an existing virtual machine). %patch1 -p1 %patch2 -p1 %patch3 -p1 +%patch4 -p1 %build python setup.py build @@ -90,6 +93,9 @@ rm -rf $RPM_BUILD_ROOT %{_bindir}/virt-convert %changelog +* Wed Jul 14 2010 Cole Robinson - 0.500.3-3.fc14 +- If host is 64bit, make sure VM always sees 64bit CPU (bz 611584) + * Wed Jul 07 2010 Cole Robinson - 0.500.3-2.fc14 - Keep windows CDROM attached for second install stage - Fix pool source listing in virt-manager diff --git a/virtinst-0.500.3-64bit-flag.patch b/virtinst-0.500.3-64bit-flag.patch new file mode 100644 index 0000000..2a4c543 --- /dev/null +++ b/virtinst-0.500.3-64bit-flag.patch @@ -0,0 +1,16 @@ +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 += " \n" + xml += " %s\n" % model + xml += " \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 += " \n" ++ + xml += " " + + return xml