dcavalca / rpms / qemu

Forked from rpms/qemu a year ago
Clone

Blame qemu-kvm-default-accelerator.patch

Daniel P. Berrange db8fd9
diff --git a/vl.c b/vl.c
Daniel P. Berrange db8fd9
index 7ae549e..28fd2f3 100644
Daniel P. Berrange db8fd9
--- a/vl.c
Daniel P. Berrange db8fd9
+++ b/vl.c
Daniel P. Berrange db8fd9
@@ -1953,8 +1953,13 @@ static int configure_accelerator(void)
Daniel P. Berrange db8fd9
     }
Daniel P. Berrange db8fd9
 
Daniel P. Berrange db8fd9
     if (p == NULL) {
Daniel P. Berrange db8fd9
+#ifdef CONFIG_KVM
Daniel P. Berrange db8fd9
         /* Use the default "accelerator", kvm */
Daniel P. Berrange db8fd9
         p = "kvm";
Daniel P. Berrange db8fd9
+#else
Daniel P. Berrange db8fd9
+        /* Use the default "accelerator", tcg */
Daniel P. Berrange db8fd9
+        p = "tcg";
Daniel P. Berrange db8fd9
+#endif
Daniel P. Berrange db8fd9
     }
Daniel P. Berrange db8fd9
 
Daniel P. Berrange db8fd9
     while (!accel_initalised && *p != '\0') {