From: Anthony Liguori <anthony@codemonkey.ws>
To: Jiri Denemark <jdenemar@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] Fix CPU topology initialization
Date: Mon, 11 Jan 2010 10:01:24 -0600 [thread overview]
Message-ID: <4B4B4B54.2030706@codemonkey.ws> (raw)
In-Reply-To: <416bd3c048a9b777180f2e2735e620f8b7206840.1262708768.git.jdenemar@redhat.com>
On 01/05/2010 10:26 AM, Jiri Denemark wrote:
> Late initialization of CPU topology in CPUState prevents KVM guests to
> actually see the topology.
>
> Signed-off-by: Jiri Denemark<jdenemar@redhat.com>
>
Applied. Thanks.
Regards,
Anthony Liguori
> ---
> vl.c | 8 ++++----
> 1 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/vl.c b/vl.c
> index e881e45..a03d7a6 100644
> --- a/vl.c
> +++ b/vl.c
> @@ -3484,10 +3484,10 @@ void qemu_init_vcpu(void *_env)
> {
> CPUState *env = _env;
>
> - if (kvm_enabled())
> - kvm_init_vcpu(env);
> env->nr_cores = smp_cores;
> env->nr_threads = smp_threads;
> + if (kvm_enabled())
> + kvm_init_vcpu(env);
> return;
> }
>
> @@ -3813,12 +3813,12 @@ void qemu_init_vcpu(void *_env)
> {
> CPUState *env = _env;
>
> + env->nr_cores = smp_cores;
> + env->nr_threads = smp_threads;
> if (kvm_enabled())
> kvm_start_vcpu(env);
> else
> tcg_init_vcpu(env);
> - env->nr_cores = smp_cores;
> - env->nr_threads = smp_threads;
> }
>
> void qemu_notify_event(void)
>
prev parent reply other threads:[~2010-01-11 16:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-05 16:26 [Qemu-devel] [PATCH] Fix CPU topology initialization Jiri Denemark
2010-01-11 16:01 ` Anthony Liguori [this message]
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=4B4B4B54.2030706@codemonkey.ws \
--to=anthony@codemonkey.ws \
--cc=jdenemar@redhat.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.