]> Git Repo - qemu.git/commitdiff
pc_q35: Initialize Xen.
authorAnthony PERARD <[email protected]>
Mon, 9 Sep 2013 16:15:53 +0000 (16:15 +0000)
committerStefano Stabellini <[email protected]>
Mon, 9 Sep 2013 16:24:33 +0000 (16:24 +0000)
Signed-off-by: Anthony PERARD <[email protected]>
Signed-off-by: Stefano Stabellini <[email protected]>
Acked-by: Michael S. Tsirkin <[email protected]>
hw/i386/pc_q35.c

index d7b7c3bf9a49de76a295a7deb56aee483dadd9fb..464a8924c8885994cddd3661d2e6cf2a7cdded24 100644 (file)
@@ -76,6 +76,11 @@ static void pc_q35_init(QEMUMachineInitArgs *args)
     DeviceState *icc_bridge;
     PcGuestInfo *guest_info;
 
+    if (xen_enabled() && xen_hvm_init(&ram_memory) != 0) {
+        fprintf(stderr, "xen hardware virtual machine initialisation failed\n");
+        exit(1);
+    }
+
     icc_bridge = qdev_create(NULL, TYPE_ICC_BRIDGE);
     object_property_add_child(qdev_get_machine(), "icc-bridge",
                               OBJECT(icc_bridge), NULL);
This page took 0.027434 seconds and 4 git commands to generate.