- bnc#620694 - Xen yast vm-install for existing paravirtualized
disk fails with UnboundLocalError: local variable 'dev_type' referenced before assignment 21678-xend-mac-fix.patch - bnc#586221 - cannot add DomU with USB host controller defined domu-usb-controller.patch (Chun Yan Liu) - Upstream patches from Jan 21151-trace-bounds-check.patch 21627-cpuidle-wrap.patch 21643-vmx-vpmu-pmc-offset.patch 21682-trace-buffer-range.patch 21683-vtd-kill-timer-conditional.patch 21693-memevent-64bit-only.patch 21695-trace-t_info-readonly.patch 21698-x86-pirq-range-check.patch 21699-p2m-query-for-type-change.patch 21700-32on64-vm86-gpf.patch 21705-trace-printk.patch 21706-trace-security.patch 21712-amd-osvw.patch 21744-x86-cpufreq-range-check.patch - bnc #599550 - Xen cannot distinguish the status of 'pause' addcommand_domstate.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=63
This commit is contained in:
committed by
Git OBS Bridge
parent
fef7e33f0a
commit
ff4b346ede
39
21678-xend-mac-fix.patch
Normal file
39
21678-xend-mac-fix.patch
Normal file
@@ -0,0 +1,39 @@
|
||||
# HG changeset patch
|
||||
# User Ian Jackson <Ian.Jackson@eu.citrix.com>
|
||||
# Date 1277475191 -3600
|
||||
# Node ID e307aa11ed27ea91cf175461b3a715fe3f7253bc
|
||||
# Parent e7b55cc5533aed48a47cf70e20aa9fb991bf2de4
|
||||
xend: Fix up check "mac" address sooner change
|
||||
|
||||
In changeset 21653,
|
||||
dev_type = sxp.name(dev_config)
|
||||
should not have been moved, otherwise, the checking "mac"
|
||||
paragraph is of no use.
|
||||
|
||||
(The original patch as submitted was correct but I had to make the
|
||||
change manually as it had been mangled.)
|
||||
|
||||
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
|
||||
Signed-off-by Chunyan Liu <CYLiu@novell.com>
|
||||
|
||||
Index: xen-4.0.0-testing/tools/python/xen/xend/XendDomainInfo.py
|
||||
===================================================================
|
||||
--- xen-4.0.0-testing.orig/tools/python/xen/xend/XendDomainInfo.py
|
||||
+++ xen-4.0.0-testing/tools/python/xen/xend/XendDomainInfo.py
|
||||
@@ -847,6 +847,8 @@ class XendDomainInfo:
|
||||
@type dev_config: SXP object (parsed config)
|
||||
"""
|
||||
log.debug("XendDomainInfo.device_create: %s" % scrub_password(dev_config))
|
||||
+ dev_type = sxp.name(dev_config)
|
||||
+
|
||||
if dev_type == 'vif':
|
||||
for x in dev_config:
|
||||
if x != 'vif' and x[0] == 'mac':
|
||||
@@ -854,7 +856,6 @@ class XendDomainInfo:
|
||||
log.error("Virtual network interface creation error - invalid MAC Address entered: %s", x[1])
|
||||
raise VmError("Cannot create a new virtual network interface - MAC address is not valid!");
|
||||
|
||||
- dev_type = sxp.name(dev_config)
|
||||
dev_uuid = self.info.device_add(dev_type, cfg_sxp = dev_config)
|
||||
dev_config_dict = self.info['devices'][dev_uuid][1]
|
||||
log.debug("XendDomainInfo.device_create: %s" % scrub_password(dev_config_dict))
|
Reference in New Issue
Block a user