ia64/xen-unstable

changeset 19721:2c172f9db417

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>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jun 04 10:41:50 2009 +0100 (2009-06-04)
parents 8f64f43624e8
children 691087b8d4ac
files tools/python/xen/xm/xenapi_create.py
line diff
     1.1 --- a/tools/python/xen/xm/xenapi_create.py	Thu Jun 04 10:41:13 2009 +0100
     1.2 +++ b/tools/python/xen/xm/xenapi_create.py	Thu Jun 04 10:41:50 2009 +0100
     1.3 @@ -539,7 +539,7 @@ class xenapi_create:
     1.4              "PPCI":
     1.5                  target_ref,
     1.6              "hotplug_slot":
     1.7 -                int(pci.attributes["func"].value, 16),
     1.8 +                int(pci.attributes["vslot"].value, 16),
     1.9              "options":
    1.10                  get_child_nodes_as_dict(pci,
    1.11                    "pci_opt", "key", "value")