xen-devel
[Xen-devel] [patch 7/9] xm: xen-api, pass-through: create: Use vslot for
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.
Cc: Dexuan Cui <dexuan.cui@xxxxxxxxx>
Cc: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Signed-off-by: Simon Horman <horms@xxxxxxxxxxxx>
Index: xen-unstable.hg/tools/python/xen/xm/xenapi_create.py
===================================================================
--- xen-unstable.hg.orig/tools/python/xen/xm/xenapi_create.py 2009-06-04
08:30:35.000000000 +1000
+++ xen-unstable.hg/tools/python/xen/xm/xenapi_create.py 2009-06-04
08:31:01.000000000 +1000
@@ -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")
--
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [patch 0/9] Xen API for pass-through, Simon Horman
- [Xen-devel] [patch 1/9] xend: pass-through: report attach errors from device model, Simon Horman
- [Xen-devel] [patch 2/9] xm: xen-api: Install create.dtd in SHAREDIR, Simon Horman
- [Xen-devel] [patch 3/9] xm: xen-api, pass-through: Dont pass empty opts, Simon Horman
- [Xen-devel] [patch 4/9] xend: pass-through: prefix vslot with 0x in device configration, Simon Horman
- [Xen-devel] [patch 5/9] xm, xend: xen-api: DPCI.get_hotplug_slot() returns a decimal, Simon Horman
- [Xen-devel] [patch 6/9] xend: xen-api, pass-through: Add create_dpci_from_sxp(), Simon Horman
- [Xen-devel] [patch 7/9] xm: xen-api, pass-through: create: Use vslot for hotplug_slot,
Simon Horman <=
- [Xen-devel] [patch 8/9] xend: pass-through: Use AUTO_PHP_SLOT as unknown vslot, Simon Horman
- [Xen-devel] [patch 9/9] xm: pass-through: sort the output of xm pci-list, Simon Horman
|
|
|