> From: Peter Xu [mailto:zh...@redhat.com]
> Sent: Thursday, July 11, 2019 9:13 AM
> To: Liu, Yi L
> Subject: Re: [RFC v1 06/18] intel_iommu: support virtual command emulation and
> pasid request
>
> On Wed, Jul 10, 2019 at 11:51:17AM +, Liu, Yi L wrote:
>
>
> From: Peter Xu [mailto:zh...@redhat.com]
> Sent: Thursday, July 11, 2019 9:04 AM
> To: Liu, Yi L
> Subject: Re: [RFC v1 04/18] intel_iommu: add "sm_model" option
>
> On Wed, Jul 10, 2019 at 12:14:44PM +, Liu, Yi L wrote:
> > > From: Peter Xu [mailto:
> From: Peter Xu [mailto:zh...@redhat.com]
> Sent: Tuesday, July 9, 2019 12:48 PM
> To: Liu, Yi L
> Cc: qemu-devel@nongnu.org; m...@redhat.com; pbonz...@redhat.com;
> alex.william...@redhat.com; eric.au...@redhat.com;
> da...@gibson.dropbear.id.au; tianyu@intel.com; Tian, K
> From: Auger Eric [mailto:eric.au...@redhat.com]
> Sent: Tuesday, July 9, 2019 4:38 PM
> To: Peter Xu ; Liu, Yi L
> Subject: Re: [RFC v1 02/18] linux-headers: import vfio.h from kernel
>
> Hi Liu,
>
> On 7/9/19 3:58 AM, Peter Xu wrote:
> > On Fri, Jul 05, 2019
> From: Auger Eric [mailto:eric.au...@redhat.com]
> Sent: Tuesday, July 9, 2019 4:38 PM
> Subject: Re: [RFC v1 08/18] vfio/pci: add vfio bind/unbind_gpasid
> implementation
>
> Hi Liu,
>
> On 7/5/19 1:01 PM, Liu Yi L wrote:
> > This patch adds vfio implemen
> From: kvm-ow...@vger.kernel.org [mailto:kvm-ow...@vger.kernel.org] On Behalf
> Of Peter Xu
> Sent: Tuesday, July 9, 2019 9:58 AM
> To: Liu, Yi L
> Subject: Re: [RFC v1 02/18] linux-headers: import vfio.h from kernel
>
> On Fri, Jul 05, 2019 at 07:01:35PM +0800, Liu Yi L
Hi Eric,
> From: Auger Eric [mailto:eric.au...@redhat.com]
> Sent: Tuesday, July 9, 2019 4:38 PM
> To: Liu, Yi L ; qemu-devel@nongnu.org; m...@redhat.com;
> Subject: Re: [RFC v1 07/18] hw/pci: add pci_device_bind/unbind_gpasid
>
> Hi Liu,
>
> On 7/5/19 1:01 PM, Liu Yi
> From: Peter Xu [mailto:zh...@redhat.com]
> Sent: Tuesday, July 9, 2019 10:24 AM
> To: Liu, Yi L
> Subject: Re: [RFC v1 05/18] vfio/pci: add pasid alloc/free implementation
>
> On Fri, Jul 05, 2019 at 07:01:38PM +0800, Liu Yi L wrote:
> > This patch
> From: Peter Xu [mailto:zh...@redhat.com]
> Sent: Tuesday, July 9, 2019 10:16 AM
> To: Liu, Yi L
> Subject: Re: [RFC v1 04/18] intel_iommu: add "sm_model" option
>
> On Fri, Jul 05, 2019 at 07:01:37PM +0800, Liu Yi L wrote:
> > Intel VT-d 3.0 introduces
> From: Peter Xu [mailto:zh...@redhat.com]
> Sent: Tuesday, July 9, 2019 11:19 AM
> Subject: Re: [RFC v1 06/18] intel_iommu: support virtual command emulation and
> pasid request
>
> On Fri, Jul 05, 2019 at 07:01:39PM +0800, Liu Yi L wrote:
> > This patch adds virtual
> From: Peter Xu [mailto:zh...@redhat.com]
> Sent: Tuesday, July 9, 2019 10:12 AM
> To: Liu, Yi L
> Subject: Re: [RFC v1 03/18] hw/pci: introduce PCIPASIDOps to PCIDevice
>
> On Fri, Jul 05, 2019 at 07:01:36PM +0800, Liu Yi L wrote:
> > +void pci_setup_pasid_ops(PCIDevic
This patch adds support for propagating guest PASID-based iotlb flush
to host via vfio container ioctl.
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Eric Auger
Cc: Yi Sun
Cc: David Gibson
Signed-off-by: Liu Yi L
---
hw/vfio/pci.c | 23 +++
1 file changed, 23
gt;HPA translation.
As guest owns first level translation table, guest's PASID-based IOTLB(piotlb)
flush should be propagated to host since host IOMMU will cache first level
page table related mappings during DMA address translation.
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Yi Sun
Signed-off-by:
This patch adds flush_pasid_iotlb() in PCIPASIDOps for passing guest
PASID-based iotlb flush operation to host via vfio interface.
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Eric Auger
Cc: Yi Sun
Cc: David Gibson
Signed-off-by: Liu Yi L
---
hw/pci/pci.c | 15
a disaster if no proper handling. So, to be safe, vIOMMU
emulator needs to do replay for the two invalidation granularity
to reflect the latest pasid bindings in guest pasid table.
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Yi Sun
Signed-off-by: Liu Yi L
---
hw/i386/intel_iommu.c
be
followed with a proper pasid cache flush. Also needs to consider pasid
bind replay.
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Yi Sun
Signed-off-by: Liu Yi L
---
hw/i386/intel_iommu.c | 22 ++
hw/i386/intel_iommu_internal.h | 2 ++
hw/i386/trace-events
016"
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Yi Sun
Signed-off-by: Liu Yi L
---
hw/i386/intel_iommu.c | 166 -
hw/i386/intel_iommu_internal.h | 9 +++
hw/i386/trace-events | 4 +
include/hw/i386/intel_iommu.h | 15
A special PASID value is to indicate
host to bind the guest page table to a proper PASID. e.g PASID value from
RID_PASID field for PF/VF or default PASID for ADI (Assignable Device
Interface in Scalable IOV solution).
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Yi Sun
Signed-off-by: Liu Yi
PASID-based IOTLB (piotlb) is used during walking Intel VT-d first-level
page table. This patch adds frame of processing for PASID-based IOTLB flush.
Detailed processing is in next patch of this patchset.
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Yi Sun
Signed-off-by: Liu Yi L
---
hw
nested translation mode. This is key part of vSVA support in KVM.
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Yi Sun
Signed-off-by: Liu Yi L
---
hw/i386/intel_iommu.c | 85 +-
hw/i386/intel_iommu_internal.h | 20 ++
2 files change
This patch adds virtual command support to Intel vIOMMU per Intel VT-d 3.1
spec. This patch adds two virtual commands: alloc_pasid and free_pasid.
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Yi Sun
Signed-off-by: Liu Yi L
Signed-off-by: Yi Sun
---
hw/i386/intel_iommu.c | 139
. And this
patch only adds the frame of it. The detailed implementation relies on
PASID records management implementation in vIOMMU, which will be covered
in later patch of this series.
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Yi Sun
Signed-off-by: Liu Yi L
---
hw/i386/intel_iommu.c | 40
This patch imports the vIOMMU related definitions from kernel
uapi/iommu.h. e.g. iommu fault report, pasid allocation, guest
pasid bind and guest iommu cache flush.
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Eric Auger
Cc: Yi Sun
Signed-off-by: Liu Yi L
Signed-off-by: Jacob Pan
Signed
-by: Liu Yi L
---
hw/vfio/pci.c | 54 ++
1 file changed, 54 insertions(+)
diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c
index ab184ad..892b46c 100644
--- a/hw/vfio/pci.c
+++ b/hw/vfio/pci.c
@@ -2744,9 +2744,63 @@ static int
: Yi Sun
Cc: David Gibson
Signed-off-by: Liu Yi L
---
hw/pci/pci.c | 30 ++
include/hw/pci/pci.h | 9 +
2 files changed, 39 insertions(+)
diff --git a/hw/pci/pci.c b/hw/pci/pci.c
index 710f9e9..2229229 100644
--- a/hw/pci/pci.c
+++ b/hw/pci/pci.c
This patch imports the vIOMMU related definitions from kernel
uapi/vfio.h. e.g. pasid allocation, guest pasid bind, guest pasid
table bind and guest iommu cache invalidation.
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Eric Auger
Cc: Yi Sun
Signed-off-by: Liu Yi L
Signed-off-by: Jacob Pan
; if "x-scalable-mode=on while no sm_model is
configured
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Yi Sun
Signed-off-by: Liu Yi L
Signed-off-by: Yi Sun
---
hw/i386/intel_iommu.c | 28 +++-
hw/i386/intel_iommu_internal.h | 2 ++
include/hw/i386/in
-by: Liu Yi L
Signed-off-by: Yi Sun
---
hw/vfio/pci.c | 61 +++
1 file changed, 61 insertions(+)
diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c
index ce3fe96..ab184ad 100644
--- a/hw/vfio/pci.c
+++ b/hw/vfio/pci.c
@@ -2690,6 +2690,65 @@ static void
. Like vfio.
Cc: Kevin Tian
Cc: Jacob Pan
Cc: Peter Xu
Cc: Eric Auger
Cc: Yi Sun
Cc: David Gibson
Signed-off-by: Liu Yi L
Signed-off-by: Yi Sun
---
hw/pci/pci.c | 50 ++
include/hw/pci/pci.h | 14 ++
2 files changed, 64
ntegration by Eric Auger
https://lists.sr.ht/~philmd/qemu/%3C20190527114203.2762-1-eric.auger%40redhat.com%3E
[6] [RFC PATCH 2/6] drivers core: Add I/O ASID allocator by Jean-Philippe
Brucker
https://www.spinics.net/lists/iommu/msg30639.html
Liu Yi L (18):
linux-headers: import iommu.h from kern
is VT-d 3.0 which deprecates Extended Context
support.
Other parts look good to me.
Reviewed-by: Liu, Yi L
Thanks,
Yi Liu
Hi Eric,
> From: Auger Eric [mailto:eric.au...@redhat.com]
> Sent: Thursday, October 18, 2018 11:16 PM
>
> Hi Yi,
>
> On 10/18/18 12:30 PM, Liu, Yi L wrote:
> > Hi Eric,
> >
> >> From: Eric Auger [mailto:eric.au...@redhat.com]
> >> Sent: Friday,
Hi Eric,
> From: Eric Auger [mailto:eric.au...@redhat.com]
> Sent: Friday, September 21, 2018 4:18 PM
> Subject: [RFC v2 00/28] vSMMUv3/pSMMUv3 2 stage VFIO integration
>
> Up to now vSMMUv3 has not been integrated with VFIO. VFIO
> integration requires to program the physical IOMMU consistently
> Sent: Wednesday, April 18, 2018 12:51 PM
> Subject: [Qemu-devel] [PATCH] intel-iommu: send PSI always when notify_unmap
> set
>
> During IOVA page table walk, there is a special case when:
>
> - notify_unmap is set, meanwhile
> - entry is invalid
This is very brief description, would you mind
Hi David,
> From: David Gibson [mailto:da...@gibson.dropbear.id.au]
> Sent: Thursday, April 12, 2018 10:36 AM
> On Tue, Mar 06, 2018 at 06:33:52PM +0800, Liu, Yi L wrote:
> > On Mon, Mar 05, 2018 at 02:31:44PM +1100, David Gibson wrote:
> > > On Thu, Mar 01, 2018 at 06:
> From: Peter Xu [mailto:pet...@redhat.com]
> Sent: Friday, March 9, 2018 3:59 PM
> Subject: Re: [PATCH v3 12/12] intel_iommu: bind device to PASID tagged
> AddressSpace
>
> On Thu, Mar 08, 2018 at 09:39:18AM +, Liu, Yi L wrote:
> > > From: Peter Xu [mailto:pe
> From: Peter Xu [mailto:pet...@redhat.com]
> Sent: Friday, March 9, 2018 3:06 PM
> To: Liu, Yi L <yi.l@intel.com>
[...]
> > > > > > +
> > > > > > static void vfio_pci_device_sva_register_notifier(PCIBus *bus,
> > > > > &g
> From: Peter Xu [mailto:pet...@redhat.com]
> Sent: Tuesday, March 6, 2018 8:10 PM
> To: Liu, Yi L <yi.l@intel.com>
> Cc: Liu, Yi L <yi.l@linux.intel.com>; qemu-devel@nongnu.org;
> m...@redhat.com;
> da...@gibson.dropbear.id.au; pbonz...@redhat.c
> From: Paolo Bonzini [mailto:pbonz...@redhat.com]
> Sent: Tuesday, March 6, 2018 6:27 PM
> Subject: Re: [Qemu-devel] [PATCH v3 11/12] intel_iommu: add framework for
> PASID
> AddressSpace management
>
> On 05/03/2018 10:11, Liu, Yi L wrote:
> >> Do you really ne
> From: Peter Xu [mailto:pet...@redhat.com]
> Sent: Tuesday, March 6, 2018 7:44 PM
> Subject: Re: [PATCH v3 12/12] intel_iommu: bind device to PASID tagged
> AddressSpace
>
> On Thu, Mar 01, 2018 at 06:33:35PM +0800, Liu, Yi L wrote:
> > This patch shows the idea o
> From: Peter Xu [mailto:pet...@redhat.com]
> Sent: Wednesday, March 7, 2018 1:38 PM
> To: Liu, Yi L <yi.l@intel.com>
> Cc: Liu, Yi L <yi.l@linux.intel.com>; qemu-devel@nongnu.org;
> m...@redhat.com;
> da...@gibson.dropbear.id.au; pbonz...@redhat.c
> From: Paolo Bonzini [mailto:pbonz...@redhat.com]
> Sent: Tuesday, March 6, 2018 7:22 PM
> Subject: Re: [Qemu-devel] [PATCH v3 08/12] hw/pci: introduce
> pci_device_notify_iommu()
>
> On 06/03/2018 12:03, Liu, Yi L wrote:
> > On Tue, Mar 06, 2018 at 11:18:43AM +0
On Tue, Mar 06, 2018 at 06:47:27PM +0800, Peter Xu wrote:
> On Tue, Mar 06, 2018 at 11:19:13AM +0100, Paolo Bonzini wrote:
> > On 05/03/2018 11:43, Peter Xu wrote:
> > > On Mon, Mar 05, 2018 at 04:43:09PM +0800, Liu, Yi L wrote:
> > >> On Fri, Mar 02, 2018 at 05:06:5
On Tue, Mar 06, 2018 at 11:18:43AM +0100, Paolo Bonzini wrote:
> On 05/03/2018 09:42, Liu, Yi L wrote:
> >> In general I think it's better to change your names from "assigned_dev"
> >> to "sva_dev", because the point of the list is to only iterate o
On Mon, Mar 05, 2018 at 02:31:44PM +1100, David Gibson wrote:
> On Thu, Mar 01, 2018 at 06:31:55PM +0800, Liu, Yi L wrote:
> > This patch intoduces PCISVAOps for virt-SVA.
> >
> > So far, to setup virt-SVA for assigned SVA capable device, needs to
> > config host
On Mon, Mar 05, 2018 at 02:25:09PM +1100, David Gibson wrote:
> On Thu, Mar 01, 2018 at 06:31:53PM +0800, Liu, Yi L wrote:
> > From: Peter Xu <pet...@redhat.com>
> >
> > This patch adds IOMMUSVAContext as an abstract for virt-SVA in
> > Qemu.
> >
> >
> From: Peter Xu [mailto:pet...@redhat.com]
> Sent: Tuesday, March 6, 2018 2:45 PM
> Subject: Re: [PATCH v3 07/12] vfio/pci: register sva notifier
>
> On Thu, Mar 01, 2018 at 06:33:30PM +0800, Liu, Yi L wrote:
> > This patch shows how sva notifier is registered. And pr
> From: Peter Xu [mailto:pet...@redhat.com]
> Sent: Tuesday, March 6, 2018 2:56 PM
> Subject: Re: [PATCH v3 00/12] Introduce new iommu notifier framework for
> virt-SVA
>
> On Thu, Mar 01, 2018 at 06:33:23PM +0800, Liu, Yi L wrote:
> > This patchset is to introduce a not
On Fri, Mar 02, 2018 at 04:01:11PM +0100, Paolo Bonzini wrote:
> On 01/03/2018 11:33, Liu, Yi L wrote:
> > From: Peter Xu <pet...@redhat.com>
> >
> > IOMMU notifiers before are mostly used for [dev-]IOTLB stuffs. It is not
> > suitable for other kind of notifiers
On Fri, Mar 02, 2018 at 03:51:53PM +0100, Paolo Bonzini wrote:
> On 01/03/2018 11:33, Liu, Yi L wrote:
> > +IntelPASIDNode *node;
> > +char name[128];
> > +
> > +QLIST_FOREACH(node, &(s->pasid_as_list), next) {
> > +vtd_pasid_as
On Fri, Mar 02, 2018 at 04:08:47PM +0100, Paolo Bonzini wrote:
> On 01/03/2018 11:33, Liu, Yi L wrote:
> >
> > +struct IntelIOMMUAssignedDeviceNode {
> > +VTDAddressSpace *vtd_as;
> > +QLIST_ENTRY(IntelIOMMUAssignedDeviceNode) next;
> > +};
> > +
&
On Fri, Mar 02, 2018 at 03:52:44PM +0100, Paolo Bonzini wrote:
> On 01/03/2018 11:33, Liu, Yi L wrote:
>
> Please merge this patch with the next one, since they are basically the
> .h and .c sides of the same thing.
yes, would do it in next version.
Thanks,
Yi Liu
On Fri, Mar 02, 2018 at 04:00:23PM +0100, Paolo Bonzini wrote:
> On 01/03/2018 11:33, Liu, Yi L wrote:
> > +struct VTDDeviceNode {
> > +PCIBus *bus;
> > +uint8_t devfn;
> > +QLIST_ENTRY(VTDDeviceNode) next;
> > +};
>
> Do you really need VTD
On Mon, Mar 05, 2018 at 04:27:43PM +0800, Peter Xu wrote:
> On Thu, Mar 01, 2018 at 06:33:31PM +0800, Liu, Yi L wrote:
>
> [...]
>
> > -void pci_setup_iommu(PCIBus *bus, PCIIOMMUFunc fn, void *opaque)
> > +void pci_device_notify_iommu(PCIDevice *dev, PCIDevNotifyType t
On Fri, Mar 02, 2018 at 05:06:56PM +0100, Paolo Bonzini wrote:
> On 01/03/2018 11:33, Liu, Yi L wrote:
> > +pci_device_notify_iommu(pdev, PCI_NTY_DEV_ADD);
> > +
> > pci_setup_sva_ops(pdev, _pci_sva_ops);
> >
> > return;
> > @@ -3134,6 +3136
On Fri, Mar 02, 2018 at 04:12:01PM +0100, Paolo Bonzini wrote:
> On 01/03/2018 11:33, Liu, Yi L wrote:
> > This patch adds pci_device_notify_iommu() for notify virtual IOMMU
> > emulator when assigned device is added. And adds a new notify_func
> > in PCIBus. vIOMMU emulator
On Fri, Mar 02, 2018 at 04:10:48PM +0100, Paolo Bonzini wrote:
> On 01/03/2018 11:33, Liu, Yi L wrote:
> > +void pci_setup_sva_ops(PCIDevice *dev, PCISVAOps *ops)
> > +{
> > +if (dev) {
> > +dev->sva_ops = ops;
> > +}
> > +return;
>
On Fri, Mar 02, 2018 at 04:13:17PM +0100, Paolo Bonzini wrote:
> On 01/03/2018 11:33, Liu, Yi L wrote:
> > +void iommu_sva_notifier_unregister(IOMMUSVAContext *sva_ctx,
> > + IOMMUSVANotifier *notifier)
> > +{
> > +I
On Thu, Mar 01, 2018 at 03:32:22PM +0200, Michael S. Tsirkin wrote:
> On Thu, Mar 01, 2018 at 06:31:50PM +0800, Liu, Yi L wrote:
> > This patchset is to introduce a notifier framework for virt-SVA.
> > You may find virt-SVA design details from the link below.
> >
> > ht
On Mon, Mar 05, 2018 at 03:45:55PM +0800, Peter Xu wrote:
> On Thu, Mar 01, 2018 at 06:33:27PM +0800, Liu, Yi L wrote:
> > This patch introduces a notify framework for IOMMUSVAContext.sva_notifiers.
> >
> > Signed-off-by: Liu, Yi L <yi.l@linux.intel.com>
&g
ned-off-by: Liu, Yi L <yi.l@linux.intel.com>
---
hw/i386/intel_iommu.c | 1 +
include/hw/i386/intel_iommu.h | 24
2 files changed, 25 insertions(+)
diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c
index d92a66d..b8e8dbb 100644
---
-off-by: Liu, Yi L <yi.l@linux.intel.com>
---
hw/pci/pci.c | 60
include/hw/pci/pci.h | 21 ++
2 files changed, 81 insertions(+)
diff --git a/hw/pci/pci.c b/hw/pci/pci.c
index e006b6a..157fe21 100644
--- a/
device.
Signed-off-by: Liu, Yi L <yi.l@linux.intel.com>
---
hw/alpha/typhoon.c | 2 +-
hw/hppa/dino.c | 2 +-
hw/i386/amd_iommu.c | 2 +-
hw/i386/intel_iommu.c| 22 +-
hw/pci-host/ppce500.c| 2 +-
hw/pci-host/prep.c | 2 +-
hw/pc
u <pet...@redhat.com>
Signed-off-by: Liu, Yi L <yi.l@linux.intel.com>
---
hw/i386/amd_iommu.c | 6 ++---
hw/i386/intel_iommu.c | 34 +-
hw/ppc/spapr_iommu.c | 8 +++
hw/s390x/s390-pci-bus.c | 2 +-
hw/vfio/common.c
This patch records assigned devices in a list within Intel vIOMMU
emulator. The recorded info can be used to filter out affect assigned
devices when Qemu captured guest's cache invalidate request.
Signed-off-by: Liu, Yi L <yi.l@linux.intel.com>
---
hw/i386/intel_iommu.c
This patch shows how sva notifier is registered. And provided
an example by registering notify func for tlb flush propagation.
Signed-off-by: Liu, Yi L <yi.l@linux.intel.com>
---
hw/vfio/pci.c | 55 +--
1 file changed, 53 insertions
VFIO is the bridge for vIOMMU and host IOMMU. Needs to provide API
for vIOMMU emulator to set configs to host IOMMU. In this patchset,
such API is exposed in hw/pci.
Signed-off-by: Liu, Yi L <yi.l@linux.intel.com>
---
hw/vfio/pci.c | 30 ++
1 file chang
. Here just want
to show the idea for the PASID tagged AddressSpace management framework.
Full unregister logic would be included in future virt-SVA patchset.
Signed-off-by: Liu, Yi L <yi.l@linux.intel.com>
---
hw/i386/intel_iommu.c | 119 +++
ned-off-by: Liu, Yi L <yi.l@linux.intel.com>
---
hw/i386/intel_iommu.c | 1 +
include/hw/i386/intel_iommu.h | 24
2 files changed, 25 insertions(+)
diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c
index d92a66d..b8e8dbb 100644
---
This patch introduces a notify framework for IOMMUSVAContext.sva_notifiers.
Signed-off-by: Liu, Yi L <yi.l@linux.intel.com>
---
hw/vfio/common.c | 1 +
include/hw/vfio/vfio-common.h | 9 +
2 files changed, 10 insertions(+)
diff --git a/hw/vfio/common.c b/h
u <pet...@redhat.com>
Signed-off-by: Liu, Yi L <yi.l@linux.intel.com>
---
hw/core/Makefile.objs | 1 +
hw/core/pasid.c | 64
include/hw/core/pasid.h | 110
3 files changed, 175 insertions(+)
cre
device.
Signed-off-by: Liu, Yi L <yi.l@linux.intel.com>
---
hw/alpha/typhoon.c | 2 +-
hw/hppa/dino.c | 2 +-
hw/i386/amd_iommu.c | 2 +-
hw/i386/intel_iommu.c| 22 +-
hw/pci-host/ppce500.c| 2 +-
hw/pci-host/prep.c | 2 +-
hw/pc
-by: Liu, Yi L <yi.l@linux.intel.com>
---
hw/i386/intel_iommu.c | 69 +++
1 file changed, 69 insertions(+)
diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c
index 978f47a..d92a66d 100644
--- a/hw/i386/intel_iommu.c
+++ b/h
This patch renames GuestIOMMU to GuestIOMMUMR as the existing GuestIOMMU
is for MemoryRegion related notifiers.
Signed-off-by: Liu, Yi L <yi.l@linux.intel.com>
---
hw/vfio/common.c | 17 +
include/hw/vfio/vfio-common.h | 8
2 files chang
. Here just want
to show the idea for the PASID tagged AddressSpace management framework.
Full unregister logic would be included in future virt-SVA patchset.
Signed-off-by: Liu, Yi L <yi.l@linux.intel.com>
---
hw/i386/intel_iommu.c | 119 +++
This patch introduces a notify framework for IOMMUSVAContext.sva_notifiers.
Signed-off-by: Liu, Yi L <yi.l@linux.intel.com>
---
hw/vfio/common.c | 1 +
include/hw/vfio/vfio-common.h | 9 +
2 files changed, 10 insertions(+)
diff --git a/hw/vfio/common.c b/h
This patch shows how sva notifier is registered. And provided
an example by registering notify func for tlb flush propagation.
Signed-off-by: Liu, Yi L <yi.l@linux.intel.com>
---
hw/vfio/pci.c | 55 +--
1 file changed, 53 insertions
This patch records assigned devices in a list within Intel vIOMMU
emulator. The recorded info can be used to filter out affect assigned
devices when Qemu captured guest's cache invalidate request.
Signed-off-by: Liu, Yi L <yi.l@linux.intel.com>
---
hw/i386/intel_iommu.c
-by: Liu, Yi L <yi.l@linux.intel.com>
---
hw/i386/intel_iommu.c | 69 +++
1 file changed, 69 insertions(+)
diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c
index 978f47a..d92a66d 100644
--- a/hw/i386/intel_iommu.c
+++ b/h
u <pet...@redhat.com>
Signed-off-by: Liu, Yi L <yi.l@linux.intel.com>
---
hw/i386/amd_iommu.c | 6 ++---
hw/i386/intel_iommu.c | 34 +-
hw/ppc/spapr_iommu.c | 8 +++
hw/s390x/s390-pci-bus.c | 2 +-
hw/vfio/common.c
VFIO is the bridge for vIOMMU and host IOMMU. Needs to provide API
for vIOMMU emulator to set configs to host IOMMU. In this patchset,
such API is exposed in hw/pci.
Signed-off-by: Liu, Yi L <yi.l@linux.intel.com>
---
hw/vfio/pci.c | 30 ++
1 file chang
This patch renames GuestIOMMU to GuestIOMMUMR as the existing GuestIOMMU
is for MemoryRegion related notifiers.
Signed-off-by: Liu, Yi L <yi.l@linux.intel.com>
---
hw/vfio/common.c | 17 +
include/hw/vfio/vfio-common.h | 8
2 files chang
resend-patch-0-6-introduce-new-iommu-notifier-framework
Original patchset from Peter Xu can be found in the link below.
https://lists.gnu.org/archive/html/qemu-devel/2017-04/msg05360.html
Comments and suggestions are always welcomed, thanks.
Liu, Yi L (10):
vfio: rename GuestIOMMU to be Gue
-off-by: Liu, Yi L <yi.l@linux.intel.com>
---
hw/pci/pci.c | 60
include/hw/pci/pci.h | 21 ++
2 files changed, 81 insertions(+)
diff --git a/hw/pci/pci.c b/hw/pci/pci.c
index e006b6a..157fe21 100644
--- a/
u <pet...@redhat.com>
Signed-off-by: Liu, Yi L <yi.l@linux.intel.com>
---
hw/core/Makefile.objs | 1 +
hw/core/pasid.c | 64
include/hw/core/pasid.h | 110
3 files changed, 175 insertions(+)
cre
resend-patch-0-6-introduce-new-iommu-notifier-framework
Original patchset from Peter Xu can be found in the link below.
https://lists.gnu.org/archive/html/qemu-devel/2017-04/msg05360.html
Comments and suggestions are always welcomed, thanks.
Liu, Yi L (10):
vfio: rename GuestIOMMU to be Gue
On Wed, Dec 20, 2017 at 10:18:16PM +1100, David Gibson wrote:
> On Wed, Dec 20, 2017 at 02:47:30PM +0800, Liu, Yi L wrote:
> > On Mon, Dec 18, 2017 at 10:35:31PM +1100, David Gibson wrote:
> > > On Wed, Nov 15, 2017 at 03:16:32PM +0800, Peter Xu wrote:
> > > > On T
> -Original Message-
> From: Qemu-devel [mailto:qemu-devel-bounces+yi.l.liu=intel@nongnu.org] On
> Behalf Of Prasad Singamsetty
> Sent: Thursday, January 11, 2018 8:06 AM
> To: Liu, Yi L <yi.l@linux.intel.com>
> Cc: ehabk...@redhat.com; m...@redhat.com; konr
On Wed, Jan 03, 2018 at 11:28:17AM +1100, David Gibson wrote:
> On Thu, Dec 21, 2017 at 04:40:19PM +0800, Liu, Yi L wrote:
> > On Wed, Dec 20, 2017 at 10:18:16PM +1100, David Gibson wrote:
> > > On Wed, Dec 20, 2017 at 02:47:30PM +0800, Liu, Yi L wrote:
> > > > On M
et for guest and how much you have in host?
>
> 2017-12-26 19:37 GMT+08:00 Bob Chen <a175818...@gmail.com>:
>
> >
> >
> > 2017-12-26 18:51 GMT+08:00 Liu, Yi L <yi.l@intel.com>:
> >
> >> > -Original Message-
> >> >
> -Original Message-
> From: Qemu-devel [mailto:qemu-devel-bounces+yi.l.liu=intel@nongnu.org]
> On Behalf Of Bob Chen
> Sent: Tuesday, December 26, 2017 6:30 PM
> To: qemu-devel@nongnu.org
> Subject: [Qemu-devel] [GPU and VFIO] qemu hang at startup,
> VFIO_IOMMU_MAP_DMA is extremely
On Mon, Dec 25, 2017 at 01:45:22PM +0800, Peter Xu wrote:
> On Thu, Dec 21, 2017 at 02:15:19PM +0800, Liu, Yi L wrote:
> > vtd_ce_get_type() returns uin32_t and vtd_dev_get_trans_type() returns
> > the value from vtd_ce_get_type(). However, vtd_dev_get_trans_type()
> > re
On Wed, Dec 20, 2017 at 10:01:10PM +1100, David Gibson wrote:
> On Wed, Dec 20, 2017 at 02:32:42PM +0800, Liu, Yi L wrote:
> > On Mon, Dec 18, 2017 at 10:22:18PM +1100, David Gibson wrote:
> > > On Mon, Dec 18, 2017 at 05:17:35PM +0800, Liu, Yi L wrote:
> > > > On M
On Wed, Dec 20, 2017 at 10:18:16PM +1100, David Gibson wrote:
> On Wed, Dec 20, 2017 at 02:47:30PM +0800, Liu, Yi L wrote:
> > On Mon, Dec 18, 2017 at 10:35:31PM +1100, David Gibson wrote:
> > > On Wed, Nov 15, 2017 at 03:16:32PM +0800, Peter Xu wrote:
> > > > On T
.
Signed-off-by: Liu, Yi L <yi.l@linux.intel.com>
---
hw/i386/intel_iommu.c | 10 ++
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c
index 3a5bb0b..609f087 100644
--- a/hw/i386/intel_iommu.c
+++ b/hw/i386/intel_iommu.c
@@
On Mon, Dec 18, 2017 at 10:35:31PM +1100, David Gibson wrote:
> On Wed, Nov 15, 2017 at 03:16:32PM +0800, Peter Xu wrote:
> > On Tue, Nov 14, 2017 at 10:52:54PM +0100, Auger Eric wrote:
> >
> > [...]
> >
> > > I meant, in the current intel_iommu code, vtd_find_add_as() creates 1
> > > IOMMU MR
On Mon, Dec 18, 2017 at 10:22:18PM +1100, David Gibson wrote:
> On Mon, Dec 18, 2017 at 05:17:35PM +0800, Liu, Yi L wrote:
> > On Mon, Dec 18, 2017 at 05:14:42PM +1100, David Gibson wrote:
> > > On Thu, Nov 16, 2017 at 04:57:09PM +0800, Liu, Yi L wrote:
> > > > Hi
On Mon, Dec 18, 2017 at 05:14:42PM +1100, David Gibson wrote:
> On Thu, Nov 16, 2017 at 04:57:09PM +0800, Liu, Yi L wrote:
> > Hi David,
> >
> > On Tue, Nov 14, 2017 at 11:59:34AM +1100, David Gibson wrote:
> > > On Mon, Nov 13, 2017 at 04:28:45PM +0800, Peter Xu
Looks good.
Reviewed-by: Liu, Yi L <yi.l@intel.com>
On Fri, Dec 08, 2017 at 12:26:54PM +0800, Peter Xu wrote:
> It should be caching-mode. It may confuse people when it pops up.
>
> Signed-off-by: Peter Xu <pet...@redhat.com>
> ---
> hw/i386/intel_iommu.c
On Fri, Dec 08, 2017 at 12:26:53PM +0800, Peter Xu wrote:
Looks good to me.
Reviewed-by: Liu, Yi L <yi.l@intel.com>
> We have PCI_DEVFN_MAX now.
>
> Signed-off-by: Peter Xu <pet...@redhat.com>
> ---
> hw/i386/intel_iommu.c | 10 +-
> include/h
401 - 500 of 635 matches
Mail list logo