From: marc.zyngier@arm.com (Marc Zyngier)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] arm/arm64: KVM: relax the requirements of VMA alignment for THP
Date: Fri, 13 Dec 2013 17:27:10 +0000 [thread overview]
Message-ID: <52AB436E.1030709@arm.com> (raw)
In-Reply-To: <20131213172018.GT2871@cbox>
On 13/12/13 17:20, Christoffer Dall wrote:
> On Fri, Dec 13, 2013 at 04:56:06PM +0000, Marc Zyngier wrote:
>> The THP code in KVM/ARM is a bit restrictive in not allowing a THP
>> to be used if the VMA is not 2MB aligned. Actually, it is not so much
>> the VMA that matters, but the associated memslot:
>>
>> A process can perfectly mmap a region with no particular alignment
>> restriction, and then pass a 2MB aligned address to KVM. In this
>> case, KVM will only use this 2MB aligned region, and will ignore
>> the range between vma->vm_start and memslot->userspace_addr.
>>
>> It can also choose to place this memslot at whatever alignment it
>> wants in the IPA space. In the end, what matters is the relative
>> alignment of the user space and IPA mappings with respect to a
>> 2M page. They absolutely must be the same if you want to use THP.
>
> Looks good to me:
>
> Acked-by: Christoffer Dall <christoffer.dall@linaro.org>
Thanks for the review!
M.
--
Jazz is not dead. It just smells funny...
prev parent reply other threads:[~2013-12-13 17:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-13 16:56 [PATCH] arm/arm64: KVM: relax the requirements of VMA alignment for THP Marc Zyngier
2013-12-13 17:20 ` Christoffer Dall
2013-12-13 17:27 ` Marc Zyngier [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=52AB436E.1030709@arm.com \
--to=marc.zyngier@arm.com \
--cc=linux-arm-kernel@lists.infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.