Fix default accelerator when configured with --disable-kvm
PATCH 1/1 Fix default accelerator when configured with --disable-kvm
From: "Daniel P. Berrange" <[email protected]>
The default accelerator is hardcoded to 'kvm'. This is a fine default for qemu-kvm normally, but if the user built with ./configure --disable-kvm, then the resulting binaries will not work by default
* vl.c: Default to 'tcg' unless CONFIG_KVM is defined
--- vl.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
vl.c +5 -0
@@ -1953,8 +1953,13 @@ static int configure_accelerator(void) }if (p ==NULL ) { +#ifdef CONFIG_KVM /* Use the default "accelerator", kvm */ p ="kvm" ; +#else +/* Use the default "accelerator", tcg */ + p ="tcg" ; +#endif }while (!accel_initalised && *p !='\0' ) {
Signature · 1 line
1.7.6
Quoted 6 lines · Daniel P. Berrange
From: "Daniel P. Berrange" <[email protected]>
The default accelerator is hardcoded to 'kvm'. This is a fine default for qemu-kvm normally, but if the user built with ./configure --disable-kvm, then the resulting binaries will not work by default
Signed-off-by, please.