[master+STABLE-0.15] Fix default accelerator when configured with --disable-kvm
diff mbox

Message ID 4E3C280E.8030301@codemonkey.ws
State New, archived
Headers show

Commit Message

Anthony Liguori Aug. 5, 2011, 5:27 p.m. UTC
On 08/05/2011 12:10 PM, Marcelo Tosatti wrote:
> On Fri, Aug 05, 2011 at 09:50:29AM +0100, Daniel P. Berrange wrote:
>> From: "Daniel P. Berrange"<berrange@redhat.com>
>>
>> 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
>>
>> Signed-off-by: Daniel P. Berrange<berrange@redhat.com>
>
> Applied, thanks.

FYI, you can now do the same thing by just patching 
sysconfig/target-x86_64.conf.  I just modify my 
/usr/local/etc/qemu/target-x86_64.conf and now even with qemu.git, I get 
kvm enablement by default.


Regards,

Anthony Liguori

>
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch
diff mbox

diff --git a/sysconfigs/target/target-x86_64.conf 
b/sysconfigs/target/target-x86
index 43ad282..2eabef9 100644
--- a/sysconfigs/target/target-x86_64.conf
+++ b/sysconfigs/target/target-x86_64.conf
@@ -84,3 +84,5 @@ 
     xlevel = "0x80000008"
     model_id = "AMD Opteron 23xx (Gen 3 Class Opteron)"

+[machine]
+   accel = "kvm:tcg"