From: Dou Liyang <douly.fnst@cn.fujitsu.com>
To: Igor Mammedov <imammedo@redhat.com>
Cc: qemu-devel@nongnu.org, Thomas Huth <thuth@redhat.com>,
Takao Indoh <indou.takao@jp.fujitsu.com>,
Eduardo Habkost <ehabkost@redhat.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
Izumi Taku <izumi.taku@jp.fujitsu.com>,
David Hildenbrand <david@redhat.com>,
f4bug@amsat.org, Alistair Francis <alistair23@gmail.com>,
Marcel Apfelbaum <marcel@redhat.com>,
Paolo Bonzini <pbonzini@redhat.com>,
Richard Henderson <rth@twiddle.net>
Subject: Re: [Qemu-devel] [PATCH v3] NUMA: Enable adding NUMA node implicitly
Date: Wed, 18 Oct 2017 22:04:05 +0800 [thread overview]
Message-ID: <4930aa2c-4a10-bc5c-bd77-cf0c368b9cea@cn.fujitsu.com> (raw)
In-Reply-To: <20171018122124.4bb4748c@nial.brq.redhat.com>
Hi Igor,
>> diff --git a/vl.c b/vl.c
>> index 9bb5058..d083b4d 100644
>> --- a/vl.c
>> +++ b/vl.c
>> @@ -4665,7 +4665,11 @@ int main(int argc, char **argv, char **envp)
>> default_drive(default_floppy, snapshot, IF_FLOPPY, 0, FD_OPTS);
>> default_drive(default_sdcard, snapshot, IF_SD, 0, SD_OPTS);
>>
>> - parse_numa_opts(current_machine);
>> + current_machine->ram_size = ram_size;
>> + current_machine->maxram_size = maxram_size;
>> + current_machine->ram_slots = ram_slots;
>> +
>> + parse_numa_opts(current_machine, ram_slots);
>>
>> if (qemu_opts_foreach(qemu_find_opts("mon"),
>> mon_init_func, NULL, NULL)) {
>> @@ -4710,9 +4714,6 @@ int main(int argc, char **argv, char **envp)
>> replay_checkpoint(CHECKPOINT_INIT);
>> qdev_machine_init();
>>
>> - current_machine->ram_size = ram_size;
>> - current_machine->maxram_size = maxram_size;
>> - current_machine->ram_slots = ram_slots;
>> current_machine->boot_order = boot_order;
>> current_machine->cpu_model = cpu_model;
> it should be safe to move parse_numa_opts(current_machine) here
>
Yes, Indeed!
I have modified and tested this, It's good. will change in the next
version.
Thanks,
dou.
>
>
>
>
>
prev parent reply other threads:[~2017-10-18 14:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-21 9:23 [Qemu-devel] [PATCH v3] NUMA: Enable adding NUMA node implicitly Dou Liyang
2017-10-18 3:53 ` Dou Liyang
2017-10-18 10:21 ` Igor Mammedov
2017-10-18 14:04 ` Dou Liyang [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=4930aa2c-4a10-bc5c-bd77-cf0c368b9cea@cn.fujitsu.com \
--to=douly.fnst@cn.fujitsu.com \
--cc=alistair23@gmail.com \
--cc=david@redhat.com \
--cc=ehabkost@redhat.com \
--cc=f4bug@amsat.org \
--cc=imammedo@redhat.com \
--cc=indou.takao@jp.fujitsu.com \
--cc=izumi.taku@jp.fujitsu.com \
--cc=marcel@redhat.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=rth@twiddle.net \
--cc=thuth@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).