On 2017年04月20日 15:04, Peter Xu wrote:
> On Thu, Apr 20, 2017 at 06:36:16AM +, Liu, Yi L wrote:
>
> [...]
>
In my understanding, container->space->as->root cannot work here no
matter passthru-mode is enabled or not. The code here is aiming to
check if vIOMMU exists. After the vf
On Thu, Apr 20, 2017 at 06:36:16AM +, Liu, Yi L wrote:
[...]
> > > In my understanding, container->space->as->root cannot work here no
> > > matter passthru-mode is enabled or not. The code here is aiming to
> > > check if vIOMMU exists. After the vfio series, the vtd_dev_as->root is
> > > no
On Thu, Apr 20, 2017 at 02:51:11PM +0800, Lan, Tianyu wrote:
> On 4/20/2017 1:40 PM, Peter Xu wrote:
[...]
> >>>a slightly hackish way.
> >>
> >>In my understanding, container->space->as->root cannot work here no matter
> >>passthru-mode
> >>is enabled or not. The code here is aiming to check if
On 4/20/2017 1:40 PM, Peter Xu wrote:
On Thu, Apr 20, 2017 at 04:55:24AM +, Liu, Yi L wrote:
[...]
In my previous RFC patchset of fault event reporting, I registered
fault notifier when there is a VFIO group attached to VFIO container
and used the address space to check whether vIOMMU is a
ct: Re: [Qemu-devel] [PATCH v2 7/7] intel_iommu: support passthrough (PT)
>
> On Thu, Apr 20, 2017 at 04:55:24AM +, Liu, Yi L wrote:
>
> [...]
>
> > > > In my previous RFC patchset of fault event reporting, I registered
> > > > fault notifier when the
On Thu, Apr 20, 2017 at 04:55:24AM +, Liu, Yi L wrote:
[...]
> > > In my previous RFC patchset of fault event reporting, I registered
> > > fault notifier when there is a VFIO group attached to VFIO container
> > > and used the address space to check whether vIOMMU is added. The
> > > address
--
> > >> From: Peter Xu [mailto:pet...@redhat.com]
> > >> Sent: Tuesday, April 18, 2017 3:27 PM
> > >> To: Liu, Yi L
> > >> Cc: qemu-devel@nongnu.org; Lan, Tianyu ; Michael S
> > >> .
> > >> Tsirkin ; Jason Wang ; Mar
qemu-devel-bounces+yi.l.liu=intel@nongnu.org]
> > On
> > Behalf Of Peter Xu
> > Sent: Monday, April 17, 2017 7:32 PM
> > To: qemu-devel@nongnu.org
> > Cc: Lan, Tianyu ; Michael S . Tsirkin
> > ;
> > Jason Wang ; pet...@redhat.com; Marcel Apfelbaum
> &
3:27 PM
> >> To: Liu, Yi L
> >> Cc: qemu-devel@nongnu.org; Lan, Tianyu ; Michael S .
> >> Tsirkin ; Jason Wang ; Marcel
> >> Apfelbaum ; David Gibson
> >> Subject: Re: [Qemu-devel] [PATCH v2 7/7] intel_iommu: support passthrough
> >>
el S .
>> Tsirkin ; Jason Wang ; Marcel
>> Apfelbaum ; David Gibson
>> Subject: Re: [Qemu-devel] [PATCH v2 7/7] intel_iommu: support passthrough
>> (PT)
>>
>> On Tue, Apr 18, 2017 at 06:02:44AM +, Liu, Yi L wrote:
>>>>> Hi Peter,
>>>&g
2017 7:32 PM
> To: qemu-devel@nongnu.org
> Cc: Lan, Tianyu ; Michael S . Tsirkin ;
> Jason Wang ; pet...@redhat.com; Marcel Apfelbaum
> ; David Gibson
> Subject: [Qemu-devel] [PATCH v2 7/7] intel_iommu: support passthrough (PT)
>
> Signed-off-by: Peter Xu
> -
> -Original Message-
> From: Peter Xu [mailto:pet...@redhat.com]
> Sent: Tuesday, April 18, 2017 3:27 PM
> To: Liu, Yi L
> Cc: qemu-devel@nongnu.org; Lan, Tianyu ; Michael S .
> Tsirkin ; Jason Wang ; Marcel
> Apfelbaum ; David Gibson
> Subject: Re: [Q
On Tue, Apr 18, 2017 at 06:02:44AM +, Liu, Yi L wrote:
> > > Hi Peter,
> > >
> > > Skip address space switching is a good idea to support Passthru mode.
> > > However, without the address space, the vfio notifier would not be
> > > registered, thus vIOMMU emulator has no way to connect to host.
> > Hi Peter,
> >
> > Skip address space switching is a good idea to support Passthru mode.
> > However, without the address space, the vfio notifier would not be
> > registered, thus vIOMMU emulator has no way to connect to host. It is
> > no harm if there is only map/unmap notifier. But if we hav
On Tue, Apr 18, 2017 at 04:30:40AM +, Liu, Yi L wrote:
[...]
> > +static void vtd_switch_address_space(VTDAddressSpace *as) {
> > +bool use_iommu;
> > +
> > +assert(as);
> > +
> > +use_iommu = as->iommu_state->dmar_enabled;
> > +if (use_iommu) {
> > +/* Further checks
com; Marcel Apfelbaum
> ; David Gibson
> Subject: [Qemu-devel] [PATCH v2 7/7] intel_iommu: support passthrough (PT)
>
> Signed-off-by: Peter Xu
> ---
> hw/i386/intel_iommu.c | 109
> +
> hw/i386/intel_iommu_internal.h | 1 +
&g
Signed-off-by: Peter Xu
---
hw/i386/intel_iommu.c | 109 +
hw/i386/intel_iommu_internal.h | 1 +
hw/i386/trace-events | 1 +
hw/i386/x86-iommu.c| 1 +
include/hw/i386/x86-iommu.h| 1 +
5 files changed, 93 insertion
17 matches
Mail list logo