Skip to contentSkip to conversation

pci: Deregister KVM_PCI_CFG_AREA on pci__exit

kvmtool Applied Tan En De 2 participants 2 messages Sep 16, 2023 – Sep 18, 2023 KVM

lore
Share & tools
lore

Tan En De

author
#0 lore raw

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.

---
 pci.c | 1 +
 1 file changed, 1 insertion(+)
pci.c +1 -0
index b170885..340674c 100644
@@ -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;
 }
Signature · 1 line
2.34.1
Applied
#1 lore raw
Quoted 6 lines · Tan En De

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.

Applied to kvmtool (master), thanks!

[1/1] pci: Deregister KVM_PCI_CFG_AREA on pci__exit

      https://git.kernel.org/will/kvmtool/c/9cb1b46cb765

Cheers,

Signature · 5 lines
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev