Define new VFIO data structure for VT-d Posted-Interrupts. Signed-off-by: Feng Wu <feng...@intel.com> --- linux-headers/linux/kvm.h | 11 +++++++++++ 1 file changed, 11 insertions(+)
diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h index 1937afa..6463b28 100644 --- a/linux-headers/linux/kvm.h +++ b/linux-headers/linux/kvm.h @@ -949,6 +949,8 @@ struct kvm_device_attr { #define KVM_DEV_VFIO_DEVICE 2 #define KVM_DEV_VFIO_DEVICE_FORWARD_IRQ 1 #define KVM_DEV_VFIO_DEVICE_UNFORWARD_IRQ 2 +#define KVM_DEV_VFIO_DEVICE_POST_IRQ 3 +#define KVM_DEV_VFIO_DEVICE_UNPOST_IRQ 4 enum kvm_device_type { KVM_DEV_TYPE_FSL_MPIC_20 = 1, @@ -973,6 +975,15 @@ struct kvm_arch_forwarded_irq { __u32 gsi; /* gsi, ie. virtual IRQ number */ }; +struct kvm_vfio_dev_irq { + __u32 argsz; + __u32 fd; /* file descriptor of the VFIO device */ + __u32 index; /* VFIO device IRQ index */ + __u32 start; + __u32 count; + __u32 gsi[]; /* gsi, ie. virtual IRQ number */ +}; + /* * ioctls for VM fds */ -- 1.9.1