From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Gordeev Subject: [kvm-unit-tests PATCH v9 00/12] PCI bus support Date: Thu, 3 Nov 2016 17:19:37 +0100 Message-ID: Cc: Alexander Gordeev , Thomas Huth , Andrew Jones , Peter Xu To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:48800 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756483AbcKCQTy (ORCPT ); Thu, 3 Nov 2016 12:19:54 -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 EE92381253 for ; Thu, 3 Nov 2016 16:19:53 +0000 (UTC) Sender: kvm-owner@vger.kernel.org List-ID: Hi Andrew et al, This is 9th version of PCI support. Your latest suggestions are incorporated. Sources are avalable at: https://github.com/a-gordeev/kvm-unit-tests.git pci-testdev-v9 Cc: Thomas Huth Cc: Andrew Jones Cc: Peter Xu Alexander Gordeev (12): 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 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 | 305 ++++++++++++++++++++++++++++++++++++++ lib/pci-host-generic.h | 46 ++++++ lib/pci-testdev.c | 192 ++++++++++++++++++++++++ lib/pci.c | 212 +++++++++++++++++++++++--- lib/pci.h | 43 +++++- lib/x86/asm/pci.h | 31 +++- x86/vmexit.c | 4 +- 14 files changed, 874 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