]> xenbits.xensource.com Git - people/pauldu/qemu.git/commitdiff
accel: Allow to build QEMU without TCG or KVM support
authorAnthony PERARD <anthony.perard@citrix.com>
Wed, 16 Jan 2019 17:35:27 +0000 (17:35 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 11 Mar 2019 15:33:49 +0000 (16:33 +0100)
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 <anthony.perard@citrix.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
accel/accel.c

index 68b6d563238a48f2c647a5b0b90447f63ed39890..0d5b370dfde1e6105f4f23ef46c6d190ec9b33c2 100644 (file)
@@ -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
         }
     }