Re: [Qemu-devel] [RFC v1 1/3] intel_iommu: scalable mode emulation

2019-02-13 Thread Peter Xu
On Wed, Feb 13, 2019 at 04:03:05PM +0800, Peter Xu wrote: > On Wed, Feb 13, 2019 at 03:38:55PM +0800, Yi Sun wrote: > > [...] > > > > > diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c > > > > index 8b72735..396ac8e 100644 > > > > --- a/hw/i386/intel_iommu.c > > > > +++ b/hw/i386/intel_

Re: [Qemu-devel] [RFC v1 1/3] intel_iommu: scalable mode emulation

2019-02-13 Thread Peter Xu
On Wed, Feb 13, 2019 at 03:38:55PM +0800, Yi Sun wrote: [...] > > > diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c > > > index 8b72735..396ac8e 100644 > > > --- a/hw/i386/intel_iommu.c > > > +++ b/hw/i386/intel_iommu.c > > > @@ -37,6 +37,34 @@ > > > #include "kvm_i386.h" > > > #incl

Re: [Qemu-devel] [RFC v1 1/3] intel_iommu: scalable mode emulation

2019-02-12 Thread Yi Sun
On 19-02-11 18:12:13, Peter Xu wrote: > On Wed, Jan 30, 2019 at 01:09:11PM +0800, Yi Sun wrote: > > From: "Liu, Yi L" > > > > Intel(R) VT-d 3.0 spec introduces scalable mode address translation to > > replace extended context mode. This patch extends current emulator to > > support Scalable Mode

Re: [Qemu-devel] [RFC v1 1/3] intel_iommu: scalable mode emulation

2019-02-11 Thread Peter Xu
On Wed, Jan 30, 2019 at 01:09:11PM +0800, Yi Sun wrote: > From: "Liu, Yi L" > > Intel(R) VT-d 3.0 spec introduces scalable mode address translation to > replace extended context mode. This patch extends current emulator to > support Scalable Mode which includes root table, context table and new >

[Qemu-devel] [RFC v1 1/3] intel_iommu: scalable mode emulation

2019-01-29 Thread Yi Sun
From: "Liu, Yi L" Intel(R) VT-d 3.0 spec introduces scalable mode address translation to replace extended context mode. This patch extends current emulator to support Scalable Mode which includes root table, context table and new pasid table format change. Now intel_iommu emulates both legacy mod