[Kimchi-devel] [PATCH] [Kimchi 0/2] Implement multi-function pci hotplug
Lucio Correia
luciojhc at linux.vnet.ibm.com
Fri May 27 13:20:53 UTC 2016
Reviewed-By: Lucio Correia <luciojhc at linux.vnet.ibm.com>
On 27-05-2016 00:11, Jose Ricardo Ziviani wrote:
> This patchset implements multi-function pci hotplug for Kimchi. The
> special point in it is the need to attach all functions at once (one xml
> containing all devices) sorted (in reverse, the function 0 is the last
> one). This logic also applies to hot unplug.
>
> How to test the backend:
> - hotplug
> curl -u username -H "Content-Type: application/json" -H "Accept: application/json" https://host:8001/plugins/kimchi/vms/0fed23/hostdevs -X POST -d '{"name": "pci_0001_05_00_1"}'
> - hotunplug
> curl -u username -H "Content-Type: application/json" -H "Accept: application/json" https://host:8001/plugins/kimchi/vms/0fed23/hostdevs/pci_0001_05_00_0 -X DELETE
>
> Note: it doesn't matter the function is chosen (pci_0001_05_00_0 or
> pci_0001_05_00_1 in this case), both functions will be attached/detached accordingly.
>
> Note2: attach/detach are async methods but UI is not reflecting it, it's
> necessary to close/reopen the Edit window to see the PCI list updated.
>
> Jose Ricardo Ziviani (2):
> Enable hot-plug multi-function pci on front-end
> Implement multi-function pci hotplug support
>
> model/vmhostdevs.py | 96 +++++++++++++++++++++++++++++++++++--
> ui/js/src/kimchi.guest_edit_main.js | 2 +-
> 2 files changed, 94 insertions(+), 4 deletions(-)
>
--
Lucio Correia
Software Engineer
IBM LTC Brazil
More information about the Kimchi-devel
mailing list