Sun
Cc: Paolo Bonzini
Cc: Richard Henderson
Cc: Eduardo Habkost
Signed-off-by: Liu Yi L
---
hw/i386/intel_iommu.c | 473 +
hw/i386/intel_iommu_internal.h | 18 ++
hw/i386/trace-events | 1 +
include/hw/i386/intel_iommu.h | 24 +++
: Yi Sun
Cc: Michael S. Tsirkin
Cc: Cornelia Huck
Cc: Paolo Bonzini
Signed-off-by: Liu Yi L
---
linux-headers/linux/iommu.h | 378
linux-headers/linux/vfio.h | 127 +++
2 files changed, 505 insertions(+)
create mode 100644 linux-headers
u
Cc: Yi Sun
Cc: Paolo Bonzini
Cc: Richard Henderson
Cc: Eduardo Habkost
Signed-off-by: Liu Yi L
---
hw/i386/intel_iommu.c | 117 +
hw/i386/intel_iommu_internal.h | 7 +++
2 files changed, 124 insertions(+)
diff --git a/hw/i386/intel_iommu.c
This patch defines vfio_host_iommu_context_info, implements the PASID
alloc/free hooks defined in HostIOMMUContextClass.
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Eric Auger
Cc: Yi Sun
Cc: David Gibson
Cc: Alex Williamson
Signed-off-by: Liu Yi L
---
hw/vfio/common.c
Bonzini
Cc: Richard Henderson
Cc: Eduardo Habkost
Signed-off-by: Liu Yi L
---
hw/i386/intel_iommu.c | 53 ++
hw/i386/intel_iommu_internal.h | 13 +++
2 files changed, 66 insertions(+)
diff --git a/hw/i386/intel_iommu.c b/hw/i386
Sun
Cc: David Gibson
Cc: Alex Williamson
Signed-off-by: Liu Yi L
---
hw/vfio/pci.c | 13 +
1 file changed, 13 insertions(+)
diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c
index 5e75a95..c140c88 100644
--- a/hw/vfio/pci.c
+++ b/hw/vfio/pci.c
@@ -2717,6 +2717,7 @@ static void
Cc: David Gibson
Cc: Alex Williamson
Signed-off-by: Liu Yi L
---
hw/iommu/host_iommu_context.c | 47 +-
hw/vfio/common.c | 55 ++-
include/hw/iommu/host_iommu_context.h | 26 -
3 files
l.org/lkml/2019/9/23/297
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Yi Sun
Cc: Paolo Bonzini
Cc: Richard Henderson
Cc: Eduardo Habkost
Reviewed-by: Peter Xu
Signed-off-by: Liu Yi L
---
hw/i386/intel_iommu.c | 10 ++
1 file changed, 10 insertions(+)
diff --git a/hw/i386/intel_io
: Paolo Bonzini
Cc: Richard Henderson
Cc: Eduardo Habkost
Signed-off-by: Liu Yi L
---
hw/i386/intel_iommu.c | 51 ++
hw/i386/intel_iommu_internal.h | 6 -
hw/i386/trace-events | 1 +
3 files changed, 57 insertions(+), 1 deletion
e. In future, there will be more
operations like bind_stage1_pgtbl, flush_stage1_cache and etc.
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Eric Auger
Cc: Yi Sun
Cc: David Gibson
Cc: Michael S. Tsirkin
Signed-off-by: Liu Yi L
---
hw/Makefile.objs | 1 +
hw/iommu/M
Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Eric Auger
Cc: Yi Sun
Cc: David Gibson
Cc: Alex Williamson
Acked-by: Peter Xu
Signed-off-by: Liu Yi L
---
hw/iommu/host_iommu_context.c | 19 +++
hw/vfio/common.c | 25 +
include/hw/iommu
-by: Liu Yi L
Signed-off-by: Yi Sun
---
hw/i386/intel_iommu.c | 154 -
hw/i386/intel_iommu_internal.h | 37 ++
hw/i386/trace-events | 1 +
include/hw/i386/intel_iommu.h | 10 ++-
4 files changed, 200 insertions(+), 2 deletions
subsequent patches.
v1 -> v2: remove vtd_pasid_cache_gsi(), vtd_pasid_cache_psi() and
vtd_pasid_cache_dsi()
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Yi Sun
Cc: Paolo Bonzini
Cc: Richard Henderson
Cc: Eduardo Habkost
Reviewed-by: Peter Xu
Signed-off-by: Liu Yi L
---
hw/i
Sun
Cc: David Gibson
Cc: Michael S. Tsirkin
Reviewed-by: Peter Xu
Signed-off-by: Liu Yi L
---
hw/pci/pci.c | 49 -
include/hw/pci/pci.h | 10 ++
2 files changed, 54 insertions(+), 5 deletions(-)
diff --git a/hw/pci/pci.c b/hw
gt;HPA) under nested translation mode. This is the
key part of vSVA support, and also a key to support IOVA over 1st-
level page table for Intel VT-d in virtualization environment.
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Yi Sun
Cc: Paolo Bonzini
Cc: Richard Henderson
Signed-off-by: Li
specific operations.
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Eric Auger
Cc: Yi Sun
Cc: David Gibson
Cc: Michael S. Tsirkin
Reviewed-by: David Gibson
Reviewed-by: Peter Xu
Signed-off-by: Liu Yi L
---
hw/alpha/typhoon.c | 6 +-
hw/arm/smmu-common.c | 6 +-
hw/hppa
Yi L
---
hw/vfio/common.c | 99
1 file changed, 99 insertions(+)
diff --git a/hw/vfio/common.c b/hw/vfio/common.c
index 5f3534d..44b142c 100644
--- a/hw/vfio/common.c
+++ b/hw/vfio/common.c
@@ -1226,10 +1226,89 @@ static int
lable mode support
- if not configured, means no scalable mode support, if not proper
configured, will throw error
Note: this patch is supposed to be merged when the whole vSVA patch series
were merged.
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Yi Sun
Cc: Paolo Bonzini
Cc: Richar
Habkost
Signed-off-by: Liu Yi L
---
hw/i386/intel_iommu.c | 71 ---
include/hw/i386/intel_iommu.h | 21 ++---
2 files changed, 83 insertions(+), 9 deletions(-)
diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c
index 4b22910..fd349c6
1. Modify x-scalable-mode to be string option instead of
adding a new option as RFC v1 did. Refined the pasid cache management
and addressed the TODOs mentioned in RFC v1.
RFC v1: https://patchwork.kernel.org/cover/11033657/
Eric Auger (1):
scripts/update-l
From: Eric Auger
Update the script to import the new iommu.h uapi header.
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Yi Sun
Cc: Michael S. Tsirkin
Cc: Cornelia Huck
Cc: Paolo Bonzini
Acked-by: Cornelia Huck
Signed-off-by: Eric Auger
---
scripts/update-linux-headers.sh | 2 +-
1 file
VFIO needs to check VFIO_TYPE1_NESTING_IOMMU support with Kernel before
further using it. e.g. requires to check IOMMU UAPI version.
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Eric Auger
Cc: Yi Sun
Cc: David Gibson
Cc: Alex Williamson
Signed-off-by: Liu Yi L
Signed-off-by: Yi Sun
> From: Peter Xu
> Sent: Wednesday, March 25, 2020 11:16 PM
> To: Liu, Yi L
> Subject: Re: [PATCH v1 19/22] intel_iommu: process PASID-based iotlb
> invalidation
>
> On Wed, Mar 25, 2020 at 01:36:03PM +, Liu, Yi L wrote:
> > > From: Peter Xu
> > >
> From: Peter Xu
> Sent: Thursday, March 26, 2020 11:54 PM
> To: Liu, Yi L
> Subject: Re: [PATCH v1 12/22] intel_iommu: add PASID cache management
> infrastructure
>
> On Thu, Mar 26, 2020 at 01:57:10PM +, Liu, Yi L wrote:
> > > From: Liu, Yi L
> > >
> From: Liu, Yi L
> Sent: Thursday, March 26, 2020 2:15 PM
> To: 'Peter Xu'
> Subject: RE: [PATCH v1 12/22] intel_iommu: add PASID cache management
> infrastructure
>
> > From: Peter Xu
> > Sent: Wednesday, March 25, 2020 10:52 PM
> > To: Liu, Yi L
> From: Peter Xu
> Sent: Thursday, March 26, 2020 9:23 PM
> To: Liu, Yi L
> Subject: Re: [PATCH v1 20/22] intel_iommu: propagate PASID-based iotlb
> invalidation to host
>
> On Thu, Mar 26, 2020 at 09:02:48AM -0400, Peter Xu wrote:
>
> [...]
>
&
> From: Peter Xu
> Sent: Thursday, March 26, 2020 9:03 PM
> To: Liu, Yi L
> Subject: Re: [PATCH v1 20/22] intel_iommu: propagate PASID-based iotlb
> invalidation to host
>
> On Thu, Mar 26, 2020 at 05:41:39AM +, Liu, Yi L wrote:
> > > From: Liu, Yi L
> >
Hi Eric,
I'm also considering how to inject iommu fault to vIOMMU. As our
previous discussion (long time ago), MemoryRegion way doesn't work
well for VTd case. So I'd like see your opinion on the proposal
below:
I've a patch to make vIOMMUs register PCIIOMMUOps to PCI layer.
Current usage is to ge
rday, March 21, 2020 12:58 AM
> To: eric.auger@gmail.com; eric.au...@redhat.com; qemu-devel@nongnu.org;
> Subject: [RFC v6 08/24] pci: introduce PCIPASIDOps to PCIDevice
>
> From: Liu Yi L
>
> This patch introduces PCIPASIDOps for IOMMU related operations.
>
> http
> From: Eric Auger
> Sent: Saturday, March 21, 2020 12:58 AM
> To: eric.auger@gmail.com; eric.au...@redhat.com; qemu-devel@nongnu.org;
> Subject: [RFC v6 01/24] update-linux-headers: Import iommu.h
>
> Update the script to import the new iommu.h uapi header.
>
> Signed-off-by: Eric Auger
>
> From: Peter Xu
> Sent: Wednesday, March 25, 2020 10:52 PM
> To: Liu, Yi L
> Subject: Re: [PATCH v1 12/22] intel_iommu: add PASID cache management
> infrastructure
>
> On Wed, Mar 25, 2020 at 12:20:21PM +, Liu, Yi L wrote:
> > > From: Peter Xu
> > >
> From: Liu, Yi L
> Sent: Wednesday, March 25, 2020 9:22 PM
> To: 'Peter Xu'
> Subject: RE: [PATCH v1 20/22] intel_iommu: propagate PASID-based iotlb
> invalidation to host
>
> > From: Peter Xu
> > Sent: Wednesday, March 25, 2020 2:34 AM
> > T
> From: Peter Xu
> Sent: Wednesday, March 25, 2020 11:07 PM
> To: Liu, Yi L
> Cc: qemu-devel@nongnu.org; alex.william...@redhat.com;
> eric.au...@redhat.com; pbonz...@redhat.com; m...@redhat.com;
> da...@gibson.dropbear.id.au; Tian, Kevin ; Tian, Jun J
> ; Sun, Yi Y ; k...@v
> From: Peter Xu
> Sent: Wednesday, March 25, 2020 10:57 PM
> To: Liu, Yi L
> Subject: Re: [PATCH v1 14/22] intel_iommu: bind/unbind guest page table to
> host
>
> On Wed, Mar 25, 2020 at 12:42:58PM +, Liu, Yi L wrote:
> > > From: Peter Xu
> > >
> From: Peter Xu
> Sent: Wednesday, March 25, 2020 11:12 PM
> To: Liu, Yi L
> Subject: Re: [PATCH v1 17/22] intel_iommu: do not pass down pasid bind for
> PASID
> #0
>
> On Wed, Mar 25, 2020 at 10:42:25AM +, Liu, Yi L wrote:
> > > From: Peter Xu < pet.
> From: Peter Xu
> Sent: Wednesday, March 25, 2020 2:26 AM
> To: Liu, Yi L
> Subject: Re: [PATCH v1 19/22] intel_iommu: process PASID-based iotlb
> invalidation
>
> On Sun, Mar 22, 2020 at 05:36:16AM -0700, Liu Yi L wrote:
> > This patch adds the basic PASID-based
> From: Peter Xu
> Sent: Wednesday, March 25, 2020 2:39 AM
> To: Liu, Yi L
> Subject: Re: [PATCH v1 22/22] intel_iommu: modify x-scalable-mode to be string
> option
>
> On Sun, Mar 22, 2020 at 05:36:19AM -0700, Liu Yi L wrote:
> > Intel VT-d 3.0 introduces scalable
> From: Peter Xu
> Sent: Wednesday, March 25, 2020 2:34 AM
> To: Liu, Yi L
> Subject: Re: [PATCH v1 20/22] intel_iommu: propagate PASID-based iotlb
> invalidation to host
>
> On Sun, Mar 22, 2020 at 05:36:17AM -0700, Liu Yi L wrote:
> > This patch propagates PASID-
> From: Peter Xu
> Sent: Wednesday, March 25, 2020 1:47 AM
> To: Liu, Yi L
> Subject: Re: [PATCH v1 14/22] intel_iommu: bind/unbind guest page table to
> host
>
> On Sun, Mar 22, 2020 at 05:36:11AM -0700, Liu Yi L wrote:
> > This patch captures the guest PASID ta
> From: Peter Xu
> Sent: Wednesday, March 25, 2020 2:00 AM
> To: Liu, Yi L
> Subject: Re: [PATCH v1 15/22] intel_iommu: replay guest pasid bindings to host
>
> On Sun, Mar 22, 2020 at 05:36:12AM -0700, Liu Yi L wrote:
> > This patch adds guest pasid bindings replay
> From: Peter Xu
> Sent: Wednesday, March 25, 2020 1:47 AM
> To: Liu, Yi L
> Sent: Wednesday, March 25, 2020 1:47 AM
> Subject: Re: [PATCH v1 14/22] intel_iommu: bind/unbind guest page table to
> host
>
> On Sun, Mar 22, 2020 at 05:36:11AM -0700, Liu Yi L wrote:
>
> From: Peter Xu
> Sent: Wednesday, March 25, 2020 1:47 AM
> To: Liu, Yi L
> Subject: Re: [PATCH v1 14/22] intel_iommu: bind/unbind guest page table to
> host
>
> On Sun, Mar 22, 2020 at 05:36:11AM -0700, Liu Yi L wrote:
> > This patch captures the guest PASID ta
> From: Peter Xu
> Sent: Wednesday, March 25, 2020 1:32 AM
> To: Liu, Yi L
> Subject: Re: [PATCH v1 12/22] intel_iommu: add PASID cache management
> infrastructure
>
> On Sun, Mar 22, 2020 at 05:36:09AM -0700, Liu Yi L wrote:
> > This patch adds a PASID cache managem
> From: Peter Xu < pet...@redhat.com>
> Sent: Wednesday, March 25, 2020 2:13 AM
> To: Liu, Yi L
> Subject: Re: [PATCH v1 17/22] intel_iommu: do not pass down pasid bind for
> PASID
> #0
>
> On Sun, Mar 22, 2020 at 05:36:14AM -0700, Liu Yi L wrote:
> > RID_PA
> From: Peter Xu
> Sent: Wednesday, March 25, 2020 2:19 AM
> To: Liu, Yi L
> Subject: Re: [PATCH v1 18/22] vfio: add support for flush iommu stage-1 cache
>
> On Sun, Mar 22, 2020 at 05:36:15AM -0700, Liu Yi L wrote:
> > This patch adds flush_stage1_cache() definition
> From: Peter Xu
> Sent: Wednesday, March 25, 2020 1:41 AM
> To: Liu, Yi L
> Subject: Re: [PATCH v1 13/22] vfio: add bind stage-1 page table support
>
> On Sun, Mar 22, 2020 at 05:36:10AM -0700, Liu Yi L wrote:
> > This patch adds bind_stage1_pgtbl() definition in
&
> From: Peter Xu
> Sent: Tuesday, March 24, 2020 11:24 PM
> To: Liu, Yi L
> Subject: Re: [PATCH v1 07/22] intel_iommu: add set/unset_iommu_context
> callback
>
> On Tue, Mar 24, 2020 at 11:15:24AM +, Liu, Yi L wrote:
>
> [...]
>
> > > > struc
> From: Peter Xu
> Sent: Tuesday, March 24, 2020 10:46 PM
> To: Liu, Yi L
> Subject: Re: [PATCH v1 08/22] vfio: init HostIOMMUContext per-container
>
> On Tue, Mar 24, 2020 at 01:03:28PM +, Liu, Yi L wrote:
> > > From: Peter Xu
> > > Sent: Tuesday, Marc
> From: Peter Xu
> Sent: Wednesday, March 25, 2020 2:36 AM
> To: Liu, Yi L
> Subject: Re: [PATCH v1 21/22] intel_iommu: process PASID-based Device-TLB
> invalidation
>
> On Sun, Mar 22, 2020 at 05:36:18AM -0700, Liu Yi L wrote:
> > This patch adds an empty handling
> From: Peter Xu
> Sent: Tuesday, March 24, 2020 5:40 AM
> To: Liu, Yi L
> Subject: Re: [PATCH v1 08/22] vfio: init HostIOMMUContext per-container
>
> On Sun, Mar 22, 2020 at 05:36:05AM -0700, Liu Yi L wrote:
> > After confirming dual stage DMA translation support wit
> From: Peter Xu
> Sent: Tuesday, March 24, 2020 6:07 AM
> To: Liu, Yi L
> Subject: Re: [PATCH v1 09/22] vfio/common: check PASID alloc/free availability
>
> On Sun, Mar 22, 2020 at 05:36:06AM -0700, Liu Yi L wrote:
>
> [...]
>
> > @@ -1256,11 +1334,19
> From: Peter Xu
> Sent: Tuesday, March 24, 2020 5:29 AM
> To: Liu, Yi L
> Subject: Re: [PATCH v1 07/22] intel_iommu: add set/unset_iommu_context
> callback
>
> On Sun, Mar 22, 2020 at 05:36:04AM -0700, Liu Yi L wrote:
> > This patch adds set/unset_iommu_context
> From: Peter Xu
> Sent: Tuesday, March 24, 2020 5:15 AM
> To: Liu, Yi L
> Subject: Re: [PATCH v1 06/22] hw/pci: introduce
> pci_device_set/unset_iommu_context()
>
> On Sun, Mar 22, 2020 at 05:36:03AM -0700, Liu Yi L wrote:
>
> [...]
>
> > +AddressS
> From: Peter Xu
> Sent: Tuesday, March 24, 2020 4:59 AM
> To: Liu, Yi L
> Subject: Re: [PATCH v1 04/22] hw/iommu: introduce HostIOMMUContext
>
> On Sun, Mar 22, 2020 at 05:36:01AM -0700, Liu Yi L wrote:
[...]
> > +
> > +void host_iommu_ctx_init(void *_
e. In future, there will be more
operations like bind_stage1_pgtbl, flush_stage1_cache and etc.
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Eric Auger
Cc: Yi Sun
Cc: David Gibson
Cc: Michael S. Tsirkin
Signed-off-by: Liu Yi L
---
hw/Makefile.objs | 1 +
hw/iommu/M
Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Eric Auger
Cc: Yi Sun
Cc: David Gibson
Cc: Alex Williamson
Signed-off-by: Liu Yi L
---
hw/iommu/host_iommu_context.c | 19 +++
hw/vfio/common.c | 24
include/hw/iommu/host_iommu_context.h
lable mode support
- if not configured, means no scalable mode support, if not proper
configured, will throw error
Note: this patch is supposed to be merged when the whole vSVA patch series
were merged.
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Yi Sun
Cc: Paolo Bonzini
Cc: Richar
Bonzini
Cc: Richard Henderson
Cc: Eduardo Habkost
Signed-off-by: Liu Yi L
---
hw/i386/intel_iommu.c | 57 ++
hw/i386/intel_iommu_internal.h | 13 ++
2 files changed, 70 insertions(+)
diff --git a/hw/i386/intel_iommu.c b/hw/i386
gt;HPA) under nested translation mode. This is the
key part of vSVA support, and also a key to support IOVA over 1st-
level page table for Intel VT-d in virtualization environment.
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Yi Sun
Cc: Paolo Bonzini
Cc: Richard Henderson
Signed-off-by: Li
Cc: Paolo Bonzini
Cc: Richard Henderson
Signed-off-by: Liu Yi L
---
hw/i386/intel_iommu.c | 128 -
hw/i386/intel_iommu_internal.h | 1 +
2 files changed, 127 insertions(+), 2 deletions(-)
diff --git a/hw/i386/intel_iommu.c b/hw/i386
: Liu Yi L
---
hw/i386/intel_iommu.c | 394 +
hw/i386/intel_iommu_internal.h | 14 ++
hw/i386/trace-events | 1 +
include/hw/i386/intel_iommu.h | 33 +++-
4 files changed, 441 insertions(+), 1 deletion(-)
diff --git a/hw/i386
Auger
Cc: Yi Sun
Cc: David Gibson
Cc: Alex Williamson
Signed-off-by: Shameer Kolothum
Signed-off-by: Liu Yi L
---
hw/vfio/common.c | 96 +---
1 file changed, 91 insertions(+), 5 deletions(-)
diff --git a/hw/vfio/common.c b/hw/vfio/common.c
l.org/lkml/2019/9/23/297
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Yi Sun
Cc: Paolo Bonzini
Cc: Richard Henderson
Cc: Eduardo Habkost
Signed-off-by: Liu Yi L
---
hw/i386/intel_iommu.c | 10 ++
1 file changed, 10 insertions(+)
diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iom
: Paolo Bonzini
Cc: Richard Henderson
Cc: Eduardo Habkost
Signed-off-by: Liu Yi L
---
hw/i386/intel_iommu.c | 68 ++
hw/i386/intel_iommu_internal.h | 6 +++-
hw/i386/trace-events | 1 +
3 files changed, 74 insertions(+), 1 deletion
subsequent patches.
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Yi Sun
Cc: Paolo Bonzini
Cc: Richard Henderson
Cc: Eduardo Habkost
Reviewed-by: Peter Xu
Signed-off-by: Liu Yi L
---
hw/i386/intel_iommu.c | 66 ++
hw/i386/intel_iommu_internal.h
: Richard Henderson
Cc: Eduardo Habkost
Signed-off-by: Liu Yi L
---
hw/i386/intel_iommu.c | 18 ++
hw/i386/intel_iommu_internal.h | 1 +
2 files changed, 19 insertions(+)
diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c
index 10d314d..72cd739 100644
--- a/hw
Habkost
Signed-off-by: Liu Yi L
---
hw/i386/intel_iommu.c | 70 +++
include/hw/i386/intel_iommu.h | 17 +--
2 files changed, 80 insertions(+), 7 deletions(-)
diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c
index 4b22910..8d9204f
VFIO needs to check VFIO_TYPE1_NESTING_IOMMU support with Kernel before
further using it. e.g. requires to check IOMMU UAPI version.
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Eric Auger
Cc: Yi Sun
Cc: David Gibson
Cc: Alex Williamson
Signed-off-by: Liu Yi L
Signed-off-by: Yi Sun
-by: Liu Yi L
Signed-off-by: Yi Sun
---
hw/i386/intel_iommu.c | 154 -
hw/i386/intel_iommu_internal.h | 37 ++
hw/i386/trace-events | 1 +
include/hw/i386/intel_iommu.h | 10 ++-
4 files changed, 200 insertions(+), 2 deletions
table related mappings during DMA address translation.
This patch traps the guest PASID-based iotlb flush and propagate
it to host.
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Yi Sun
Cc: Paolo Bonzini
Cc: Richard Henderson
Cc: Eduardo Habkost
Signed-off-by: Liu Yi L
---
hw/i386/intel_i
in RFC v1. Modify x-scalable-mode to be string option instead of
adding a new option as RFC v1 did. Refined the pasid cache management
and addressed the TODOs mentioned in RFC v1.
RFC v1: https://patchwork.kernel.org/cover/11033657/
Eric Auger (1):
scripts/update-linu
: Yi Sun
Cc: Michael S. Tsirkin
Cc: Cornelia Huck
Cc: Paolo Bonzini
Signed-off-by: Liu Yi L
---
linux-headers/linux/iommu.h | 378
linux-headers/linux/vfio.h | 127 +++
2 files changed, 505 insertions(+)
create mode 100644 linux-headers
: Jacob Pan
Cc: Peter Xu
Cc: Eric Auger
Cc: Yi Sun
Cc: David Gibson
Cc: Alex Williamson
Signed-off-by: Liu Yi L
---
hw/vfio/common.c | 80 +++
hw/vfio/pci.c | 13 ++
include/hw/iommu/host_iommu_context.h | 3
From: Eric Auger
Update the script to import the new iommu.h uapi header.
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Yi Sun
Cc: Michael S. Tsirkin
Cc: Cornelia Huck
Cc: Paolo Bonzini
Acked-by: Cornelia Huck
Signed-off-by: Eric Auger
---
scripts/update-linux-headers.sh | 2 +-
1 file
Sun
Cc: David Gibson
Cc: Michael S. Tsirkin
Signed-off-by: Liu Yi L
---
hw/pci/pci.c | 49 -
include/hw/pci/pci.h | 10 ++
2 files changed, 54 insertions(+), 5 deletions(-)
diff --git a/hw/pci/pci.c b/hw/pci/pci.c
index aa9025c
Cc: David Gibson
Cc: Alex Williamson
Signed-off-by: Liu Yi L
---
hw/iommu/host_iommu_context.c | 49 ++-
hw/vfio/common.c | 55 ++-
include/hw/iommu/host_iommu_context.h | 26 -
3 files
specific operations.
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Eric Auger
Cc: Yi Sun
Cc: David Gibson
Cc: Michael S. Tsirkin
Reviewed-by: David Gibson
Reviewed-by: Peter Xu
Signed-off-by: Liu Yi L
---
hw/alpha/typhoon.c | 6 +-
hw/arm/smmu-common.c | 6 +-
hw/hppa
: Liu Yi L
---
hw/i386/intel_iommu.c | 386 +
hw/i386/intel_iommu_internal.h | 14 ++
hw/i386/trace-events | 1 +
include/hw/i386/intel_iommu.h | 33 +++-
4 files changed, 433 insertions(+), 1 deletion(-)
diff --git a/hw/i386
table related mappings during DMA address translation.
This patch traps the guest PASID-based iotlb flush and propagate
it to host.
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Yi Sun
Cc: Paolo Bonzini
Cc: Richard Henderson
Cc: Eduardo Habkost
Signed-off-by: Liu Yi L
---
hw/i386/intel_i
ed-off-by: Liu Yi L
---
hw/i386/intel_iommu.c | 93 --
hw/i386/intel_iommu_internal.h | 26
2 files changed, 115 insertions(+), 4 deletions(-)
diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c
index b032a7c..8bd27b1 100644
--
: Peter Xu
Cc: Eric Auger
Cc: Yi Sun
Cc: David Gibson
Cc: Alex Williamson
Signed-off-by: Liu Yi L
---
hw/iommu/host_iommu_context.c | 10 ++
hw/vfio/common.c | 24
include/hw/iommu/host_iommu_context.h | 14 ++
3 files
Cc: Paolo Bonzini
Cc: Richard Henderson
Cc: Eduardo Habkost
Signed-off-by: Liu Yi L
---
hw/i386/intel_iommu.c | 183 ++---
hw/i386/intel_iommu_internal.h | 1 +
2 files changed, 173 insertions(+), 11 deletions(-)
diff --git a/hw/i386/intel_iommu.c
o operations included to demonstrate
the design, in future, there will be more operations like bind_stage1_pgtbl
and invalidate_stage1_cache and etc.
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Eric Auger
Cc: Yi Sun
Cc: David Gibson
Cc: Michael S. Tsirkin
Signed-off-by: Liu Yi L
---
hw/M
: Jacob Pan
Cc: Peter Xu
Cc: Eric Auger
Cc: Yi Sun
Cc: David Gibson
Cc: Alex Williamson
Signed-off-by: Liu Yi L
---
hw/vfio/common.c | 11 +++
hw/vfio/pci.c | 21 +
include/hw/vfio/vfio-common.h | 2 ++
3 files changed, 34 insertions
: Yi Sun
Cc: Michael S. Tsirkin
Cc: Cornelia Huck
Cc: Paolo Bonzini
Signed-off-by: Liu Yi L
---
linux-headers/linux/iommu.h | 372
linux-headers/linux/vfio.h | 127 +++
2 files changed, 499 insertions(+)
create mode 100644 linux-headers
Bonzini
Cc: Richard Henderson
Cc: Eduardo Habkost
Signed-off-by: Liu Yi L
---
hw/i386/intel_iommu.c | 57 ++
hw/i386/intel_iommu_internal.h | 13 ++
2 files changed, 70 insertions(+)
diff --git a/hw/i386/intel_iommu.c b/hw/i386
: David Gibson
Cc: Alex Williamson
Signed-off-by: Liu, Yi L
---
hw/iommu/host_iommu_context.c | 20 ++
hw/vfio/common.c | 49 +++
include/hw/iommu/host_iommu_context.h | 23
3 files changed, 92 insertions
-by: Liu Yi L
Signed-off-by: Yi Sun
---
hw/i386/intel_iommu.c | 166 +
hw/i386/intel_iommu_internal.h | 37 +
hw/i386/trace-events | 1 +
include/hw/i386/intel_iommu.h | 6 +-
4 files changed, 209 insertions(+), 1 deletion
: Shameer Kolothum
Signed-off-by: Liu Yi L
---
hw/iommu/host_iommu_context.c | 5 +-
hw/vfio/common.c | 97 ++-
include/hw/iommu/host_iommu_context.h | 10 +++-
3 files changed, 108 insertions(+), 4 deletions(-)
diff --git a/hw/iommu
subsequent patches.
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Yi Sun
Cc: Paolo Bonzini
Cc: Richard Henderson
Cc: Eduardo Habkost
Reviewed-by: Peter Xu
Signed-off-by: Liu Yi L
---
hw/i386/intel_iommu.c | 66 ++
hw/i386/intel_iommu_internal.h
: Richard Henderson
Cc: Eduardo Habkost
Signed-off-by: Liu Yi L
---
hw/i386/intel_iommu.c | 18 ++
hw/i386/intel_iommu_internal.h | 1 +
2 files changed, 19 insertions(+)
diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c
index e6326ef..f5faa75 100644
--- a/hw
lable mode support
- if not configured, means no scalable mode support, if not proper
configured, will throw error
Note: this patch is supposed to be merged when the whole vSVA patch series
were merged.
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Yi Sun
Cc: Paolo Bonzini
Cc: Richar
ment
and addressed the TODOs mentioned in RFC v1.
RFC v1: https://patchwork.kernel.org/cover/11033657/
Eric Auger (1):
scripts/update-linux-headers: Import iommu.h
Liu Yi L (21):
header file update VFIO/IOMMU vSVA APIs
vfio: check VFIO_TYPE1_NESTING_IOMMU support
hw/iom
emulators to get HostIOMMUContext.
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Eric Auger
Cc: Yi Sun
Cc: David Gibson
Cc: Michael S. Tsirkin
Signed-off-by: Liu, Yi L
---
hw/pci/pci.c | 10 ++
include/hw/pci/pci.h | 6 ++
2 files changed, 16 insertions(+)
diff --git
l.org/lkml/2019/9/23/297
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Yi Sun
Cc: Paolo Bonzini
Cc: Richard Henderson
Cc: Eduardo Habkost
Signed-off-by: Liu Yi L
---
hw/i386/intel_iommu.c | 10 ++
1 file changed, 10 insertions(+)
diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iom
: Paolo Bonzini
Cc: Richard Henderson
Cc: Eduardo Habkost
Signed-off-by: Liu Yi L
---
hw/i386/intel_iommu.c | 67 ++
hw/i386/intel_iommu_internal.h | 6 +++-
hw/i386/trace-events | 1 +
3 files changed, 73 insertions(+), 1 deletion
VFIO needs to check VFIO_TYPE1_NESTING_IOMMU support with Kernel before
further using it. e.g. requires to check IOMMU UAPI version.
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Eric Auger
Cc: Yi Sun
Cc: David Gibson
Cc: Alex Williamson
Signed-off-by: Liu Yi L
Signed-off-by: Yi Sun
: Liu Yi L
---
hw/vfio/common.c | 47 ++-
1 file changed, 46 insertions(+), 1 deletion(-)
diff --git a/hw/vfio/common.c b/hw/vfio/common.c
index f9be68d..8f30a52 100644
--- a/hw/vfio/common.c
+++ b/hw/vfio/common.c
@@ -1179,8 +1179,53 @@ static int
From: Eric Auger
Update the script to import the new iommu.h uapi header.
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Yi Sun
Cc: Michael S. Tsirkin
Cc: Cornelia Huck
Cc: Paolo Bonzini
Acked-by: Cornelia Huck
Signed-off-by: Eric Auger
---
scripts/update-linux-headers.sh | 2 +-
1 file
This patch adds pci_device_host_iommu_context() to expose HostIOMMUContext
to vIOMMU emulators via pci layer.
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Eric Auger
Cc: Yi Sun
Cc: David Gibson
Cc: Michael S. Tsirkin
Signed-off-by: Liu Yi L
---
hw/pci/pci.c | 8
include
201 - 300 of 636 matches
Mail list logo