qdev: add a maximum device allowed field for the bus.
authorKONRAD Frederic <fred.konrad@greensocs.com>
Mon, 14 Jan 2013 23:08:00 +0000 (00:08 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 21 Jan 2013 19:23:12 +0000 (13:23 -0600)
commit1395af6f76e9f0e145a235a71e3578385d82ece5
tree90b94fcd9b74d7ba4d831b34e61587e88d1421cc
parent016c7182315b1f842ac351fae86041d2c8fe4596
qdev: add a maximum device allowed field for the bus.

Add a max_dev field to BusClass to specify the maximum amount of devices allowed
on the bus (has no effect if max_dev=0)

Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/qdev-core.h
hw/qdev-monitor.c