[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [Resend RFC PATCH 0/4] VT-d: Inject fault event from IOMMU
[Qemu-devel] [Resend RFC PATCH 0/4] VT-d: Inject fault event from IOMMU hardware
Mon, 20 Feb 2017 09:28:03 +0800
Resend patchset due to wrong Qemu devel mail address. Sorry for noise.
This patchset proposes a solution for vIOMMU to get hardware IOMMU
fault event and info. Motivation is to make vIOMMU inject associated
fault event when pIOMMU reports fault event. vIOMMU is in charge of
transforming fault info and inject to guest. The feature is also very
important to support first level translation(Translation request with
PASID) in VM which requires vIOMMU to inject device page request to VM.
VFIO can get notification and read fault info via new VFIO cmds.
Add fault event handler in the memory IOMMU ops and Intel IOMMU
device model needs to register its fault event callback. VFIO
will call the callback via memory wrapper function when get
This patches is prototype code and just passes build test. IOMMU driver
new interface is still in the design stage. This patches is to confirm
interface between Qemu and VFIO kernel driver is on the right way.
Very appreciate for comments.
Lan Tianyu (4):
VFIO: Set eventfd for IOMMU fault event via new vfio cmd
Memory: Introduce IOMMU fault event callback
Intel iommu: Add Intel IOMMU fault event callback
VFIO: Read IOMMU fault info from kernel space when get fault event
hw/i386/intel_iommu.c | 25 ++++++++++++
hw/vfio/common.c | 88 +++++++++++++++++++++++++++++++++++++++++++
include/exec/memory.h | 19 ++++++++++
include/hw/vfio/vfio-common.h | 3 ++
linux-headers/linux/vfio.h | 35 +++++++++++++++++
memory.c | 8 ++++
6 files changed, 178 insertions(+)
- [Qemu-devel] [Resend RFC PATCH 0/4] VT-d: Inject fault event from IOMMU hardware,
Lan Tianyu <=