aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorSheng Yang <sheng@linux.intel.com>2009-01-06 03:25:11 -0500
committerAvi Kivity <avi@redhat.com>2009-03-24 05:03:02 -0400
commit17071fe74fe0fbfdb03cd9b82f2490447cf1f986 (patch)
tree1090267522ecf64960c0745ccf6dca32927e481d /include/linux
parent67346440e83d2a2f2e9801f370b6240317c7d9bd (diff)
KVM: Add support to disable MSI for assigned device
MSI is always enabled by default for msi2intx=1. But if msi2intx=0, we have to disable MSI if guest require to do so. The patch also discard unnecessary msi2intx judgment if guest want to update MSI state. Notice KVM_DEV_IRQ_ASSIGN_MSI_ACTION is a mask which should cover all MSI related operations, though we only got one for now. Signed-off-by: Sheng Yang <sheng@linux.intel.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/kvm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/kvm.h b/include/linux/kvm.h
index ae7a12c77427..73f348066866 100644
--- a/include/linux/kvm.h
+++ b/include/linux/kvm.h
@@ -550,6 +550,7 @@ struct kvm_assigned_irq {
550 550
551#define KVM_DEV_ASSIGN_ENABLE_IOMMU (1 << 0) 551#define KVM_DEV_ASSIGN_ENABLE_IOMMU (1 << 0)
552 552
553#define KVM_DEV_IRQ_ASSIGN_MSI_ACTION KVM_DEV_IRQ_ASSIGN_ENABLE_MSI
553#define KVM_DEV_IRQ_ASSIGN_ENABLE_MSI (1 << 0) 554#define KVM_DEV_IRQ_ASSIGN_ENABLE_MSI (1 << 0)
554 555
555#endif 556#endif