- boo#981836 - virt-manager does not support all boot methods for
AArch64 virtinst-support-other-boot-methods.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=315
This commit is contained in:
parent
9a1b2d03e1
commit
92e6bfce7b
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 14 16:08:05 MDT 2016 - carnold@suse.com
|
||||
|
||||
- boo#981836 - virt-manager does not support all boot methods for
|
||||
AArch64
|
||||
virtinst-support-other-boot-methods.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 7 14:18:32 MDT 2016 - carnold@suse.com
|
||||
|
||||
|
@ -81,6 +81,7 @@ Patch162: virtinst-refresh_before_fetch_pool.patch
|
||||
Patch163: virtinst-fix-sle12sp1-detection.patch
|
||||
Patch164: virtinst-fix-tumbleweed-detection.patch
|
||||
Patch165: virtinst-use-xenpae-kernel-for-32bit.patch
|
||||
Patch166: virtinst-support-other-boot-methods.patch
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
@ -206,6 +207,7 @@ machine).
|
||||
%patch163 -p1
|
||||
%patch164 -p1
|
||||
%patch165 -p1
|
||||
%patch166 -p1
|
||||
|
||||
%build
|
||||
%if %{qemu_user}
|
||||
|
43
virtinst-support-other-boot-methods.patch
Normal file
43
virtinst-support-other-boot-methods.patch
Normal file
@ -0,0 +1,43 @@
|
||||
References: boo#981836
|
||||
Tell libvirt what machine type the user chose for Xen (PV or HVM).
|
||||
Without a type specified, the default is to return the capabilities of a pv
|
||||
machine. This will allow the UEFI Customize option to show up when Xen HVM
|
||||
is selected. Also specify the name of our aavmf firmware for aarch64.
|
||||
--- virt-manager-1.3.2/virtinst/domcapabilities.py.orig 2016-06-14 16:08:52.000000000 -0600
|
||||
+++ virt-manager-1.3.2/virtinst/domcapabilities.py 2016-06-14 16:10:41.000000000 -0600
|
||||
@@ -73,10 +73,17 @@ class _Devices(_CapsBlock):
|
||||
|
||||
class DomainCapabilities(XMLBuilder):
|
||||
@staticmethod
|
||||
- def build_from_params(conn, emulator, arch, machine, hvtype):
|
||||
+ def build_from_params(conn, emulator, arch, machine, hvtype, os_type):
|
||||
xml = None
|
||||
if conn.check_support(
|
||||
conn.SUPPORT_CONN_DOMAIN_CAPABILITIES):
|
||||
+ machine_type = machine
|
||||
+ # For Xen capabilities pass either xenpv or xenfv
|
||||
+ if hvtype == 'xen':
|
||||
+ if os_type == "hvm":
|
||||
+ machine_type = "xenfv"
|
||||
+ else:
|
||||
+ machine_type = "xenpv"
|
||||
try:
|
||||
xml = conn.getDomainCapabilities(emulator, arch,
|
||||
machine, hvtype)
|
||||
@@ -92,7 +99,7 @@ class DomainCapabilities(XMLBuilder):
|
||||
@staticmethod
|
||||
def build_from_guest(guest):
|
||||
return DomainCapabilities.build_from_params(guest.conn,
|
||||
- guest.emulator, guest.os.arch, guest.os.machine, guest.type)
|
||||
+ guest.emulator, guest.os.arch, guest.os.machine, guest.type, guest.os.os_type)
|
||||
|
||||
# Mapping of UEFI binary names to their associated architectures. We
|
||||
# only use this info to do things automagically for the user, it shouldn't
|
||||
@@ -106,6 +113,7 @@ class DomainCapabilities(XMLBuilder):
|
||||
"aarch64": [
|
||||
".*AAVMF_CODE\.fd", # RHEL
|
||||
".*aarch64/QEMU_EFI.*", # gerd's firmware repo
|
||||
+ ".*aavmf-aarch64-.*" # SUSE
|
||||
],
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user