From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael S. Tsirkin" Subject: [PATCH RFC 0/2] qemu-kvm: MSI-X support Date: Tue, 12 May 2009 01:13:50 +0300 Message-ID: <20090511221350.GA22776@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: Christian Borntraeger , Rusty Russell , virtualization@lists.linux-foundation.org, Anthony Liguori , kvm@vger.ker Return-path: Received: from mx2.redhat.com ([66.187.237.31]:40115 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759836AbZEKWPd (ORCPT ); Mon, 11 May 2009 18:15:33 -0400 Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: Here's a draft MSI-X support patch. Among missing features: save/load support, and command-line flag to control the feature. This is on top of qemu-kvm: msi-x is disabled without kvm interrupt injection support for now. Michael S. Tsirkin (2): qemu-kvm: add MSI-X support qemu-kvm: use common code for assigned msix Makefile.target | 2 +- hw/device-assignment.c | 336 +++++++++++--------------------------------- hw/device-assignment.h | 8 +- hw/msix.c | 371 ++++++++++++++++++++++++++++++++++++++++++++++++ hw/msix.h | 33 +++++ hw/pci.c | 35 ++++-- hw/pci.h | 57 +++++++- hw/virtio-balloon.c | 2 +- hw/virtio-blk.c | 3 +- hw/virtio-console.c | 3 +- hw/virtio-net.c | 3 +- hw/virtio.c | 167 +++++++++++++++++----- hw/virtio.h | 4 +- 13 files changed, 709 insertions(+), 315 deletions(-) create mode 100644 hw/msix.c create mode 100644 hw/msix.h