26ba25
From a737b4e82a67c87c6c34bbe5826dc9ed5c6318da Mon Sep 17 00:00:00 2001
26ba25
From: Miroslav Rezanina <mrezanin@redhat.com>
26ba25
Date: Thu, 18 Dec 2014 06:27:49 +0100
26ba25
Subject: Use kvm by default
26ba25
26ba25
Bugzilla: 906185
26ba25
26ba25
RHEL uses kvm accelerator by default, if available.
26ba25
26ba25
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
26ba25
26ba25
Rebase notes (2.10.0)
26ba25
- variable rename (upstream)
26ba25
26ba25
Rebase notes (2.2.0):
26ba25
- Move code from vl.c to accel.c
26ba25
26ba25
(cherry picked from commit abcd662eb8e516ebe4a6b401e83a62f749491a15)
26ba25
(cherry picked from commit eca6d5766d956c37e3f7f28d70903d357308c846)
26ba25
---
26ba25
 accel/accel.c | 4 ++--
26ba25
 1 file changed, 2 insertions(+), 2 deletions(-)
26ba25
26ba25
diff --git a/accel/accel.c b/accel/accel.c
26ba25
index 93e2434..5f3d73f 100644
26ba25
--- a/accel/accel.c
26ba25
+++ b/accel/accel.c
26ba25
@@ -79,8 +79,8 @@ void configure_accelerator(MachineState *ms)
26ba25
 
26ba25
     accel = qemu_opt_get(qemu_get_machine_opts(), "accel");
26ba25
     if (accel == NULL) {
26ba25
-        /* Use the default "accelerator", tcg */
26ba25
-        accel = "tcg";
26ba25
+        /* RHEL uses kvm as the default accelerator, fallback to tcg */
26ba25
+        accel = "kvm:tcg";
26ba25
     }
26ba25
 
26ba25
     p = accel;
26ba25
-- 
26ba25
1.8.3.1
26ba25