From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:49202) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sf21d-0001tD-6q for qemu-devel@nongnu.org; Thu, 14 Jun 2012 00:51:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sf21b-0004dC-BN for qemu-devel@nongnu.org; Thu, 14 Jun 2012 00:51:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56180) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sf21b-0004ck-3o for qemu-devel@nongnu.org; Thu, 14 Jun 2012 00:51:15 -0400 From: Alex Williamson Date: Wed, 13 Jun 2012 22:51:09 -0600 Message-ID: <20120614044751.11034.87619.stgit@bling.home> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH v2 0/6] msix: Support specifying offsets, BARs, and capability location List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: mst@redhat.com Cc: jan.kiszka@siemens.com, qemu-devel@nongnu.org v2: - split patch - rename msix_[un]init_bar() to msix_[un]init_exclusive_bar() - add the cherry on top to cleaning up PCIDevice naming Thanks, Alex v1: msix_init has very little configurability as to how it lays out MSIX for a device. It claims to resize BARs, but doesn't actually do this anymore. This patch allows MSIX to be fully specified, which is necessary both for emulated devices trying to match the physical layout of a hardware device as well as for any kind of device assignment. New functions msix_init_bar & msix_uninit_bar provide wrappers around the more detailed functions for drivers that just want a simple MSIX setup. --- Alex Williamson (6): msix: Fix last PCIDevice naming inconsitency msix: Allow full specification of MSIX layout msix: Split PBA into it's own MemoryRegion virtio: Convert to msix_init_exclusive_bar() interface ivshmem: Convert to msix_init_exclusive_bar() interface msix: Add simple BAR allocation MSIX setup functions hw/ivshmem.c | 10 +- hw/msix.c | 308 +++++++++++++++++++++++++++++++------------------------ hw/msix.h | 20 ++-- hw/pci.h | 17 ++- hw/virtio-pci.c | 15 +-- hw/virtio-pci.h | 1 6 files changed, 209 insertions(+), 162 deletions(-)