qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Alexander Graf <agraf@suse.de>
To: Christoffer Dall <c.dall@virtualopensystems.com>
Cc: "Peter Maydell" <peter.maydell@linaro.org>,
	kvm@vger.kernel.org, patches@linaro.org,
	"Marcelo Tosatti" <mtosatti@redhat.com>,
	qemu-devel@nongnu.org, "Andreas Färber" <afaerber@suse.de>,
	"Blue Swirl" <blauwirbel@gmail.com>,
	kvmarm@lists.cs.columbia.edu
Subject: Re: [Qemu-devel] [kvmarm] [RFC v4 8/8] oslib-posix: Align to permit transparent hugepages on ARM Linux
Date: Tue, 20 Nov 2012 15:37:50 +0100	[thread overview]
Message-ID: <50AB95BE.1090406@suse.de> (raw)
In-Reply-To: <CANM98qJYVDcKLAvntbdQrwUcBG_miqoZU=yfGFcYey3b6yzYdw@mail.gmail.com>

On 11/20/2012 02:55 PM, Christoffer Dall wrote:
> On Tue, Nov 20, 2012 at 8:54 AM, Alexander Graf<agraf@suse.de>  wrote:
>> On 11/20/2012 02:31 PM, Peter Maydell wrote:
>>> ARM Linux (like x86-64 Linux) can use transparent hugepages for
>>> KVM if memory blocks are 2MiB aligned; set QEMU_VMALLOC_ALIGN
>>> accordingly.
>>>
>>> Signed-off-by: Peter Maydell<peter.maydell@linaro.org>
>>> ---
>>>    oslib-posix.c |    2 +-
>>>    1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/oslib-posix.c b/oslib-posix.c
>>> index 9db9c3d..d25b52a 100644
>>> --- a/oslib-posix.c
>>> +++ b/oslib-posix.c
>>> @@ -35,7 +35,7 @@
>>>    extern int daemon(int, int);
>>>    #endif
>>>
>>> -#if defined(__linux__)&&   defined(__x86_64__)
>>> +#if defined(__linux__)&&   (defined(__x86_64__) || defined(__arm__))
>>
>> Why not just drop the arch specific bit?
>>
>>
> other archs have other alignment requirements, iirc.

Ah, sorry, missed the rest of the lines around this one :). Yeah, should 
be ok then.


Alex

  reply	other threads:[~2012-11-20 14:38 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-20 13:31 [Qemu-devel] [RFC v4 0/8] QEMU: Support KVM on ARM Peter Maydell
2012-11-20 13:31 ` [Qemu-devel] [RFC v4 1/8] linux-headers: Add ARM KVM headers (not for upstream) Peter Maydell
2012-11-20 13:31 ` [Qemu-devel] [RFC v4 2/8] ARM: KVM: Add support for KVM on ARM architecture Peter Maydell
2012-11-20 13:31 ` [Qemu-devel] [RFC v4 3/8] ARM KVM: save and load VFP registers from kernel Peter Maydell
2012-11-20 13:31 ` [Qemu-devel] [RFC v4 4/8] hw/arm_gic: Add presave/postload hooks Peter Maydell
2012-11-20 13:31 ` [Qemu-devel] [RFC v4 5/8] target-arm: Use MemoryListener to identify GIC base address for KVM Peter Maydell
2012-11-20 13:31 ` [Qemu-devel] [RFC v4 6/8] hw/kvm/arm_gic: Implement support for KVM in-kernel ARM GIC Peter Maydell
2012-11-20 13:31 ` [Qemu-devel] [RFC v4 7/8] configure: Enable KVM on ARM Peter Maydell
2012-11-20 13:31 ` [Qemu-devel] [RFC v4 8/8] oslib-posix: Align to permit transparent hugepages on ARM Linux Peter Maydell
2012-11-20 13:54   ` [Qemu-devel] [kvmarm] " Alexander Graf
2012-11-20 13:55     ` Christoffer Dall
2012-11-20 14:37       ` Alexander Graf [this message]
2012-11-20 14:48         ` 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=50AB95BE.1090406@suse.de \
    --to=agraf@suse.de \
    --cc=afaerber@suse.de \
    --cc=blauwirbel@gmail.com \
    --cc=c.dall@virtualopensystems.com \
    --cc=kvm@vger.kernel.org \
    --cc=kvmarm@lists.cs.columbia.edu \
    --cc=mtosatti@redhat.com \
    --cc=patches@linaro.org \
    --cc=peter.maydell@linaro.org \
    --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).