OSDN Git Service

pc: add Q35 to QOM composition tree under /machine
authorIgor Mammedov <imammedo@redhat.com>
Mon, 29 Jul 2013 14:47:54 +0000 (16:47 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 30 Jul 2013 00:33:33 +0000 (19:33 -0500)
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Message-id: 1375109277-25561-5-git-send-email-imammedo@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/i386/pc_q35.c

index 0b1d2e3..2f35d12 100644 (file)
@@ -131,6 +131,7 @@ static void pc_q35_init(QEMUMachineInitArgs *args)
     /* create pci host bus */
     q35_host = Q35_HOST_DEVICE(qdev_create(NULL, TYPE_Q35_HOST_DEVICE));
 
+    object_property_add_child(qdev_get_machine(), "q35", OBJECT(q35_host), NULL);
     q35_host->mch.ram_memory = ram_memory;
     q35_host->mch.pci_address_space = pci_memory;
     q35_host->mch.system_memory = get_system_memory();