From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Gordeev Subject: [kvm-unit-tests PATCH v7 00/13] PCI bus support Date: Wed, 17 Aug 2016 14:07:01 +0200 Message-ID: Cc: Alexander Gordeev , Thomas Huth , Andrew Jones To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:53816 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751014AbcHQMHq (ORCPT ); Wed, 17 Aug 2016 08:07:46 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3923D86647 for ; Wed, 17 Aug 2016 12:07:46 +0000 (UTC) Sender: kvm-owner@vger.kernel.org List-ID: Hi Andrew, This is 7th version of PCI support. Noticeable changes since v5 & v6: - patch "pci: Factor out pci_bar_get()" moved earlier in the series; - 'extern' added to public functions in lib/pci.h; - PCI test added to arm/unittests.cfg; Sources are avalable at: https://github.com/a-gordeev/kvm-unit-tests.git pci-testdev-v7 Cc: Thomas Huth Cc: Andrew Jones Alexander Gordeev (13): pci: Fix coding style in generic PCI files pci: x86: Rename pci_config_read() to pci_config_readl() pci: Add 'extern' to public function declarations pci: x86: Add remaining PCI configuration space accessors pci: Factor out pci_bar_get() pci: Rework pci_bar_addr() pci: Add pci_bar_set_addr() pci: Add pci_dev_exists() pci: Add pci_print() pci: Add generic ECAM host support arm/arm64: pci: Add PCI bus operation test pci: Add pci-testdev PCI bus test device arm/arm64: pci: Add pci-testdev PCI device operation test arm/Makefile.common | 6 +- arm/pci-test.c | 27 ++++ arm/run | 7 +- arm/unittests.cfg | 4 + lib/arm/asm/pci.h | 1 + lib/arm64/asm/pci.h | 1 + lib/asm-generic/pci-host-bridge.h | 26 ++++ lib/pci-host-generic.c | 295 ++++++++++++++++++++++++++++++++++++++ lib/pci-host-generic.h | 46 ++++++ lib/pci-testdev.c | 192 +++++++++++++++++++++++++ lib/pci.c | 201 +++++++++++++++++++++++--- lib/pci.h | 41 +++++- lib/x86/asm/pci.h | 31 +++- x86/vmexit.c | 4 +- 14 files changed, 851 insertions(+), 31 deletions(-) create mode 100644 arm/pci-test.c create mode 100644 lib/arm/asm/pci.h create mode 100644 lib/arm64/asm/pci.h create mode 100644 lib/asm-generic/pci-host-bridge.h create mode 100644 lib/pci-host-generic.c create mode 100644 lib/pci-host-generic.h create mode 100644 lib/pci-testdev.c -- 1.8.3.1