From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sheng Yang Subject: [PATCH 0/8][v2] MSI-X mask emulation support for assigned device Date: Wed, 20 Oct 2010 16:26:24 +0800 Message-ID: <1287563192-29685-1-git-send-email-sheng@linux.intel.com> Cc: kvm@vger.kernel.org, "Michael S. Tsirkin" , Sheng Yang To: Avi Kivity , Marcelo Tosatti Return-path: Received: from mga01.intel.com ([192.55.52.88]:16465 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751438Ab0JTIZ3 (ORCPT ); Wed, 20 Oct 2010 04:25:29 -0400 Sender: kvm-owner@vger.kernel.org List-ID: 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(-)