mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
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:
parent
da57febfed
commit
f05f6b4adb
5 changed files with 18 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue