Received: from [140.186.70.92] (port=33956 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OQaAj-0002OP-TP for qemu-devel@nongnu.org; Mon, 21 Jun 2010 02:07:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OQaAf-0000nS-WB for qemu-devel@nongnu.org; Mon, 21 Jun 2010 02:07:53 -0400 Received: from mail.valinux.co.jp ([210.128.90.3]:46835) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OQaAf-0000mR-Ls for qemu-devel@nongnu.org; Mon, 21 Jun 2010 02:07:49 -0400 From: Isaku Yamahata Date: Mon, 21 Jun 2010 15:03:55 +0900 Message-Id: Subject: [Qemu-devel] [PATCH v4 0/6] pci: multi-function bit fixes List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: yu.liu@freescale.com, mst@redhat.com, blauwirbel@gmail.com, yamahata@valinux.co.jp, paul@codesourcery.com, aurelien@aurel32.net Changes v3 -> v4: - introduced multifunction property and add validation check to catch user operation errors. - some more clean up. patch description: When pci devices are populated as multi-function, OS can fail to probe function > 0. It's because multi function bit of header type register in configuration space isn't set, so OS probes only function 0 skipping function > 0 as optimization. This patch set make qemu set multi function bit when function > 0 is populated. Isaku Yamahata (6): pci: use PCI_DEVFN() where appropriate. pci: remove PCIDeviceInfo::header_type pci: set PCI multi-function bit appropriately. pci: don't overwrite multi functio bit in pci header type. pci: use pci_create_simple_mf() pci_bridge: make pci bridge aware of pci multi function bit. hw/ac97.c | 1 - hw/acpi_piix4.c | 1 - hw/apb_pci.c | 11 ++----- hw/dec_pci.c | 4 +- hw/grackle_pci.c | 1 - hw/gt64xxx.c | 2 +- hw/ide/cmd646.c | 1 - hw/ide/piix.c | 1 - hw/macio.c | 1 - hw/ne2000.c | 1 - hw/openpic.c | 1 - hw/pci.c | 84 ++++++++++++++++++++++++++++++++++++++++++++-------- hw/pci.h | 16 ++++++++-- hw/pcnet.c | 1 - hw/piix4.c | 4 +-- hw/piix_pci.c | 5 +-- hw/ppce500_pci.c | 3 +- hw/prep_pci.c | 1 - hw/rtl8139.c | 1 - hw/sun4u.c | 1 - hw/unin_pci.c | 16 ++++------ hw/usb-uhci.c | 1 - hw/versatile_pci.c | 2 +- hw/vga-pci.c | 1 - hw/virtio-pci.c | 1 - hw/vmware_vga.c | 1 - hw/wdt_i6300esb.c | 1 - 27 files changed, 101 insertions(+), 63 deletions(-)