2677655bda
001-adf30349-cli-refactor-get_prop.patch 002-60c7e778-xmlapi-add-set_prop.patch 003-5bad22e8-tests-Use-get-set_prop.patch 004-ee5f3eab-support-Add-SUPPORT_CONN_DEVICE_BOOT_ORDER.patch 005-7768eb17-cli-Add-check-if-device-boot-order-is-supported.patch 006-ecc0861c-tests-xmlparse-refactor-method-for-generating-out-file-path.patch 007-c9d070da-guest-Add-reorder_boot_order-method.patch 008-1b535940-tests-Add-test-case-for-reorder_boot_order-method.patch 009-b83a0a61-cli-Use-reorder_boot_order-for-setting-the-boot-order.patch 010-c896d19d-tests-cli-Add-boot.order-tests.patch 011-29f9f2ac-virt-xml-Add-no-define-argument.patch 012-c2bff509-tests-cli-Add-test-case-for-no-define-argument.patch 013-90b1a3ab-virt-xml-Add-support-for-starting-the-domain.patch 014-908b8e8d-tests-virt-xml-Add-test-cases-for-start-option.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=468
46 lines
2.0 KiB
Diff
46 lines
2.0 KiB
Diff
References: jsc#SLE-6262, fate#327048: KVM: Boot Configuration Override (virt-manager)
|
|
|
|
Subject: support: Add SUPPORT_CONN_DEVICE_BOOT_ORDER
|
|
From: Marc Hartmayer mhartmay@linux.ibm.com Tue Feb 26 10:56:34 2019 +0100
|
|
Date: Wed Mar 6 13:15:34 2019 -0500:
|
|
Git: ee5f3eab4b52e09ae5d0e65ba42c508084f9b6d9
|
|
|
|
...and use it in domain.py.
|
|
|
|
Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
|
|
Reviewed-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
|
|
|
|
Index: virt-manager-2.1.0/virtManager/domain.py
|
|
===================================================================
|
|
--- virt-manager-2.1.0.orig/virtManager/domain.py
|
|
+++ virt-manager-2.1.0/virtManager/domain.py
|
|
@@ -17,6 +17,7 @@ from virtinst import Guest
|
|
from virtinst import util
|
|
from virtinst import DeviceController
|
|
from virtinst import DeviceDisk
|
|
+from virtinst import support
|
|
|
|
from .libvirtobject import vmmLibvirtObject
|
|
from .libvirtenummap import LibvirtEnumMap
|
|
@@ -1364,7 +1365,7 @@ class vmmDomain(vmmLibvirtObject):
|
|
|
|
def can_use_device_boot_order(self):
|
|
# Return 'True' if guest can use new style boot device ordering
|
|
- return self.conn.is_qemu() or self.conn.is_test()
|
|
+ return self.conn.check_support(support.SUPPORT_CONN_DEVICE_BOOT_ORDER)
|
|
|
|
def get_bootable_devices(self):
|
|
# redirdev can also be marked bootable, but it should be rarely
|
|
Index: virt-manager-2.1.0/virtinst/support.py
|
|
===================================================================
|
|
--- virt-manager-2.1.0.orig/virtinst/support.py
|
|
+++ virt-manager-2.1.0/virtinst/support.py
|
|
@@ -266,6 +266,7 @@ SUPPORT_CONN_USB3_PORTS = _make(version=
|
|
SUPPORT_CONN_MACHVIRT_PCI_DEFAULT = _make(version="3.0.0")
|
|
SUPPORT_CONN_QEMU_XHCI = _make(version="3.3.0", hv_version={"qemu": "2.9.0"})
|
|
SUPPORT_CONN_VNC_NONE_AUTH = _make(hv_version={"qemu": "2.9.0"})
|
|
+SUPPORT_CONN_DEVICE_BOOT_ORDER = _make(hv_version={"qemu": 0, "test": 0})
|
|
|
|
# We choose qemu 2.11.0 as the first version to target for q35 default.
|
|
# That's not really based on anything except reasonably modern at the
|