public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] kvm: iommu cleanup
@ 2012-03-29 20:10 Alex Williamson
  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
  0 siblings, 2 replies; 3+ messages in thread
From: Alex Williamson @ 2012-03-29 20:10 UTC (permalink / raw)
  To: kvm; +Cc: alex.williamson, avi, jan.kiszka

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(-)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-03-29 20:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-29 20:10 [PATCH 0/2] kvm: iommu cleanup Alex Williamson
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox