From 54ceba35a1fdf2326e407c4e41b76ee5abd93fa3 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 4 Jun 2009 10:41:50 +0100 Subject: [PATCH] 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 --- tools/python/xen/xm/xenapi_create.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/xen/xm/xenapi_create.py b/tools/python/xen/xm/xenapi_create.py index ae9c0326cd..54e0cd665f 100644 --- a/tools/python/xen/xm/xenapi_create.py +++ b/tools/python/xen/xm/xenapi_create.py @@ -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") -- 2.39.5