[Qemu-devel] [PATCH v2 0/7] VT-d: PT (passthrough) mode support and misc fixes

Peter Xu posted 7 patches 7 years ago
Failed in applying to current master (apply log)
There is a newer version of this series
exec.c                         |   6 +-
hw/alpha/typhoon.c             |   2 +-
hw/dma/rc4030.c                |   2 +-
hw/i386/amd_iommu.c            |   4 +-
hw/i386/intel_iommu.c          | 146 +++++++++++++++++++++++++++++++----------
hw/i386/intel_iommu_internal.h |   1 +
hw/i386/trace-events           |   1 +
hw/i386/x86-iommu.c            |  48 +++-----------
hw/pci-host/apb.c              |   2 +-
hw/ppc/spapr_iommu.c           |   2 +-
hw/s390x/s390-pci-bus.c        |   2 +-
hw/s390x/s390-pci-inst.c       |   2 +-
hw/vfio/common.c               |   2 +-
include/exec/memory.h          |  15 +++--
include/hw/i386/x86-iommu.h    |   1 +
memory.c                       |   7 +-
16 files changed, 146 insertions(+), 97 deletions(-)
[Qemu-devel] [PATCH v2 0/7] VT-d: PT (passthrough) mode support and misc fixes
Posted by Peter Xu 7 years ago
v2:
- resending v1 since my patch script had a regression, which failed to
  send the patches to the list... trying again. sorry for the noise!

This series is for 2.10, and based on following series:

    [PATCH v8 0/9] VT-d: vfio enablement and misc enhances

This series add support for per-device passthrough mode for VT-d
emulation, along with some tweaks on existing codes.

Patches 1-2 are memory related cleanups.
Patches 3-6 are VT-d cleanups.
Patch 7 add support for passthrough.

todo:
- vhost: when pt is specified for vhost-enabled device, kernel can
  avoid translating the message and fallback to no-iommu mode.

Please review. Thanks.

Peter Xu (7):
  memory: tune last param of iommu_ops.translate()
  memory: remove the last param in memory_region_iommu_replay()
  x86-iommu: use DeviceClass properties
  intel_iommu: renaming context entry helpers
  intel_iommu: provide vtd_ce_get_type()
  intel_iommu: use IOMMU_ACCESS_FLAG()
  intel_iommu: support passthrough (PT)

 exec.c                         |   6 +-
 hw/alpha/typhoon.c             |   2 +-
 hw/dma/rc4030.c                |   2 +-
 hw/i386/amd_iommu.c            |   4 +-
 hw/i386/intel_iommu.c          | 146 +++++++++++++++++++++++++++++++----------
 hw/i386/intel_iommu_internal.h |   1 +
 hw/i386/trace-events           |   1 +
 hw/i386/x86-iommu.c            |  48 +++-----------
 hw/pci-host/apb.c              |   2 +-
 hw/ppc/spapr_iommu.c           |   2 +-
 hw/s390x/s390-pci-bus.c        |   2 +-
 hw/s390x/s390-pci-inst.c       |   2 +-
 hw/vfio/common.c               |   2 +-
 include/exec/memory.h          |  15 +++--
 include/hw/i386/x86-iommu.h    |   1 +
 memory.c                       |   7 +-
 16 files changed, 146 insertions(+), 97 deletions(-)

-- 
2.7.4


Re: [Qemu-devel] [PATCH v2 0/7] VT-d: PT (passthrough) mode support and misc fixes
Posted by Paolo Bonzini 7 years ago

On 17/04/2017 13:32, Peter Xu wrote:
> v2:
> - resending v1 since my patch script had a regression, which failed to
>   send the patches to the list... trying again. sorry for the noise!
> 
> This series is for 2.10, and based on following series:
> 
>     [PATCH v8 0/9] VT-d: vfio enablement and misc enhances
> 
> This series add support for per-device passthrough mode for VT-d
> emulation, along with some tweaks on existing codes.
> 
> Patches 1-2 are memory related cleanups.

These two:

Acked-by: Paolo Bonzini <pbonzini@redhat.com>