[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] xend: Use AUTO_PHP_SLOT where it ought to be
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1239022199 -3600 # Node ID bdbe5232b068762b5cf5696998c8edc5f2d3032e # Parent 5966b71195b4092f791fc20f028d5e24feda76ae xend: Use AUTO_PHP_SLOT where it ought to be Signed-off-by: Simon Horman <horms@xxxxxxxxxxxx> --- tools/python/xen/xend/XendDomainInfo.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -r 5966b71195b4 -r bdbe5232b068 tools/python/xen/xend/XendDomainInfo.py --- a/tools/python/xen/xend/XendDomainInfo.py Mon Apr 06 13:49:16 2009 +0100 +++ b/tools/python/xen/xend/XendDomainInfo.py Mon Apr 06 13:49:59 2009 +0100 @@ -620,7 +620,7 @@ class XendDomainInfo: pci_devs = pci_conf['devs'] for x in pci_devs: if (int(x['vslt'], 16) == int(new_dev['vslt'], 16) and - int(x['vslt'], 16) != 0 ): + int(x['vslt'], 16) != AUTO_PHP_SLOT): raise VmError("vslot %s already have a device." % (new_dev['vslt'])) if (int(x['domain'], 16) == int(new_dev['domain'], 16) and @@ -1053,7 +1053,7 @@ class XendDomainInfo: if devnum >= pci_len: raise VmError("Device @ vslot 0x%x doesn't exist." % (vslot)) - if vslot == 0: + if vslot == AUTO_PHP_SLOT: raise VmError("Device @ vslot 0x%x do not support hotplug." % (vslot)) # Check the co-assignment. _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |