Skip to content

qdev: add driver class support.

Gerd Hoffmann qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5qdev/class: corehw/qdev.c hw/qdev.h+33 -50 replies
2/5qdev/class: tag soundhw/ac97.c hw/es1370.c+2 -00 replies
3/5qdev/class: tag networkhw/e1000.c hw/eepro100.c hw/ne2000.c +3 more+33 -240 replies
4/5qdev/class: helper function to get a list of drivers.hw/qdev.c hw/qdev.h+19 -00 replies
5/5qdev/class: make pci_nic_init() use qdev's device list.hw/pci.c hw/virtio-pci.c+22 -370 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/5] qdev: add driver class support.

Hi,

This patch series brings driver classes to qdev.

DeviceInfo gets a new field specifying what kind of device this is. For starters there are Sound cards and Network cards. The number of device classes will probably grow over time.

The device class will be shown in the listing printed by '-device ?', so users and management apps can figure what kinds of -- say -- network cards are supported by that particular qemu binary.

Last patch in the series makes pci_nic_init() use this as well. The hard-coded driver name tables are gone. Compiling out drivers for certain pci network cards is easy now, just lose the object file.

cheers,
Gerd