qemu/hw
Amos Kong bbfa18fca4 qdev: fix get_fw_dev_path to support to add nothing to fw_dev_path
Recent virtio refactoring in QEMU made virtio-bus become the parent bus
of scsi-bus, and virtio-bus doesn't have get_fw_dev_path implementation,
typename will be added to fw_dev_path by default, the new fw_dev_path
could not be identified by seabios. It causes that bootindex parameter
of scsi device doesn't work.

This patch implements get_fw_dev_path() in BusClass, it will be called
if bus doesn't implement the method, tyename will be added to
fw_dev_path. If the implemented method returns NULL, nothing will be
added to fw_dev_path.

It also implements virtio_bus_get_fw_dev_path() to return NULL. Then
QEMU will still pass original style of fw_dev_path to seabios.

Signed-off-by: Amos Kong <akong@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Message-id: 1369814202-10346-1-git-send-email-akong@redhat.com
--
v2: only add nothing to fw_dev_path when get_fw_dev_path() is
    implemented and returns NULL. then it will not effect other devices
    don't have get_fw_dev_path() implementation.
v3: implement default get_fw_dev_path() in BusClass
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2013-05-30 11:44:27 -05:00
..
9pfs hw/9pfs: Be robust against paths without FS_IOC_GETVERSION 2013-05-28 15:23:12 +05:30
acpi acpi: add dummy write function for acpi timer 2013-05-14 08:53:09 -05:00
alpha include: avoid useless includes of exec/ headers 2013-04-15 18:19:26 +02:00
arm remove some double-includes 2013-05-18 16:35:12 +04:00
audio remove some double-includes 2013-05-18 16:35:12 +04:00
block pc_sysfw: allow flash (-pflash) memory to be used with KVM 2013-05-29 08:15:36 -05:00
bt sysemu: avoid proliferation of include/ subdirectories 2013-04-15 18:19:25 +02:00
char virtio-serial: fix command line compatibility. 2013-05-03 12:05:15 -05:00
core qdev: fix get_fw_dev_path to support to add nothing to fw_dev_path 2013-05-30 11:44:27 -05:00
cpu target-i386: Move APIC to ICC bus 2013-05-01 13:06:07 +02:00
cris hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
display qxl: Call spice_qxl_driver_unload from qxl_enter_vga_mode 2013-05-09 11:46:53 +02:00
dma Rename hexdump to avoid FreeBSD libutil conflict 2013-05-20 08:20:08 -05:00
gpio Remove unneeded type casts 2013-04-19 11:36:33 +02:00
i2c hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
i386 isapc: Fix non-KVM qemu boot (read/write memory for isapc BIOS) 2013-05-29 08:15:35 -05:00
ide ide/macio: fix wrong opaque with TRIM support 2013-05-20 01:54:14 +02:00
input vmmouse: QOM'ify 2013-04-29 08:27:50 -05:00
intc Remove Sun4c, Sun4d and a few CPUs 2013-05-26 11:37:58 +00:00
isa ich9: kill cmos_s3 2013-04-24 11:50:18 -05:00
lm32 qdev: Drop taddr properties 2013-04-20 17:54:52 +00:00
m68k hw: move char devices to hw/char/, configure via default-configs/ 2013-04-08 18:13:14 +02:00
microblaze Remove unneeded type casts 2013-04-19 11:36:33 +02:00
mips remove some double-includes 2013-05-18 16:35:12 +04:00
misc remove some double-includes 2013-05-18 16:35:12 +04:00
moxie Trivial grammar and spelling fixes 2013-05-01 20:55:21 +04:00
net rtl8139: flush queued packets when RxBufPtr is written 2013-05-24 16:34:13 +02:00
nvram glib: Fix some misuses of gsize/size_t types 2013-05-22 07:40:09 -05:00
openrisc hw: move headers to include/ 2013-04-08 18:13:10 +02:00
pci exec: eliminate qemu_put_ram_ptr 2013-05-24 18:42:19 +02:00
pci-bridge hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
pci-host hw/pci-host/versatile.c: Provide property for forcing broken IRQ mapping 2013-05-15 08:49:59 -05:00
ppc remove some double-includes 2013-05-18 16:35:12 +04:00
s390x virtio-net-x: forward the netclient name and type. 2013-05-15 08:48:25 -05:00
scsi exec: eliminate qemu_put_ram_ptr 2013-05-24 18:42:19 +02:00
sd Typo, spelling and grammatical fixes 2013-04-12 14:33:20 +02:00
sh4 arm: fix location of some include files 2013-04-15 15:16:01 +02:00
sparc Remove Sun4c, Sun4d and a few CPUs 2013-05-26 11:37:58 +00:00
sparc64 sparc64: allow 64 IRQ lines 2013-04-27 10:35:30 +00:00
ssi hw: move SSI controllers to hw/ssi/, configure via default-configs/ 2013-04-08 18:13:13 +02:00
timer remove some double-includes 2013-05-18 16:35:12 +04:00
tpm Move TPM passthrough specific command line options to backend structure 2013-04-23 10:40:40 -05:00
unicore32 console: add device link to QemuConsoles 2013-04-25 14:45:46 -05:00
usb remove double semicolons 2013-05-12 13:25:55 +04:00
virtio qdev: fix get_fw_dev_path to support to add nothing to fw_dev_path 2013-05-30 11:44:27 -05:00
watchdog wdt_ib700: QOM'ify 2013-04-29 08:27:50 -05:00
xen target-i386: Replace MSI_SPACE_SIZE with APIC_SPACE_SIZE 2013-05-01 13:04:19 +02:00
xtensa sysemu: avoid proliferation of include/ subdirectories 2013-04-15 18:19:25 +02:00
Makefile.objs virtio: simplify Makefile conditionals 2013-04-19 16:18:11 +02:00