From: marc.zyngier@arm.com (Marc Zyngier)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: head: fix swapper and idmap population with LPAE and big-endian
Date: Mon, 25 Feb 2013 20:17:02 +0000 [thread overview]
Message-ID: <512BC6BE.7090801@arm.com> (raw)
In-Reply-To: <512BC4BE.7050103@gmail.com>
On 25/02/13 20:08, Rob Herring wrote:
> On 02/25/2013 10:05 AM, Marc Zyngier wrote:
>> On Mon, 25 Feb 2013 15:16:41 +0000, Will Deacon <will.deacon@arm.com>
>> wrote:
>>> The LPAE page table format uses 64-bit descriptors, so we need to take
>>> endianness into account when populating the swapper and idmap tables
>>> during early initialisation.
>>>
>>> This patch ensures that we store the two words making up each page table
>>> entry in the correct order when running big-endian.
>>>
>>> Cc: <stable@vger.kernel.org>
>>> Acked-by: Catalin Marinas <catalin.marinas@arm.com>
>>> Signed-off-by: Will Deacon <will.deacon@arm.com>
>>
>> FWIW, tested as a KVM guest.
>
> That was a for BE guest on LE host, right? :o
Yep. Actually, a 32bit BE guest on 64bit LE host. Scary, isn't it? ;-)
> Any ideas about much work that would be?
A substantial amount. I have a branch there:
git://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
kvm-arm64/mmio-be
It contains all kind of patches to KVM, virtio and kvmtool. I need to
split things into reviewable bits. And maybe get a life. ;-)
M.
--
Jazz is not dead. It just smells funny...
prev parent reply other threads:[~2013-02-25 20:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-25 15:16 [PATCH] ARM: head: fix swapper and idmap population with LPAE and big-endian Will Deacon
2013-02-25 16:05 ` Marc Zyngier
2013-02-25 20:08 ` Rob Herring
2013-02-25 20:17 ` 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=512BC6BE.7090801@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.