[Xen-devel] [PATCH V2 11/25] x86/hvm: Introduce a emulated VTD for HVM

2017-08-09 Thread Lan Tianyu
From: Chao Gao This patch adds create/destroy/query function for the emulated VTD and adapts it to the common VIOMMU abstraction. Signed-off-by: Chao Gao Signed-off-by: Lan Tianyu --- xen/drivers/passthrough/vtd/Makefile | 7 +- xen/drivers/passthrough/vtd/iommu.h | 99 +--

Re: [Xen-devel] [PATCH V2 11/25] x86/hvm: Introduce a emulated VTD for HVM

2017-08-23 Thread Roger Pau Monné
On Wed, Aug 09, 2017 at 04:34:12PM -0400, Lan Tianyu wrote: > From: Chao Gao > > This patch adds create/destroy/query function for the emulated VTD > and adapts it to the common VIOMMU abstraction. > > Signed-off-by: Chao Gao > Signed-off-by: Lan Tianyu > --- > xen/drivers/passthrough/vtd/Mak

Re: [Xen-devel] [PATCH V2 11/25] x86/hvm: Introduce a emulated VTD for HVM

2017-08-23 Thread Lan Tianyu
On 2017年08月23日 15:58, Roger Pau Monné wrote: > On Wed, Aug 09, 2017 at 04:34:12PM -0400, Lan Tianyu wrote: >> From: Chao Gao >> >> This patch adds create/destroy/query function for the emulated VTD >> and adapts it to the common VIOMMU abstraction. >> >> Signed-off-by: Chao Gao >> Signed-off-by:

Re: [Xen-devel] [PATCH V2 11/25] x86/hvm: Introduce a emulated VTD for HVM

2017-08-24 Thread Roger Pau Monné
On Thu, Aug 24, 2017 at 10:16:32AM +0800, Lan Tianyu wrote: > On 2017年08月23日 15:58, Roger Pau Monné wrote: > > On Wed, Aug 09, 2017 at 04:34:12PM -0400, Lan Tianyu wrote: > >> From: Chao Gao > >> +} > >> + > >> +#define vvtd_get_reg_quad(vvtd, reg, val) do { \ > >> +(val) = vvtd_get_reg(vvtd,

Re: [Xen-devel] [PATCH V2 11/25] x86/hvm: Introduce a emulated VTD for HVM

2017-08-24 Thread Lan Tianyu
On 2017年08月24日 16:49, Roger Pau Monné wrote: > On Thu, Aug 24, 2017 at 10:16:32AM +0800, Lan Tianyu wrote: >> On 2017年08月23日 15:58, Roger Pau Monné wrote: >>> On Wed, Aug 09, 2017 at 04:34:12PM -0400, Lan Tianyu wrote: From: Chao Gao +} + +#define vvtd_get_reg_quad(vvtd, reg, v

Re: [Xen-devel] [PATCH V2 11/25] x86/hvm: Introduce a emulated VTD for HVM

2017-08-24 Thread Roger Pau Monné
On Thu, Aug 24, 2017 at 04:54:25PM +0800, Lan Tianyu wrote: > On 2017年08月24日 16:49, Roger Pau Monné wrote: > > On Thu, Aug 24, 2017 at 10:16:32AM +0800, Lan Tianyu wrote: > >> On 2017年08月23日 15:58, Roger Pau Monné wrote: > >>> On Wed, Aug 09, 2017 at 04:34:12PM -0400, Lan Tianyu wrote: > From: