- fate#326698: Add support for Xen's PVH guest type
virtinst-add-pvh-support.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=451
This commit is contained in:
parent
7087c4565a
commit
896e78020a
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Dec 17 14:19:11 MST 2018 - carnold@suse.com
|
||||||
|
|
||||||
|
- fate#326698: Add support for Xen's PVH guest type
|
||||||
|
virtinst-add-pvh-support.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Dec 3 13:31:50 UTC 2018 - Stasiek Michalski <hellcp@mailbox.org>
|
Mon Dec 3 13:31:50 UTC 2018 - Stasiek Michalski <hellcp@mailbox.org>
|
||||||
|
|
||||||
|
@ -54,6 +54,7 @@ Patch124: virtinst-set-cache-mode-unsafe-for-install.patch
|
|||||||
Patch125: virtinst-s390x-disable-graphics.patch
|
Patch125: virtinst-s390x-disable-graphics.patch
|
||||||
Patch126: virtinst-add-caasp-support.patch
|
Patch126: virtinst-add-caasp-support.patch
|
||||||
Patch127: virtinst-add-sle15-detection-support.patch
|
Patch127: virtinst-add-sle15-detection-support.patch
|
||||||
|
Patch128: virtinst-add-pvh-support.patch
|
||||||
# Bug Fixes
|
# Bug Fixes
|
||||||
Patch150: virtman-prevent-double-click-starting-vm-twice.patch
|
Patch150: virtman-prevent-double-click-starting-vm-twice.patch
|
||||||
Patch151: virtman-increase-setKeepAlive-count.patch
|
Patch151: virtman-increase-setKeepAlive-count.patch
|
||||||
@ -182,6 +183,7 @@ machine).
|
|||||||
%patch125 -p1
|
%patch125 -p1
|
||||||
%patch126 -p1
|
%patch126 -p1
|
||||||
%patch127 -p1
|
%patch127 -p1
|
||||||
|
%patch128 -p1
|
||||||
# Bug Fixes
|
# Bug Fixes
|
||||||
%patch150 -p1
|
%patch150 -p1
|
||||||
%patch151 -p1
|
%patch151 -p1
|
||||||
|
54
virtinst-add-pvh-support.patch
Normal file
54
virtinst-add-pvh-support.patch
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
References: fate#326698 - Add pvh support to virt-manager
|
||||||
|
|
||||||
|
Index: virt-manager-2.0.0/virtinst/domain/os.py
|
||||||
|
===================================================================
|
||||||
|
--- virt-manager-2.0.0.orig/virtinst/domain/os.py
|
||||||
|
+++ virt-manager-2.0.0/virtinst/domain/os.py
|
||||||
|
@@ -33,6 +33,8 @@ class DomainOs(XMLBuilder):
|
||||||
|
return self.os_type == "hvm"
|
||||||
|
def is_xenpv(self):
|
||||||
|
return self.os_type in ["xen", "linux"]
|
||||||
|
+ def is_xenpvh(self):
|
||||||
|
+ return self.os_type in ["xenpvh", "linux"]
|
||||||
|
def is_container(self):
|
||||||
|
return self.os_type == "exe"
|
||||||
|
|
||||||
|
Index: virt-manager-2.0.0/virtinst/guest.py
|
||||||
|
===================================================================
|
||||||
|
--- virt-manager-2.0.0.orig/virtinst/guest.py
|
||||||
|
+++ virt-manager-2.0.0/virtinst/guest.py
|
||||||
|
@@ -565,7 +565,7 @@ class Guest(XMLBuilder):
|
||||||
|
|
||||||
|
usb_tablet = False
|
||||||
|
usb_keyboard = False
|
||||||
|
- if self.os.is_x86() and not self.os.is_xenpv():
|
||||||
|
+ if self.os.is_x86() and not self.os.is_xenpv() and not self.os.is_xenpvh():
|
||||||
|
usb_tablet = self.osinfo.supports_usbtablet()
|
||||||
|
if self.os.is_arm_machvirt():
|
||||||
|
usb_tablet = True
|
||||||
|
Index: virt-manager-2.0.0/virtManager/domain.py
|
||||||
|
===================================================================
|
||||||
|
--- virt-manager-2.0.0.orig/virtManager/domain.py
|
||||||
|
+++ virt-manager-2.0.0/virtManager/domain.py
|
||||||
|
@@ -1207,6 +1207,8 @@ class vmmDomain(vmmLibvirtObject):
|
||||||
|
return self.get_xmlobj().os.is_xenpv()
|
||||||
|
def is_hvm(self):
|
||||||
|
return self.get_xmlobj().os.is_hvm()
|
||||||
|
+ def is_xenpvh(self):
|
||||||
|
+ return self.get_xmlobj().os.is_xenpvh()
|
||||||
|
|
||||||
|
def get_uuid(self):
|
||||||
|
if self._uuid is None:
|
||||||
|
Index: virt-manager-2.0.0/virtManager/connection.py
|
||||||
|
===================================================================
|
||||||
|
--- virt-manager-2.0.0.orig/virtManager/connection.py
|
||||||
|
+++ virt-manager-2.0.0/virtManager/connection.py
|
||||||
|
@@ -229,6 +229,8 @@ class vmmConnection(vmmGObject):
|
||||||
|
label = "xen (paravirt)"
|
||||||
|
elif gtype == "hvm":
|
||||||
|
label = "xen (fullvirt)"
|
||||||
|
+ elif gtype == "xenpvh":
|
||||||
|
+ label = "xen (pvh - Technical Preview)"
|
||||||
|
elif domtype == "test":
|
||||||
|
if gtype == "xen":
|
||||||
|
label = "test (xen)"
|
@ -6,7 +6,7 @@ Index: virt-manager-2.0.0/virtManager/connection.py
|
|||||||
===================================================================
|
===================================================================
|
||||||
--- virt-manager-2.0.0.orig/virtManager/connection.py
|
--- virt-manager-2.0.0.orig/virtManager/connection.py
|
||||||
+++ virt-manager-2.0.0/virtManager/connection.py
|
+++ virt-manager-2.0.0/virtManager/connection.py
|
||||||
@@ -1059,7 +1059,7 @@ class vmmConnection(vmmGObject):
|
@@ -1061,7 +1061,7 @@ class vmmConnection(vmmGObject):
|
||||||
self.caps.get_cpu_values(self.caps.host.cpu.arch)
|
self.caps.get_cpu_values(self.caps.host.cpu.arch)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user