xend: Use AUTO_PHP_SLOT where it ought to be

Signed-off-by: Simon Horman <horms@vereg.net.au>
This commit is contained in:
Keir Fraser committed 2009-04-06 13:49:59 +01:00
1 parent 9d82166018
commit b812d1ddc4
1 file changed
+2 -2
+2 -2
View File
@@ -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.
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.