aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSheng Yang <sheng@linux.intel.com>2008-11-24 01:32:51 -0500
committerAvi Kivity <avi@redhat.com>2008-12-31 09:55:01 -0500
commit4f906c19ae29397409bedabf7bbe5cb42ad90332 (patch)
treebbe53d39fa8be58d714a87acf1e6f14366890092 /include
parent00e3ed39e2e25ffb3417ce1bec8f4b78ed4b85e7 (diff)
KVM: Replace irq_requested with more generic irq_requested_type
Separate guest irq type and host irq type, for we can support guest using INTx with host using MSI (but not opposite combination). Signed-off-by: Sheng Yang <sheng@linux.intel.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/kvm_host.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index 3a0fb77d1f6a..c3d4b96a08fa 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -307,7 +307,9 @@ struct kvm_assigned_dev_kernel {
307 int host_devfn; 307 int host_devfn;
308 int host_irq; 308 int host_irq;
309 int guest_irq; 309 int guest_irq;
310 int irq_requested; 310#define KVM_ASSIGNED_DEV_GUEST_INTX (1 << 0)
311#define KVM_ASSIGNED_DEV_HOST_INTX (1 << 8)
312 unsigned long irq_requested_type;
311 int irq_source_id; 313 int irq_source_id;
312 struct pci_dev *dev; 314 struct pci_dev *dev;
313 struct kvm *kvm; 315 struct kvm *kvm;