]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commit
xm: Fix hot-unplug of statically-assigned devices
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 23 Apr 2009 09:11:33 +0000 (10:11 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 23 Apr 2009 09:11:33 +0000 (10:11 +0100)
commit5bacab31726fb8e4dbedeba2eb737541b13b0aab
tree6e725a3ae3ecb7e0a68007e5097c4f4e5ea7c141
parentb0514069f1261fee7ee9832ddd47d741ae938370
xm: Fix hot-unplug of statically-assigned devices

Prior to changset 19510:5c69f98c348e - 'xm, xend: Replace "vslt" with
"vslot"', both vslt and vslot were used in the xm code, often fairly
arbitrarily.

However, in the dictionary that describes a pci function both vslt and
vslot were present. vslt stored the slot assigned to the function. And
vslot stored the slot the user requested for the function, or
AUTO_PHP_SLOT if no slot was requested.

With the renaming these two values got merged into a single entry.
This patch un-merges them by renaming the what was vslot to
requested_vslot.

So an out of chronological order list of name changes is:

'vslot' -> 'requested_vslot'
'vslt'  -> 'vslot'

Signed-off-by: Simon Horman <horms@verge.net.au>
tools/python/xen/xend/XendConfig.py
tools/python/xen/xend/server/pciif.py
tools/python/xen/xm/create.py