From: Eduardo Habkost <ehabkost@redhat.com>
To: Dou Liyang <douly.fnst@cn.fujitsu.com>
Cc: stefanha@redhat.com, pbonzini@redhat.com, armbru@redhat.com,
eblake@redhat.com, qemu-devel@nongnu.org,
izumi.taku@jp.fujitsu.com, caoj.fnst@cn.fujitsu.com,
fanc.fnst@cn.fujitsu.com, Igor Mammedov <imammedo@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 2/2] vl: Ensure the cpu_synchronize_all_post_init func in the appropriate location
Date: Tue, 17 Jan 2017 18:21:32 -0200 [thread overview]
Message-ID: <20170117202132.GP3491@thinpad.lan.raisama.net> (raw)
In-Reply-To: <1484664152-24446-3-git-send-email-douly.fnst@cn.fujitsu.com>
On Tue, Jan 17, 2017 at 10:42:32PM +0800, Dou Liyang wrote:
> As the commit a4088c3eecb5f said, In the cpu_synchronize_all_post_init(),
> we also use CPU_FOREACH macro to set all CPUs' namu_node.
I can't find commit a4088c3eecb5f, is it the commit ID of your
previous patch on your local tree? I don't see any NUMA-related
code triggered cpu_synchronize_all_post_init().
> So, we should
> make sure that we call it after Qemu has already initialied all the CPUs.
>
> The patch move the numa_post_machine_init func in the appropriate
> location.
This patch moves cpu_synchronize_all_post_init(), not
numa_post_machine_init(). Could you describe which bug you are
fixing, exactly? It doesn't seem to be related to NUMA.
>
> Signed-off-by: Dou Liyang <douly.fnst@cn.fujitsu.com>
> ---
> vl.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/vl.c b/vl.c
> index f38b0e2..75adc2a 100644
> --- a/vl.c
> +++ b/vl.c
> @@ -4547,8 +4547,6 @@ int main(int argc, char **argv, char **envp)
>
> audio_init();
>
> - cpu_synchronize_all_post_init();
> -
> if (qemu_opts_foreach(qemu_find_opts("fw_cfg"),
> parse_fw_cfg, fw_cfg_find(), NULL) != 0) {
> exit(1);
> @@ -4570,6 +4568,8 @@ int main(int argc, char **argv, char **envp)
> exit(1);
> }
>
> + cpu_synchronize_all_post_init();
> +
> numa_post_machine_init();
>
> rom_reset_order_override();
> --
> 2.5.5
>
>
>
--
Eduardo
next prev parent reply other threads:[~2017-01-17 20:21 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-17 14:42 [Qemu-devel] [PATCH 0/2] vl: Ensure two functions in the appropriate location Dou Liyang
2017-01-17 14:42 ` [Qemu-devel] [PATCH 1/2] vl: Ensure the numa_post_machine_init func " Dou Liyang
2017-01-17 20:09 ` Eduardo Habkost
2017-01-18 4:02 ` Dou Liyang
2017-01-18 12:45 ` Eduardo Habkost
2017-01-17 14:42 ` [Qemu-devel] [PATCH 2/2] vl: Ensure the cpu_synchronize_all_post_init " Dou Liyang
2017-01-17 20:21 ` Eduardo Habkost [this message]
2017-01-18 2:17 ` Dou Liyang
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=20170117202132.GP3491@thinpad.lan.raisama.net \
--to=ehabkost@redhat.com \
--cc=armbru@redhat.com \
--cc=caoj.fnst@cn.fujitsu.com \
--cc=douly.fnst@cn.fujitsu.com \
--cc=eblake@redhat.com \
--cc=fanc.fnst@cn.fujitsu.com \
--cc=imammedo@redhat.com \
--cc=izumi.taku@jp.fujitsu.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@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;
as well as URLs for NNTP newsgroup(s).