]> git.proxmox.com Git - qemu.git/commit - vl.c
qdev: fix hotplug when no -device is specified
authorAnthony Liguori <aliguori@us.ibm.com>
Mon, 19 Dec 2011 22:37:46 +0000 (16:37 -0600)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 19 Dec 2011 22:39:16 +0000 (16:39 -0600)
commit1de81d2832e210dda43a101e4163a17bc4d9c71d
tree04a50235fae13760bc71d652d6fe15d8d6f043f5
parentab0115e10ca2221a7844ac5fd18842976eec3b2b
qdev: fix hotplug when no -device is specified

The peripheral[-anon] containers are initialized lazily but since they sit on
sysbus, they can not be created after realize.  This was causing an abort() to
occur during hotplug if no -device option was used.

This was spotted by qemu-test::device-add.sh

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/qdev.c
hw/qdev.h
vl.c