]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Enable MSI for device assignment
authorSheng Yang <sheng@linux.intel.com>
Mon, 24 Nov 2008 06:32:56 +0000 (14:32 +0800)
committerAvi Kivity <avi@redhat.com>
Wed, 31 Dec 2008 14:55:02 +0000 (16:55 +0200)
commit298ca251117e0773bd56d57fd2d501fde777a421
tree63d526ff94b891116c37bf9705e42a45479271f0
parent3f117d5b5af7afb739a7f08087e6002805759e33
KVM: Enable MSI for device assignment

We enable guest MSI and host MSI support in this patch. The userspace want to
enable MSI should set KVM_DEV_IRQ_ASSIGN_ENABLE_MSI in the assigned_irq's flag.
Function would return -ENOTTY if can't enable MSI, userspace shouldn't set MSI
Enable bit when KVM_ASSIGN_IRQ return -ENOTTY with
KVM_DEV_IRQ_ASSIGN_ENABLE_MSI.

Userspace can tell the support of MSI device from #ifdef KVM_CAP_DEVICE_MSI.

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