diff options
author | Sheng Yang <sheng@linux.intel.com> | 2008-11-24 06:32:53 (GMT) |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2008-12-31 14:55:01 (GMT) |
commit | 0937c48d075ddd59ae2c12a6fa8308b9c7a63753 (patch) | |
tree | 36195da5274891f8e417f907be6cca53f8e1dda0 /include/linux/kvm_host.h | |
parent | fbac7818d8fba7e1df9f4b209777f3b67b953dd3 (diff) | |
download | linux-fsl-qoriq-0937c48d075ddd59ae2c12a6fa8308b9c7a63753.tar.xz |
KVM: Add fields for MSI device assignment
Prepared for kvm_arch_assigned_device_msi_dispatch().
Signed-off-by: Sheng Yang <sheng@linux.intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'include/linux/kvm_host.h')
-rw-r--r-- | include/linux/kvm_host.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index c3d4b96..8091a4d 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h @@ -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> @@ -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; |