From patchwork Fri Aug 5 17:27:42 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anthony Liguori X-Patchwork-Id: 1039022 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p75HRu32011264 for ; Fri, 5 Aug 2011 17:27:56 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755014Ab1HER1q (ORCPT ); Fri, 5 Aug 2011 13:27:46 -0400 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) Received: by 10.236.179.10 with SMTP id g10mr2445435yhm.181.1312565265025; Fri, 05 Aug 2011 10:27:45 -0700 (PDT) Received: from [192.168.0.103] (cpe-70-123-132-139.austin.res.rr.com [70.123.132.139]) by mx.google.com with ESMTPS id j65sm178401yhm.12.2011.08.05.10.27.43 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 05 Aug 2011 10:27:44 -0700 (PDT) Message-ID: <4E3C280E.8030301@codemonkey.ws> Date: Fri, 05 Aug 2011 12:27:42 -0500 From: Anthony Liguori User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110516 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: Marcelo Tosatti CC: "Daniel P. Berrange" , kvm@vger.kernel.org, avi@redhat.com Subject: Re: [PATCH master+STABLE-0.15] Fix default accelerator when configured with --disable-kvm References: <1312534229-15368-1-git-send-email-berrange@redhat.com> <20110805171056.GA19988@amt.cnet> In-Reply-To: <20110805171056.GA19988@amt.cnet> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Fri, 05 Aug 2011 17:27:56 +0000 (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" >> >> 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. 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 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"