Here is v2. Changelog: v1->v2 The major change from v1 is I've added the in-kernel MSI-X mask emulation support, as well as adding shortcuts for reading MSI-X table. I've taken Michael's advice to use mask/unmask directly, but unsure about exporting irq_to_desc() for module... Also add flush_work() according to Marcelo's comments. Sheng Yang (8): PCI: MSI: Move MSI-X entry definition to pci_regs.h irq: Export irq_to_desc() to modules KVM: x86: Enable ENABLE_CAP capability for x86 KVM: Move struct kvm_io_device to kvm_host.h KVM: Add kvm_get_irq_routing_entry() func KVM: assigned dev: Preparation for mask support in userspace KVM: assigned dev: Introduce io_device for MSI-X MMIO accessing KVM: Emulation MSI-X mask bits for assigned devices Documentation/kvm/api.txt | 30 +++++- arch/x86/include/asm/kvm_host.h | 2 + arch/x86/kvm/x86.c | 32 ++++++ drivers/pci/msi.h | 6 - include/linux/kvm.h | 19 +++- include/linux/kvm_host.h | 28 +++++ include/linux/pci_regs.h | 7 + kernel/irq/handle.c | 2 + virt/kvm/assigned-dev.c | 230 +++++++++++++++++++++++++++++++++++++++ virt/kvm/iodev.h | 25 +---- virt/kvm/irq_comm.c | 20 ++++ 11 files changed, 367 insertions(+), 34 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html