[kvmtool] pci: Deregister KVM_PCI_CFG_AREA on pci__exit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



KVM_PCI_CFG_AREA is registered with kvm__register_mmio during pci__init,
but it isn't deregistered during pci__exit.

So, this commit is to kvm__deregister_mmio the KVM_PCI_CFG_AREA on pci__exit.

Signed-off-by: Tan En De <ende.tan@xxxxxxxxxxxxxxxx>
---
 pci.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/pci.c b/pci.c
index b170885..340674c 100644
--- a/pci.c
+++ b/pci.c
@@ -532,6 +532,7 @@ int pci__exit(struct kvm *kvm)
 {
 	kvm__deregister_pio(kvm, PCI_CONFIG_DATA);
 	kvm__deregister_pio(kvm, PCI_CONFIG_ADDRESS);
+	kvm__deregister_mmio(kvm, KVM_PCI_CFG_AREA);
 
 	return 0;
 }
-- 
2.34.1




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux