]> Git Repo - qemu.git/blobdiff - vl.c
Fix -machine options accel, kernel_irqchip, kvm_shadow_mem
[qemu.git] / vl.c
diff --git a/vl.c b/vl.c
index e68d19c22e1dc302164cc032a31e0d407d6b567a..66787659cb5040c9468968f5333884087f03da37 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -2691,17 +2691,13 @@ static struct {
 
 static int configure_accelerator(void)
 {
-    const char *p = NULL;
+    const char *p;
     char buf[10];
     int i, ret;
     bool accel_initialised = false;
     bool init_failed = false;
 
-    QemuOptsList *list = qemu_find_opts("machine");
-    if (!QTAILQ_EMPTY(&list->head)) {
-        p = qemu_opt_get(QTAILQ_FIRST(&list->head), "accel");
-    }
-
+    p = qemu_opt_get(qemu_get_machine_opts(), "accel");
     if (p == NULL) {
         /* Use the default "accelerator", tcg */
         p = "tcg";
This page took 0.023874 seconds and 4 git commands to generate.