rpms/python-virtinst/devel virtinst-0.500.3-64bit-flag.patch, NONE, 1.1 python-virtinst.spec, 1.81, 1.82
Cole Robinson
crobinso at fedoraproject.org
Wed Jul 14 19:56:28 UTC 2010
Author: crobinso
Update of /cvs/pkgs/rpms/python-virtinst/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv582
Modified Files:
python-virtinst.spec
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
Index: python-virtinst.spec
===================================================================
RCS file: /cvs/pkgs/rpms/python-virtinst/devel/python-virtinst.spec,v
retrieving revision 1.81
retrieving revision 1.82
diff -u -p -r1.81 -r1.82
--- python-virtinst.spec 7 Jul 2010 20:46:55 -0000 1.81
+++ python-virtinst.spec 14 Jul 2010 19:56:28 -0000 1.82
@@ -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
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 (clo
%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 <crobinso at redhat.com> - 0.500.3-3.fc14
+- If host is 64bit, make sure VM always sees 64bit CPU (bz 611584)
+
* Wed Jul 07 2010 Cole Robinson <crobinso at redhat.com> - 0.500.3-2.fc14
- Keep windows CDROM attached for second install stage
- Fix pool source listing in virt-manager
More information about the scm-commits
mailing list