From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41213) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwS0R-0005C2-T6 for qemu-devel@nongnu.org; Tue, 18 Oct 2016 06:52:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bwS0O-0004kI-NJ for qemu-devel@nongnu.org; Tue, 18 Oct 2016 06:52:27 -0400 From: David Gibson Date: Tue, 18 Oct 2016 21:52:05 +1100 Message-Id: <1476787933-7180-1-git-send-email-david@gibson.dropbear.id.au> Subject: [Qemu-devel] [PATCH 0/8] Cleanups to qtest PCI handling List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: pbonzini@redhat.com, qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, lvivier@redhat.com, agraf@suse.de, stefanha@redhat.com, mst@redhat.com, aik@ozlabs.ru, mdroth@linux.vnet.ibm.com, groug@kaod.org, thuth@redhat.com, David Gibson This series contains a number of cleanups to the libqos code for accessing PCI devices, and to tests which use it. The general aim is to improve the consistency of semantics across functions, and reduce the amount of intimate knowledge of the libqos PCI layer needed by tests. This should make it easier to write PCI tests which will be portable to different guest machines with different PCI host bridge arrangements. David Gibson (8): libqos: Give qvirtio_config_read*() consistent semantics libqos: Handle PCI IO de-multiplexing in common code libqos: Move BAR assignment to common code tests: Better handle legacy IO addresses in tco-test libqos: Add streaming accessors for PCI MMIO libqos: Implement mmio accessors in terms of mem{read,write} tests: Use qpci_mem{read,write} in ivshmem-test libqos: Change PCI accessors to take opaque BAR handle tests/ahci-test.c | 4 +- tests/e1000e-test.c | 7 +- tests/ide-test.c | 23 +++--- tests/ivshmem-test.c | 28 ++++---- tests/libqos/ahci.c | 3 +- tests/libqos/ahci.h | 6 +- tests/libqos/pci-pc.c | 170 +++++++++----------------------------------- tests/libqos/pci-spapr.c | 172 ++++++++++----------------------------------- tests/libqos/pci.c | 168 ++++++++++++++++++++++++++++++++++--------- tests/libqos/pci.h | 60 ++++++++++------ tests/libqos/usb.c | 6 +- tests/libqos/usb.h | 2 +- tests/libqos/virtio-mmio.c | 16 ++--- tests/libqos/virtio-pci.c | 117 ++++++++++++++++-------------- tests/libqos/virtio-pci.h | 2 +- tests/rtl8139-test.c | 10 ++- tests/tco-test.c | 87 +++++++++++------------ tests/usb-hcd-ehci-test.c | 5 +- tests/virtio-9p-test.c | 9 +-- tests/virtio-blk-test.c | 51 +++----------- tests/virtio-scsi-test.c | 5 +- 21 files changed, 418 insertions(+), 533 deletions(-) -- 2.7.4