qdev: put all devices under /machine

Avoid cluttering too much the QOM root.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Paolo Bonzini 2012-03-28 16:34:12 +02:00 committed by Anthony Liguori
parent da57febfed
commit f05f6b4adb
5 changed files with 18 additions and 5 deletions

View file

@ -180,7 +180,7 @@ static Object *qdev_get_peripheral(void)
static Object *dev;
if (dev == NULL) {
dev = container_get("/peripheral");
dev = container_get("/machine/peripheral");
}
return dev;
@ -191,7 +191,7 @@ static Object *qdev_get_peripheral_anon(void)
static Object *dev;
if (dev == NULL) {
dev = container_get("/peripheral-anon");
dev = container_get("/machine/peripheral-anon");
}
return dev;