arm64: KVM: Kill HYP_PAGE_OFFSET
authorMarc Zyngier <marc.zyngier@arm.com>
Thu, 30 Jun 2016 17:40:37 +0000 (18:40 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Sun, 3 Jul 2016 21:41:27 +0000 (23:41 +0200)
commitfd16fe6820ede711c6e6950ffebdbc8ade5d05b3
treec4f9690d8b4f1323933bbc3df98ad51b1c2dcf0b
parent3f0f8830d440e3edf5580424519a7c3434891c64
arm64: KVM: Kill HYP_PAGE_OFFSET

HYP_PAGE_OFFSET is not massively useful. And the way we use it
in KERN_HYP_VA is inconsistent with the equivalent operation in
EL2, where we use a mask instead.

Let's replace the uses of HYP_PAGE_OFFSET with HYP_PAGE_OFFSET_MASK,
and get rid of the pointless macro.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm64/include/asm/kvm_mmu.h