• Marc Zyngier's avatar
    KVM: arm64: nv: Add SW walker for AT S1 emulation · d6a01a2d
    Marc Zyngier authored
    In order to plug the brokenness of our current AT implementation,
    we need a SW walker that is going to... err.. walk the S1 tables
    and tell us what it finds.
    
    Of course, it builds on top of our S2 walker, and share similar
    concepts. The beauty of it is that since it uses kvm_read_guest(),
    it is able to bring back pages that have been otherwise evicted.
    
    This is then plugged in the two AT S1 emulation functions as
    a "slow path" fallback. I'm not sure it is that slow, but hey.
    Reviewed-by: default avatarAlexandru Elisei <alexandru.elisei@arm.com>
    Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
    d6a01a2d
at.c 23.8 KB