From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:32993) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TdTO6-0003Wn-Rg for qemu-devel@nongnu.org; Tue, 27 Nov 2012 17:12:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TdTO4-0004Sx-Hr for qemu-devel@nongnu.org; Tue, 27 Nov 2012 17:12:18 -0500 Received: from mx1.redhat.com ([209.132.183.28]:3070) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TdTO4-0004SF-9V for qemu-devel@nongnu.org; Tue, 27 Nov 2012 17:12:16 -0500 From: Alex Williamson Date: Tue, 27 Nov 2012 15:00:06 -0700 Message-ID: <20121127215203.5751.6523.stgit@bling.home> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [RFC PATCH 0/4] MSI affinity for assigned devices List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kvm@vger.kernel.org This is post-1.3 material, so I'll just post it as an RFC for now. MSI routing updates aren't currently handled by pci-assign or vfio-pci (when using KVM acceleration), which means that trying to set interrupt SMP affinity in the guest has no effect unless MSI is completely disabled and re-enabled. This series fixes this for both device assignment backends using similar schemes. We store the last MSIMessage programmed to KVM and do updates to the MSI route when it changes. pci-assign takes a little bit of refactoring to make this happen cleanly. Thanks, Alex --- Alex Williamson (4): kvm: Stub kvm_irqchip_update_msi_route vfio-pci: Add support for MSI affinity pci-assign: Refactor MSI virq array pci-assign: Add MSI affinity support hw/kvm/pci-assign.c | 80 +++++++++++++++++++++++++++++++++++---------------- hw/vfio_pci.c | 31 ++++++++++++++++++-- kvm-all.c | 5 +++ kvm-stub.c | 5 +++ 4 files changed, 93 insertions(+), 28 deletions(-)