eeeeaf88a6
xend-devid-or-name.patch - Upstream patches from Jan 22019-x86-cpuidle-online-check.patch 22051-x86-forced-EOI.patch 22067-x86-irq-domain.patch 22068-vtd-irte-RH-bit.patch 22071-ept-get-entry-lock.patch 22084-x86-xsave-off.patch - bnc#638465 - hypervisor panic in memory handling heaplock.patch - Update to Xen 4.0.1. This is a bug fix release. OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=73
21 lines
946 B
Diff
21 lines
946 B
Diff
Index: xen-4.0.1-testing/tools/python/xen/xend/XendConfig.py
|
|
===================================================================
|
|
--- xen-4.0.1-testing.orig/tools/python/xen/xend/XendConfig.py
|
|
+++ xen-4.0.1-testing/tools/python/xen/xend/XendConfig.py
|
|
@@ -1861,7 +1861,14 @@ class XendConfig(dict):
|
|
ports = sxp.child(dev_sxp, 'port')
|
|
for port in ports[1:]:
|
|
try:
|
|
- num, bus = port
|
|
+ # When ['port' ['1','']] is saved into sxp file, it will become (port (1 ))
|
|
+ # If using this sxp file, here variable "port" will be port=1,
|
|
+ # we should process it, otherwise, it will report error.
|
|
+ if len(port) == 1:
|
|
+ num = port[0]
|
|
+ bus = ""
|
|
+ else:
|
|
+ num, bus = port
|
|
dev_config['port-%i' % int(num)] = str(bus)
|
|
except TypeError:
|
|
pass
|