From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Williamson Subject: [PATCH 0/2] qemu vfio-pci: PCIe and generic config space mangling Date: Mon, 18 Feb 2013 11:29:05 -0700 Message-ID: <20130218182242.14182.63052.stgit@bling.home> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: alex.williamson@redhat.com, qemu-devel@nongnu.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:27404 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751997Ab3BRS3H (ORCPT ); Mon, 18 Feb 2013 13:29:07 -0500 Sender: kvm-owner@vger.kernel.org List-ID: This series generalizes the places where we already rely on QEMU config space emulation to make it easier to add various other fields. It turns out that when we start running on Q35 Windows cares quite a bit about the PCIe type we expose. Drivers will fail to load if not set to something valid and appropriate for the bus. We don't have anything in place yet to tell what the bus is, so for now we rely on a temporary option that will eventually get replaced by something automatic. Thanks, Alex --- Alex Williamson (2): vfio-pci: Generalize PCI config mangling vfio-pci: Add PCIe capability mangling based on bus type hw/vfio_pci.c | 210 ++++++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 171 insertions(+), 39 deletions(-)