xm: xen-api, pass-through: create: Use vslot for hotplug_slot

Using func for hotplug_slot is not correct, although func is often
zero, previously zero meant please pick a vslot and asking xend to
pick a vslot was the only method available.

This resolves the following error when using Xen API:
$ xm create hvm.conf
...
Internal error: Timed out waiting for device model action.

Signed-off-by: Simon Horman <horms@verge.net.au>
This commit is contained in:
Keir Fraser committed 2009-06-04 10:41:50 +01:00
1 parent 7059aee491
commit 54ceba35a1
1 file changed
+1 -1
+1 -1
View File
@@ -539,7 +539,7 @@ class xenapi_create:
"PPCI":
target_ref,
"hotplug_slot":
int(pci.attributes["func"].value, 16),
int(pci.attributes["vslot"].value, 16),
"options":
get_child_nodes_as_dict(pci,
"pci_opt", "key", "value")
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.