From b6b611446077537b542c20804d3c850daff27845 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Wed, 15 Jul 2009 13:48:21 +0200 Subject: qdev/compat: compat property infrastructure. This add support for switching devices into a compatibility mode using device properties. Machine types can have a list of properties for specific devices attached to allow the easy creation of machine types compatible to older qemu versions. Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori --- hw/qdev.c | 1 + 1 file changed, 1 insertion(+) (limited to 'hw/qdev.c') diff --git a/hw/qdev.c b/hw/qdev.c index a53125dd88..cca242f8ee 100644 --- a/hw/qdev.c +++ b/hw/qdev.c @@ -85,6 +85,7 @@ DeviceState *qdev_create(BusState *bus, const char *name) dev->parent_bus = bus; qdev_prop_set_defaults(dev, dev->info->props); qdev_prop_set_defaults(dev, dev->parent_bus->info->props); + qdev_prop_set_compat(dev); LIST_INSERT_HEAD(&bus->children, dev, sibling); return dev; } -- cgit v1.2.3-55-g7522