qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PULL v2 18/31] accel: Allow to build QEMU without TCG or K


From: Paolo Bonzini
Subject: [Qemu-devel] [PULL v2 18/31] accel: Allow to build QEMU without TCG or KVM support
Date: Mon, 11 Mar 2019 17:55:22 +0100

From: Anthony PERARD <address@hidden>

Instead of deny build of QEMU without a default accelerator, simply
report an error when the user haven't passed -accel or -machine accel=
and TCG and KVM isn't builtin.

./configure already check that at least one accelerator is available.

Signed-off-by: Anthony PERARD <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
---
 accel/accel.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/accel/accel.c b/accel/accel.c
index 68b6d56..0d5b370 100644
--- a/accel/accel.c
+++ b/accel/accel.c
@@ -91,7 +91,9 @@ void configure_accelerator(MachineState *ms, const char 
*progname)
 #elif defined(CONFIG_KVM)
             accel = "kvm";
 #else
-#error "No default accelerator available"
+            error_report("No accelerator selected and"
+                         " no default accelerator available");
+            exit(1);
 #endif
         }
     }
-- 
1.8.3.1





reply via email to

[Prev in Thread] Current Thread [Next in Thread]