KVM: Add support to disable MSI for assigned device
authorSheng Yang <sheng@linux.intel.com>
Tue, 6 Jan 2009 08:25:11 +0000 (16:25 +0800)
committerAvi Kivity <avi@redhat.com>
Tue, 24 Mar 2009 09:03:02 +0000 (11:03 +0200)
commit17071fe74fe0fbfdb03cd9b82f2490447cf1f986
tree1090267522ecf64960c0745ccf6dca32927e481d
parent67346440e83d2a2f2e9801f370b6240317c7d9bd
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>
include/linux/kvm.h
virt/kvm/kvm_main.c