Skip to content

qdev patches: properties, -device switch, id=<tag> & more.

Gerd Hoffmann qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest13 patches 13 repliesIn review
  2. v113 patches 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13qdev: rework device properties.Makefile hw/arm_sysctl.c hw/armv7m.c +30 more+574 -2634 replies
2/13qdev: factor out driver search to qdev_find_info()hw/qdev.c+15 -70 replies
3/13qdev/pci: make pci_create return DeviceState instead of PCIDevice.hw/pc.c hw/pci-hotplug.c hw/pci.c +3 more+20 -220 replies
4/13qdev: add generic qdev_device_add()hw/pci.c hw/qdev.c hw/qdev.h+55 -07 replies
5/13qdev: add -device command line option.hw/qdev.c qemu-options.hx vl.c+74 -340 replies
6/13qdev: add no_user, alias and deschw/qdev.c hw/qdev.h+28 -10 replies
7/13qdev: es1370 descriptionhw/es1370.c+2 -10 replies
8/13qdev: convert all vgahw/cirrus_vga.c hw/vga.c hw/vmware_vga.c+130 -810 replies
9/13qdev/pci: hook up i440fx.hw/pci_host.h hw/piix_pci.c+85 -260 replies
10/13qdev: add user-specified identifier to devices.hw/qdev.c hw/qdev.h+5 -12 replies
11/13switch balloon initialization to -device.hw/pc.c sysemu.h vl.c+39 -340 replies
12/13qdev: add id= support for pci nics.hw/pci.c net.c net.h+7 -10 replies
13/13qdev: print device id in "info pci".hw/pci.c+1 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/13] qdev patches: properties, -device switch, id=<tag> & more.

Hi,

This patch is a repost of the patch series posted last friday.

What is in there?

First the qdev property rework. Quite big one, but as it puts the way properties work upside down it can hardly be split into smaller pieces. Support for property default values added since I posted it last time. The patch description is much better too. Otherwise it is unchanged.

The other patches are building on top of the properties. They are a bunch of little, self-contained and friendly patches. They bring:

* A new, generic -device switch to add devices to your VM.
* Support for attaching user-specified ids to devices.
* A few more devices being switched to qdev.

v2 brings some minor changes:

* rebased, resolved some conflicts.
* picked up the *_dev name convention for bus_info methods.
* folded in the two incremental fixes posted earlier this week.

cheers,
Gerd