public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: Marcelo Tosatti <mtosatti@redhat.com>
Cc: "Daniel P. Berrange" <berrange@redhat.com>,
	kvm@vger.kernel.org, avi@redhat.com
Subject: Re: [PATCH master+STABLE-0.15] Fix default accelerator when configured with --disable-kvm
Date: Fri, 05 Aug 2011 12:27:42 -0500	[thread overview]
Message-ID: <4E3C280E.8030301@codemonkey.ws> (raw)
In-Reply-To: <20110805171056.GA19988@amt.cnet>

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.

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


  reply	other threads:[~2011-08-05 17:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-05  8:50 [PATCH master+STABLE-0.15] Fix default accelerator when configured with --disable-kvm Daniel P. Berrange
2011-08-05 17:10 ` Marcelo Tosatti
2011-08-05 17:27   ` Anthony Liguori [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-08-04 14:02 Daniel P. Berrange
2011-08-04 20:15 ` Marcelo Tosatti

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E3C280E.8030301@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=avi@redhat.com \
    --cc=berrange@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=mtosatti@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox