Skip to content

RFC Define some VFIO interfaces for VT-d Posted-Interrupts

Feng Wu kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2vfio: Add new interrupt group for VFIODocumentation/virtual/kvm/devices/vfio.txt include/uapi/linux/kvm.h+22 -03 replies
2/2vfio: Add VFIO API vfio_msi_get_irqdrivers/vfio/pci/vfio_pci.c include/linux/vfio.h+12 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH v1 0/2] Define some VFIO interfaces for VT-d Posted-Interrupts

VT-d Posted-Interrupts is an enhancement to CPU side Posted-Interrupt. With VT-d Posted-Interrupts enabled, external interrupts from direct-assigned devices can be delivered to guests without VMM intervention when guest is running in non-root mode.

You can find the VT-d Posted-Interrtups Spec. in the following URL:
http://www.intel.com/content/www/us/en/intelligent-systems/intel-technology/vt-directed-io-spec.html

This patch set does the following things:

- Define a new VFIO group KVM_DEV_VFIO_INTERRUPT and it's attributes KVM_DEV_VFIO_INTERRUPT_POSTING_IRQ. Qemu can use this interface to configure VT-d PI when guest updates the interrupt configuration (MSI/MSI-X configuration).

- Define a new VFIO API: vfio_msi_get_irq(), which can be used by KVM to get the host irq of the assigned devices. Then KVM can update the associated IRTE for VT-d PI.

Feng Wu (2):
vfio: Add new interrupt group for VFIO
vfio: Add VFIO API vfio_msi_get_irq

 Documentation/virtual/kvm/devices/vfio.txt |    8 ++++++++
 drivers/vfio/pci/vfio_pci.c                |   10 ++++++++++
 include/linux/vfio.h                       |    2 ++
 include/uapi/linux/kvm.h                   |   14 ++++++++++++++
 4 files changed, 34 insertions(+), 0 deletions(-)