From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: [PATCH master+STABLE-0.15] Fix default accelerator when configured with --disable-kvm Date: Fri, 05 Aug 2011 12:27:42 -0500 Message-ID: <4E3C280E.8030301@codemonkey.ws> References: <1312534229-15368-1-git-send-email-berrange@redhat.com> <20110805171056.GA19988@amt.cnet> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "Daniel P. Berrange" , kvm@vger.kernel.org, avi@redhat.com To: Marcelo Tosatti Return-path: Received: from mail-gx0-f174.google.com ([209.85.161.174]:43747 "EHLO mail-gx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754750Ab1HER1p (ORCPT ); Fri, 5 Aug 2011 13:27:45 -0400 Received: by gxk21 with SMTP id 21so1815902gxk.19 for ; Fri, 05 Aug 2011 10:27:45 -0700 (PDT) In-Reply-To: <20110805171056.GA19988@amt.cnet> Sender: kvm-owner@vger.kernel.org List-ID: 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" >> >> 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 > > 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. 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" 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