]> git.proxmox.com Git - qemu.git/commit - hw/pci.c
Support PCI based option rom loading
authorAnthony Liguori <aliguori@us.ibm.com>
Fri, 18 Dec 2009 11:01:07 +0000 (12:01 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Sat, 19 Dec 2009 14:26:24 +0000 (08:26 -0600)
commit72bb3c7571226af13cfe9eec020a56add3d30a70
treede5fdb265141bb6cbbbd4847359b9da2268b0f45
parent48c437f0ab8f75ef43caa75770c35ab7e8ed3869
Support PCI based option rom loading

Currently, we preload option roms into the option rom space in memory.  This
prevents DDIM from functioning correctly which severely limits the number
of roms we can support.

This patch introduces a pci_add_option_rom() which registers the
PCI_ROM_ADDRESS bar which points to our option rom.  It also converts over
the cirrus vga adapter, the rtl8139, virtio, and the e1000 to use this
new mechanism.

The result is that PXE boot functions even with three unique types of cards.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
(cherry picked from commit c2039bd0ffce8807e0eaac55254fde790825fa92)
hw/cirrus_vga.c
hw/e1000.c
hw/pci.c
hw/pci.h
hw/rtl8139.c
hw/virtio-pci.c