qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v7 17/17] intel_iommu: enable vfio devices


From: Jason Wang
Subject: Re: [Qemu-devel] [PATCH v7 17/17] intel_iommu: enable vfio devices
Date: Fri, 10 Feb 2017 14:24:02 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0



On 2017年02月07日 16:28, Peter Xu wrote:
This patch is based on Aviv Ben-David (<address@hidden>)'s patch
upstream:

   "IOMMU: enable intel_iommu map and unmap notifiers"
   https://lists.gnu.org/archive/html/qemu-devel/2016-11/msg01453.html

However I removed/fixed some content, and added my own codes.

Instead of translate() every page for iotlb invalidations (which is
slower), we walk the pages when needed and notify in a hook function.

This patch enables vfio devices for VT-d emulation.

And, since we already have vhost DMAR support via device-iotlb, a
natural benefit that this patch brings is that vt-d enabled vhost can
live even without ATS capability now. Though more tests are needed.

Michael, if you want to apply this series, I would propose a better title for this patch e.g "cowork with remote IOMMU/IOTLB"

Thanks


Reviewed-by: Jason Wang <address@hidden>
Signed-off-by: Peter Xu <address@hidden>
---
  hw/i386/intel_iommu.c          | 191 ++++++++++++++++++++++++++++++++++++++---
  hw/i386/intel_iommu_internal.h |   1 +
  hw/i386/trace-events           |   1 +
  include/hw/i386/intel_iommu.h  |   8 ++
  4 files changed, 188 insertions(+), 13 deletions(-)

[...]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]