From: Igor Mammedov <imammedo@redhat.com>
To: Eduardo Habkost <ehabkost@redhat.com>
Cc: libvir-list@redhat.com, "Jiri Denemark" <jdenemar@redhat.com>,
"Peter Krempa" <pkrempa@redhat.com>,
qemu-devel@nongnu.org, "Andreas Färber" <afaerber@suse.de>
Subject: Re: [Qemu-devel] [RFC 1/5] cpu: Initialize cpu->stopped=true earlier
Date: Thu, 15 May 2014 14:28:18 +0200 [thread overview]
Message-ID: <20140515142818.1e92848b@nial.usersys.redhat.com> (raw)
In-Reply-To: <1398889773-14652-2-git-send-email-ehabkost@redhat.com>
On Wed, 30 Apr 2014 17:29:29 -0300
Eduardo Habkost <ehabkost@redhat.com> wrote:
> In case something happens and prevents qemu_init_vcpu() from running
> after cpu_exec_init() was already called, this will let the rest of the
> VCPU handling code know that the CPU is not running yet.
perhaps default value should be set even earlier in qom/cpu.c:cpu_common_initfn()
>
> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
> ---
> cpus.c | 1 -
> exec.c | 1 +
> 2 files changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/cpus.c b/cpus.c
> index 7bbe153..69b0530 100644
> --- a/cpus.c
> +++ b/cpus.c
> @@ -1184,7 +1184,6 @@ void qemu_init_vcpu(CPUState *cpu)
> {
> cpu->nr_cores = smp_cores;
> cpu->nr_threads = smp_threads;
> - cpu->stopped = true;
> if (kvm_enabled()) {
> qemu_kvm_start_vcpu(cpu);
> } else if (tcg_enabled()) {
> diff --git a/exec.c b/exec.c
> index 91513c6..e91decc 100644
> --- a/exec.c
> +++ b/exec.c
> @@ -485,6 +485,7 @@ void cpu_exec_init(CPUArchState *env)
> }
> cpu->cpu_index = cpu_index;
> cpu->numa_node = 0;
> + cpu->stopped = true;
> QTAILQ_INIT(&cpu->breakpoints);
> QTAILQ_INIT(&cpu->watchpoints);
> #ifndef CONFIG_USER_ONLY
prev parent reply other threads:[~2014-05-15 12:28 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1398889773-14652-1-git-send-email-ehabkost@redhat.com>
2014-05-02 13:45 ` [Qemu-devel] [RFC 0/5] Allow object-add on X86CPU subclasses, for CPU model probing Igor Mammedov
2014-05-02 14:43 ` Eduardo Habkost
2014-05-02 14:54 ` Paolo Bonzini
2014-05-02 16:43 ` Eduardo Habkost
2014-05-06 7:22 ` Igor Mammedov
2014-05-06 14:42 ` Eduardo Habkost
2014-05-06 20:01 ` Igor Mammedov
2014-05-06 20:19 ` Eduardo Habkost
2014-05-06 20:29 ` Andreas Färber
2014-05-08 18:29 ` Eduardo Habkost
2014-05-15 12:35 ` Igor Mammedov
2014-05-15 13:07 ` Eduardo Habkost
2014-05-15 13:09 ` Andreas Färber
2014-05-15 13:48 ` Igor Mammedov
2014-05-15 14:03 ` Eduardo Habkost
2014-05-16 14:52 ` Igor Mammedov
2014-05-16 15:16 ` Eduardo Habkost
2014-05-16 14:57 ` Andreas Färber
2014-05-06 22:13 ` [Qemu-devel] [libvirt] " Eric Blake
2014-05-15 12:14 ` [Qemu-devel] " Igor Mammedov
2014-05-15 13:35 ` Eduardo Habkost
[not found] ` <1398889773-14652-2-git-send-email-ehabkost@redhat.com>
2014-05-15 12:28 ` Igor Mammedov [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=20140515142818.1e92848b@nial.usersys.redhat.com \
--to=imammedo@redhat.com \
--cc=afaerber@suse.de \
--cc=ehabkost@redhat.com \
--cc=jdenemar@redhat.com \
--cc=libvir-list@redhat.com \
--cc=pkrempa@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 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).