]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: KVM: Dynamically compute the HYP VA mask
authorMarc Zyngier <marc.zyngier@arm.com>
Fri, 8 Dec 2017 14:18:27 +0000 (14:18 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 19 Mar 2018 13:05:15 +0000 (13:05 +0000)
commit5fecbc47662d39e1a693d1b2936624f141ee671c
treefa06aba199457ce4e360ec4d69c38b54a08308be
parent19ad8efead9d5364d8fb0230a363edcb895168d6
arm64: KVM: Dynamically compute the HYP VA mask

As we're moving towards a much more dynamic way to compute our
HYP VA, let's express the mask in a slightly different way.

Instead of comparing the idmap position to the "low" VA mask,
we directly compute the mask by taking into account the idmap's
(VA_BIT-1) bit.

No functionnal change.

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/kvm/va_layout.c