Loading include/linux/kvm.h +7 −0 Original line number Diff line number Diff line Loading @@ -507,10 +507,17 @@ struct kvm_assigned_irq { __u32 guest_irq; __u32 flags; union { struct { __u32 addr_lo; __u32 addr_hi; __u32 data; } guest_msi; __u32 reserved[12]; }; }; #define KVM_DEV_ASSIGN_ENABLE_IOMMU (1 << 0) #define KVM_DEV_IRQ_ASSIGN_ENABLE_MSI (1 << 0) #endif include/linux/kvm_host.h +4 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ #include <linux/mm.h> #include <linux/preempt.h> #include <linux/marker.h> #include <linux/msi.h> #include <asm/signal.h> #include <linux/kvm.h> Loading Loading @@ -307,8 +308,11 @@ struct kvm_assigned_dev_kernel { int host_devfn; int host_irq; int guest_irq; struct msi_msg guest_msi; #define KVM_ASSIGNED_DEV_GUEST_INTX (1 << 0) #define KVM_ASSIGNED_DEV_GUEST_MSI (1 << 1) #define KVM_ASSIGNED_DEV_HOST_INTX (1 << 8) #define KVM_ASSIGNED_DEV_HOST_MSI (1 << 9) unsigned long irq_requested_type; int irq_source_id; struct pci_dev *dev; Loading Loading
include/linux/kvm.h +7 −0 Original line number Diff line number Diff line Loading @@ -507,10 +507,17 @@ struct kvm_assigned_irq { __u32 guest_irq; __u32 flags; union { struct { __u32 addr_lo; __u32 addr_hi; __u32 data; } guest_msi; __u32 reserved[12]; }; }; #define KVM_DEV_ASSIGN_ENABLE_IOMMU (1 << 0) #define KVM_DEV_IRQ_ASSIGN_ENABLE_MSI (1 << 0) #endif
include/linux/kvm_host.h +4 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ #include <linux/mm.h> #include <linux/preempt.h> #include <linux/marker.h> #include <linux/msi.h> #include <asm/signal.h> #include <linux/kvm.h> Loading Loading @@ -307,8 +308,11 @@ struct kvm_assigned_dev_kernel { int host_devfn; int host_irq; int guest_irq; struct msi_msg guest_msi; #define KVM_ASSIGNED_DEV_GUEST_INTX (1 << 0) #define KVM_ASSIGNED_DEV_GUEST_MSI (1 << 1) #define KVM_ASSIGNED_DEV_HOST_INTX (1 << 8) #define KVM_ASSIGNED_DEV_HOST_MSI (1 << 9) unsigned long irq_requested_type; int irq_source_id; struct pci_dev *dev; Loading