All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v4 0/6] pci: multi-function bit fixes
@ 2010-06-21  6:03 Isaku Yamahata
  2010-06-21  6:03 ` [Qemu-devel] [PATCH v4 1/6] pci: use PCI_DEVFN() where appropriate Isaku Yamahata
                   ` (5 more replies)
  0 siblings, 6 replies; 19+ messages in thread
From: Isaku Yamahata @ 2010-06-21  6:03 UTC (permalink / raw)
  To: qemu-devel; +Cc: yu.liu, mst, blauwirbel, yamahata, paul, aurelien

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(-)

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2010-06-24  8:25 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-21  6:03 [Qemu-devel] [PATCH v4 0/6] pci: multi-function bit fixes Isaku Yamahata
2010-06-21  6:03 ` [Qemu-devel] [PATCH v4 1/6] pci: use PCI_DEVFN() where appropriate Isaku Yamahata
2010-06-21 11:57   ` [Qemu-devel] " Michael S. Tsirkin
2010-06-21  6:03 ` [Qemu-devel] [PATCH v4 2/6] pci: remove PCIDeviceInfo::header_type Isaku Yamahata
2010-06-21  6:03 ` [Qemu-devel] [PATCH v4 3/6] pci: set PCI multi-function bit appropriately Isaku Yamahata
2010-06-21  9:45   ` [Qemu-devel] " Juan Quintela
2010-06-21  9:52     ` Isaku Yamahata
2010-06-21 12:36   ` Michael S. Tsirkin
2010-06-23  7:25     ` Isaku Yamahata
2010-06-23  9:52       ` Michael S. Tsirkin
2010-06-23 10:13         ` Isaku Yamahata
2010-06-23 10:41           ` Michael S. Tsirkin
2010-06-23 23:48             ` Isaku Yamahata
2010-06-24  8:19               ` Michael S. Tsirkin
2010-06-21  6:03 ` [Qemu-devel] [PATCH v4 4/6] pci: don't overwrite multi functio bit in pci header type Isaku Yamahata
2010-06-21 13:15   ` [Qemu-devel] " Michael S. Tsirkin
2010-06-21  6:04 ` [Qemu-devel] [PATCH v4 5/6] pci: use pci_create_simple_mf() Isaku Yamahata
2010-06-21  6:04 ` [Qemu-devel] [PATCH v4 6/6] pci_bridge: make pci bridge aware of pci multi function bit Isaku Yamahata
2010-06-21 13:22   ` [Qemu-devel] " Michael S. Tsirkin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.