qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: Jes.Sorensen@redhat.com
Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org
Subject: Re: [Qemu-devel] [PATCH] Use kvm32/kvm64 as default CPUs when running under KVM.
Date: Wed, 28 Jul 2010 13:51:50 +0300	[thread overview]
Message-ID: <4C500BC6.6020900@redhat.com> (raw)
In-Reply-To: <1280311527-2650-1-git-send-email-Jes.Sorensen@redhat.com>

  On 07/28/2010 01:05 PM, Jes.Sorensen@redhat.com wrote:
> From: Jes Sorensen<Jes.Sorensen@redhat.com>
>
> KVM has a minimum CPU requirement in order to run, so there is no
> reason to default to the very basic family 6, model 2 (or model 3 for
> qemu32) CPU since the additional features are going to be available on
> the host CPU.
>
>
> @@ -866,11 +867,19 @@ void pc_cpus_init(const char *cpu_model)
>
>       /* init CPUs */
>       if (cpu_model == NULL) {
> +        if (kvm_enabled()) {
>   #ifdef TARGET_X86_64
> -        cpu_model = "qemu64";
> +            cpu_model = "kvm64";
>   #else
> -        cpu_model = "qemu32";
> +            cpu_model = "kvm32";
>   #endif
> +        } else {
> +#ifdef TARGET_X86_64
> +            cpu_model = "qemu64";
> +#else
> +            cpu_model = "qemu32";
> +#endif
> +        }
>       }

What about -M 0.12?  It needs to retain the old values.

-- 
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.

  reply	other threads:[~2010-07-28 10:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-28 10:05 [Qemu-devel] [PATCH] Use kvm32/kvm64 as default CPUs when running under KVM Jes.Sorensen
2010-07-28 10:51 ` Avi Kivity [this message]
2010-07-28 10:57   ` Jes Sorensen

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=4C500BC6.6020900@redhat.com \
    --to=avi@redhat.com \
    --cc=Jes.Sorensen@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=qemu-devel@nongnu.org \
    /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;
as well as URLs for NNTP newsgroup(s).