From: Alex Williamson <alex.williamson@redhat.com>
To: kvm@vger.kernel.org
Cc: alex.williamson@redhat.com, avi@redhat.com, jan.kiszka@siemens.com
Subject: [PATCH 0/2] kvm: iommu cleanup
Date: Thu, 29 Mar 2012 14:10:31 -0600 [thread overview]
Message-ID: <20120329200701.16338.19994.stgit@bling.home> (raw)
When using device assignment, new page mappings are added to the iommu,
but never removed. Fix it. We're also lazy about tearing down the
iommu and unpinning the guest when we have no assigned devices attached.
Instead of waiting for the vm to be destroyed, do these cleanups when
we deassign the last assigned device. Thanks,
Alex
---
Alex Williamson (2):
kvm: unpin guest and free iommu domain after deassign last device
kvm: unmap pages from the iommu when slots are removed
include/linux/kvm_host.h | 6 ++++++
virt/kvm/assigned-dev.c | 3 +++
virt/kvm/iommu.c | 8 +++++++-
virt/kvm/kvm_main.c | 5 +++--
4 files changed, 19 insertions(+), 3 deletions(-)
next reply other threads:[~2012-03-29 20:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-29 20:10 Alex Williamson [this message]
2012-03-29 20:10 ` [PATCH 1/2] kvm: unmap pages from the iommu when slots are removed Alex Williamson
2012-03-29 20:10 ` [PATCH 2/2] kvm: unpin guest and free iommu domain after deassign last device Alex Williamson
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=20120329200701.16338.19994.stgit@bling.home \
--to=alex.williamson@redhat.com \
--cc=avi@redhat.com \
--cc=jan.kiszka@siemens.com \
--cc=kvm@vger.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