From: Tan En De <ende.tan@starfivetech.com>
To: <kvm@vger.kernel.org>
Cc: <will@kernel.org>, <julien.thierry.kdev@gmail.com>,
Tan En De <ende.tan@starfivetech.com>
Subject: [kvmtool] pci: Deregister KVM_PCI_CFG_AREA on pci__exit
Date: Sat, 16 Sep 2023 13:23:03 +0800 [thread overview]
Message-ID: <20230916052303.1003-1-ende.tan@starfivetech.com> (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.
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
next reply other threads:[~2023-09-16 5:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-16 5:23 Tan En De [this message]
2023-09-18 11:05 ` [kvmtool] pci: Deregister KVM_PCI_CFG_AREA on pci__exit Will Deacon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230916052303.1003-1-ende.tan@starfivetech.com \
--to=ende.tan@starfivetech.com \
--cc=julien.thierry.kdev@gmail.com \
--cc=kvm@vger.kernel.org \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox