summaryrefslogtreecommitdiffstats
path: root/vl.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-07-15 13:48:21 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-07-16 17:28:52 -0500
commitb6b611446077537b542c20804d3c850daff27845 (patch)
tree4a03bb971b4e33a48c3916591febce207e3776bc /vl.c
parent81ebb98b24eb5ea0f9d5a2717d71bcd01d652972 (diff)
downloadhqemu-b6b611446077537b542c20804d3c850daff27845.zip
hqemu-b6b611446077537b542c20804d3c850daff27845.tar.gz
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 <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/vl.c b/vl.c
index 24173ef..f475693 100644
--- a/vl.c
+++ b/vl.c
@@ -5946,6 +5946,9 @@ int main(int argc, char **argv, char **envp)
module_call_init(MODULE_INIT_DEVICE);
+ if (machine->compat_props) {
+ qdev_prop_register_compat(machine->compat_props);
+ }
machine->init(ram_size, boot_devices,
kernel_filename, kernel_cmdline, initrd_filename, cpu_model);
OpenPOWER on IntegriCloud