]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Allow to attach/detach controller device persistently
authorOsier Yang <jyang@redhat.com>
Mon, 23 Jul 2012 08:18:57 +0000 (16:18 +0800)
committerOsier Yang <jyang@redhat.com>
Fri, 3 Aug 2012 04:19:16 +0000 (12:19 +0800)
commited1e711b996bd28e0f995643f029658d5618f774
treed9a196d0050331b40bebdcd51595e0981aa0b0e3
parent7383c1d762c50c83832a8d11b48d75e5cad0042a
qemu: Allow to attach/detach controller device persistently

* src/conf/domain_conf.c:
  - Add virDomainControllerFind to find controller device by type
    and index.
  - Add virDomainControllerRemove to remove the controller device
    from maintained controler list.

* src/conf/domain_conf.h:
  - Declare the two new helpers.

* src/libvirt_private.syms:
  - Expose private symbols for the two new helpers.

* src/qemu/qemu_driver.c:
  - Support attach/detach controller device persistently

* src/qemu/qemu_hotplug.c:
  - Use the two helpers to simplify the codes.
src/conf/domain_conf.c
src/conf/domain_conf.h
src/libvirt_private.syms
src/qemu/qemu_driver.c
src/qemu/qemu_hotplug.c