OSDN Git Service

s390x/mmu: Convert to non-recursive page table walk
authorDavid Hildenbrand <david@redhat.com>
Wed, 25 Sep 2019 12:24:42 +0000 (14:24 +0200)
committerDavid Hildenbrand <david@redhat.com>
Wed, 9 Oct 2019 10:49:01 +0000 (12:49 +0200)
commita4e95b41a1bd3fe82d130773357d0df52b50e67f
treed68561f31db124abf3a52883124158070fcf3895
parent3fd0e85f3f3db70e6b6a70bdacc90bbea0e396de
s390x/mmu: Convert to non-recursive page table walk

A non-recursive implementation allows to make better use of the
branch predictor, avoids function calls, and makes the implementation of
new features only for a subset of region table levels easier.

We can now directly compare our implementation to the KVM gaccess
implementation in arch/s390/kvm/gaccess.c:guest_translate().

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
target/s390x/mmu_helper.c