pci: Deregister KVM_PCI_CFG_AREA on pci__exit
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 <[email protected]>
--- pci.c | 1 + 1 file changed, 1 insertion(+)
pci.c +1 -0
@@ -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
Will Deacon
AppliedQuoted 6 lines · Tan En De
KVM_PCI_CFG_AREAis registered withkvm__register_mmioduringpci__init, but it isn't deregistered duringpci__exit.So, this commit is to
kvm__deregister_mmiotheKVM_PCI_CFG_AREAonpci__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