• Marc Zyngier's avatar
    KVM: arm/arm64: Move HYP IO VAs to the "idmap" range · e3f019b3
    Marc Zyngier authored
    We so far mapped our HYP IO (which is essentially the GICv2 control
    registers) using the same method as for memory. It recently appeared
    that is a bit unsafe:
    
    We compute the HYP VA using the kern_hyp_va helper, but that helper
    is only designed to deal with kernel VAs coming from the linear map,
    and not from the vmalloc region... This could in turn cause some bad
    aliasing between the two, amplified by the upcoming VA randomisation.
    
    A solution is to come up with our very own basic VA allocator for
    MMIO. Since half of the HYP address space only contains a single
    page (the idmap), we have plenty to borrow from. Let's use the idmap
    as a base, and allocate downwards from it. GICv2 now lives on the
    other side of the great VA barrier.
    Acked-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
    Signed-off-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
    e3f019b3
Name
Last commit
Last update
Documentation Loading commit data...
LICENSES Loading commit data...
arch Loading commit data...
block Loading commit data...
certs Loading commit data...
crypto Loading commit data...
drivers Loading commit data...
firmware Loading commit data...
fs Loading commit data...
include Loading commit data...
init Loading commit data...
ipc Loading commit data...
kernel Loading commit data...
lib Loading commit data...
mm Loading commit data...
net Loading commit data...
samples Loading commit data...
scripts Loading commit data...
security Loading commit data...
sound Loading commit data...
tools Loading commit data...
usr Loading commit data...
virt Loading commit data...
.cocciconfig Loading commit data...
.get_maintainer.ignore Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
Kbuild Loading commit data...
Kconfig Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...