Re: [Xen-devel] [PATCH V3 26/29] x86/vvtd: Handle interrupt translation faults

2017-10-20 Thread Jan Beulich
>>> On 20.10.17 at 12:08, wrote: > On Fri, Oct 20, 2017 at 01:54:15PM +0800, Chao Gao wrote: >> On Thu, Oct 19, 2017 at 05:31:37PM +0100, Roger Pau Monné wrote: >> >On Thu, Sep 21, 2017 at 11:02:07PM -0400, Lan Tianyu wrote: >> >> +static int vvtd_alloc_frcd(struct vvtd *vvtd) >> >> +{ >> >> +

Re: [Xen-devel] [PATCH V3 26/29] x86/vvtd: Handle interrupt translation faults

2017-10-20 Thread Roger Pau Monné
On Fri, Oct 20, 2017 at 01:54:15PM +0800, Chao Gao wrote: > On Thu, Oct 19, 2017 at 05:31:37PM +0100, Roger Pau Monné wrote: > >On Thu, Sep 21, 2017 at 11:02:07PM -0400, Lan Tianyu wrote: > >> +static int vvtd_alloc_frcd(struct vvtd *vvtd) > >> +{ > >> +int prev; > >> +uint64_t cap = vvtd_g

Re: [Xen-devel] [PATCH V3 26/29] x86/vvtd: Handle interrupt translation faults

2017-10-19 Thread Chao Gao
On Thu, Oct 19, 2017 at 05:31:37PM +0100, Roger Pau Monné wrote: >On Thu, Sep 21, 2017 at 11:02:07PM -0400, Lan Tianyu wrote: >> From: Chao Gao >> >> Interrupt translation faults are non-recoverable fault. When faults >> are triggered, it needs to populate fault info to Fault Recording >> Registe

Re: [Xen-devel] [PATCH V3 26/29] x86/vvtd: Handle interrupt translation faults

2017-10-19 Thread Roger Pau Monné
On Thu, Sep 21, 2017 at 11:02:07PM -0400, Lan Tianyu wrote: > From: Chao Gao > > Interrupt translation faults are non-recoverable fault. When faults > are triggered, it needs to populate fault info to Fault Recording > Registers and inject vIOMMU msi interrupt to notify guest IOMMU driver > to de

[Xen-devel] [PATCH V3 26/29] x86/vvtd: Handle interrupt translation faults

2017-09-22 Thread Lan Tianyu
From: Chao Gao Interrupt translation faults are non-recoverable fault. When faults are triggered, it needs to populate fault info to Fault Recording Registers and inject vIOMMU msi interrupt to notify guest IOMMU driver to deal with faults. This patch emulates hardware's handling interrupt trans