From: Peter Maydell <peter.maydell@linaro.org>
To: Igor Mammedov <imammedo@redhat.com>
Cc: "kwangwoo.lee@sk.com" <kwangwoo.lee@sk.com>,
Xiao Guangrong <guangrong.xiao@linux.intel.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
Paolo Bonzini <pbonzini@redhat.com>,
Richard Henderson <rth@twiddle.net>,
Eduardo Habkost <ehabkost@redhat.com>,
Shannon Zhao <zhaoshenglong@huawei.com>,
Shannon Zhao <shannon.zhao@linaro.org>,
QEMU Developers <qemu-devel@nongnu.org>,
qemu-arm <qemu-arm@nongnu.org>,
"woosuk.chung@sk.com" <woosuk.chung@sk.com>,
"hyunchul3.kim@sk.com" <hyunchul3.kim@sk.com>
Subject: Re: [Qemu-devel] [RFC PATCH 1/3] hw/arm/virt: add hotplug memory support
Date: Tue, 2 Aug 2016 08:59:46 +0100 [thread overview]
Message-ID: <CAFEAcA9cbsq5oWCABMww3EWkV8cPsaGJrO0NyPyc4Ph7aA_MQg@mail.gmail.com> (raw)
In-Reply-To: <20160801111433.2af5c013@nial.brq.redhat.com>
On 1 August 2016 at 10:14, Igor Mammedov <imammedo@redhat.com> wrote:
> On Mon, 1 Aug 2016 09:13:34 +0100
> Peter Maydell <peter.maydell@linaro.org> wrote:
>> On 1 August 2016 at 08:46, Igor Mammedov <imammedo@redhat.com> wrote:
>> > Base alignment comes from max supported hugepage size,
>>
>> Max hugepage size for any host? (if so, should be defined
>> in a common header somewhere)
>> Max hugepage size for ARM hosts? (if so, why is TCG
>> different from KVM?, and should still be in a common
>> header somewhere)
> It's the same for TCG but it probably doesn't matter much there,
> main usage is to provide better performance with KVM.
>
> So I'd say it's host depended (for x86 it's 1Gb),
> probably other values for ARM and PPC
We probably don't want to make the memory layout depend
on the host architecture, though :-(
>>
>> > while
>> > size alignment should depend on backend's page size
>>
>> Which page size do you have in mind here? TARGET_PAGE_SIZE
>> is often not the right answer, since it doesn't
>> correspond either to the actual page size being used
>> by the host kernel or to the actual page size used
>> by the guest kernel...
> alignment comes from here: memory_region_get_alignment()
>
> exec:c
> MAX(page_size, QEMU_VMALLOC_ALIGN)
> so it's either backend's page size or a min chunk QEMU
> allocates memory to make KVM/valgrind/whatnot happy.
Since that's always larger than TARGET_PAGE_SIZE
why are we checking for an alignment here that's
not actually sufficient to make things work?
thanks
-- PMM
next prev parent reply other threads:[~2016-08-02 8:00 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-20 0:49 [Qemu-devel] [RFC PATCH 0/3] add nvdimm support on AArch64 virt platform Kwangwoo Lee
2016-07-20 0:49 ` [Qemu-devel] [RFC PATCH 1/3] hw/arm/virt: add hotplug memory support Kwangwoo Lee
2016-07-29 18:10 ` Peter Maydell
2016-08-01 0:35 ` kwangwoo.lee
2016-08-01 7:46 ` Igor Mammedov
2016-08-01 8:13 ` Peter Maydell
2016-08-01 9:14 ` Igor Mammedov
2016-08-02 5:54 ` kwangwoo.lee
2016-08-02 7:59 ` Peter Maydell [this message]
2016-08-02 12:18 ` Igor Mammedov
2016-08-04 23:30 ` kwangwoo.lee
2016-07-20 0:49 ` [Qemu-devel] [RFC PATCH 2/3] nvdimm: use configurable ACPI IO base and size Kwangwoo Lee
2016-07-25 16:12 ` Peter Maydell
2016-07-26 6:55 ` kwangwoo.lee
2016-07-20 0:49 ` [Qemu-devel] [RFC PATCH 3/3] hw/arm/virt: add nvdimm emulation support Kwangwoo Lee
2016-07-25 16:05 ` Peter Maydell
2016-07-26 7:03 ` kwangwoo.lee
2016-07-26 8:23 ` Peter Maydell
2016-07-27 2:23 ` kwangwoo.lee
2016-07-25 16:06 ` [Qemu-devel] [RFC PATCH 0/3] add nvdimm support on AArch64 virt platform Peter Maydell
2016-07-26 6:32 ` kwangwoo.lee
2016-07-29 18:11 ` Peter Maydell
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=CAFEAcA9cbsq5oWCABMww3EWkV8cPsaGJrO0NyPyc4Ph7aA_MQg@mail.gmail.com \
--to=peter.maydell@linaro.org \
--cc=ehabkost@redhat.com \
--cc=guangrong.xiao@linux.intel.com \
--cc=hyunchul3.kim@sk.com \
--cc=imammedo@redhat.com \
--cc=kwangwoo.lee@sk.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=rth@twiddle.net \
--cc=shannon.zhao@linaro.org \
--cc=woosuk.chung@sk.com \
--cc=zhaoshenglong@huawei.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).