• Will Deacon's avatar
    KVM: arm64: Add stand-alone page-table walker infrastructure · b1e57de6
    Will Deacon authored
    The KVM page-table code is intricately tied into the kernel page-table
    code and re-uses the pte/pmd/pud/p4d/pgd macros directly in an attempt
    to reduce code duplication. Unfortunately, the reality is that there is
    an awful lot of code required to make this work, and at the end of the
    day you're limited to creating page-tables with the same configuration
    as the host kernel. Furthermore, lifting the page-table code to run
    directly at EL2 on a non-VHE system (as we plan to to do in future
    patches) is practically impossible due to the number of dependencies it
    has on the core kernel.
    
    Introduce a framework for walking Armv8 page-tables configured
    independently from the host kernel.
    Signed-off-by: default avatarWill Deacon <will@kernel.org>
    Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
    Reviewed-by: default avatarGavin Shan <gshan@redhat.com>
    Cc: Marc Zyngier <maz@kernel.org>
    Cc: Quentin Perret <qperret@google.com>
    Link: https://lore.kernel.org/r/20200911132529.19844-3-will@kernel.org
    b1e57de6
pgtable.c 6.28 KB