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