From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:37072) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCCbE-0006XW-5M for qemu-devel@nongnu.org; Sun, 03 Mar 2013 12:21:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCCbD-0004X6-7r for qemu-devel@nongnu.org; Sun, 03 Mar 2013 12:21:24 -0500 Received: from mx1.redhat.com ([209.132.183.28]:5944) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCCbD-0004Wz-0C for qemu-devel@nongnu.org; Sun, 03 Mar 2013 12:21:23 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r23HLLGM012404 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 3 Mar 2013 12:21:21 -0500 From: Alex Williamson Date: Sun, 03 Mar 2013 10:21:20 -0700 Message-ID: <20130303171901.15425.61733.stgit@bling.home> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH v4 0/2] PCI learns about VGA List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: mst@redhat.com Cc: qemu-devel@nongnu.org Bridges aren't the only thing that needs to know about VGA, any class VGA device can register for VGA. This adds infrastructure to PCI to allow devices to register VGA regions and incorporates the previous PCI bridge only patch to also make use of this. vfio-pci will also use the pci_register_vga() interface when attaching VGA devices. v4: Add common pci_vga_[un]register helpers and convert pci_bridge v3: pci_bridge only: add comments and enable bits for snooping & alias v2: pci_bridge only: BRIDGE_CONTROL is 2 bytes --- Alex Williamson (2): pci: Add PCI VGA helpers pci: Teach PCI Bridges about VGA routing hw/pci/pci.c | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++ hw/pci/pci.h | 21 ++++++++++++++++ hw/pci/pci_bridge.c | 45 ++++++++++++++++++++++++++++++++++- hw/pci/pci_bus.h | 7 +++++ hw/pci/pcie_port.c | 2 ++ 5 files changed, 138 insertions(+), 2 deletions(-)