* [kvmtool] pci: Deregister KVM_PCI_CFG_AREA on pci__exit
@ 2023-09-16 5:23 Tan En De
2023-09-18 11:05 ` Will Deacon
0 siblings, 1 reply; 2+ messages in thread
From: Tan En De @ 2023-09-16 5:23 UTC (permalink / raw)
To: kvm; +Cc: will, julien.thierry.kdev, 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.
Signed-off-by: Tan En De <ende.tan@starfivetech.com>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [kvmtool] pci: Deregister KVM_PCI_CFG_AREA on pci__exit
2023-09-16 5:23 [kvmtool] pci: Deregister KVM_PCI_CFG_AREA on pci__exit Tan En De
@ 2023-09-18 11:05 ` Will Deacon
0 siblings, 0 replies; 2+ messages in thread
From: Will Deacon @ 2023-09-18 11:05 UTC (permalink / raw)
To: kvm, Tan En De
Cc: catalin.marinas, kernel-team, Will Deacon, julien.thierry.kdev
On Sat, 16 Sep 2023 13:23:03 +0800, Tan En De wrote:
> 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,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-09-18 11:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-16 5:23 [kvmtool] pci: Deregister KVM_PCI_CFG_AREA on pci__exit Tan En De
2023-09-18 11:05 ` Will Deacon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox