[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [RFC v2 00/22] intel_iommu: expose Shared Virtual Addressing to VM
From: |
Liu, Yi L |
Subject: |
RE: [RFC v2 00/22] intel_iommu: expose Shared Virtual Addressing to VM |
Date: |
Thu, 31 Oct 2019 14:07:59 +0000 |
> From: Jason Wang [mailto:address@hidden]
> Sent: Thursday, October 31, 2019 5:33 AM
> Subject: Re: [RFC v2 00/22] intel_iommu: expose Shared Virtual Addressing to
> VM
>
>
> On 2019/10/25 下午6:12, Tian, Kevin wrote:
> >> From: Jason Wang [mailto:address@hidden]
> >> Sent: Friday, October 25, 2019 5:49 PM
> >>
> >>
> >> On 2019/10/24 下午8:34, Liu Yi L wrote:
> >>> Shared virtual address (SVA), a.k.a, Shared virtual memory (SVM) on
> >>> Intel platforms allow address space sharing between device DMA and
> >> applications.
> >>
> >>
> >> Interesting, so the below figure demonstrates the case of VM. I
> >> wonder how much differences if we compare it with doing SVM between
> >> device and an ordinary process (e.g dpdk)?
> >>
> >> Thanks
> > One difference is that ordinary process requires only stage-1
> > translation, while VM requires nested translation.
>
>
> A silly question, then I believe there's no need for VFIO DMA API in this
> case consider
> the page table is shared between MMU and IOMMU?
Echo Kevin's reply. We use nested translation here. For stage-1, yes, no need
to use
VFIO DMA API. For stage-2, we still use VFIO DMA API to program the GPA->HPA
mapping to host. :-)
Regards,
Yi Liu
>
> Thanks
>
> >
- [RFC v2 19/22] vfio/pci: add iommu_context notifier for PASID-based iotlb flush, (continued)
- [RFC v2 19/22] vfio/pci: add iommu_context notifier for PASID-based iotlb flush, Liu Yi L, 2019/10/24
- [RFC v2 20/22] intel_iommu: process PASID-based iotlb invalidation, Liu Yi L, 2019/10/24
- [RFC v2 21/22] intel_iommu: propagate PASID-based iotlb invalidation to host, Liu Yi L, 2019/10/24
- [RFC v2 22/22] intel_iommu: process PASID-based Device-TLB invalidation, Liu Yi L, 2019/10/24
- Re: [RFC v2 00/22] intel_iommu: expose Shared Virtual Addressing to VM, no-reply, 2019/10/25
- Re: [RFC v2 00/22] intel_iommu: expose Shared Virtual Addressing to VM, no-reply, 2019/10/25
- Re: [RFC v2 00/22] intel_iommu: expose Shared Virtual Addressing to VM, Jason Wang, 2019/10/25