kvm: qemu: add pci_unregister_device
commit9dfae713e3671625ba2f23739624ff9604ec4aac
authorMarcelo Tosatti <mtosatti@redhat.com>
Tue, 11 Mar 2008 20:12:12 +0000 (11 17:12 -0300)
committerAvi Kivity <avi@qumranet.com>
Sun, 16 Mar 2008 12:26:52 +0000 (16 14:26 +0200)
tree9f1b3c01fb486a7c323bfc601aa0ccdca1c90a55
parentba8b495b10bff727d07acefd584b34d339c82bff
kvm: qemu: add pci_unregister_device

Unregister the pci device, unassign its IO and memory regions, and free
associated data.

Add a callback so drivers can free device state.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
qemu/hw/pci.c
qemu/hw/pci.h