summaryrefslogtreecommitdiff
path: root/include/asm-um/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorClaudio Imbrenda <imbrenda@linux.ibm.com>2026-03-26 14:17:18 +0100
committerClaudio Imbrenda <imbrenda@linux.ibm.com>2026-03-26 16:12:34 +0100
commita12cc7e3d6a62f26262c1940a526f0682fefa3ba (patch)
tree79850d332f5f38c3bce344708574ec5b56ffc353 /include/asm-um/git@git.tavy.me:linux.git
parent19d6c5b8044366c88c1b1f6e831c0661ff1ddd20 (diff)
KVM: s390: vsie: Fix guest page tables protection
When shadowing, the guest page tables are write-protected, in order to trap changes and properly unshadow the shadow mapping for the nested guest. Already shadowed levels are skipped, so that only the needed levels are write protected. Currently the levels that get write protected are exactly one level too deep: the last level (nested guest memory) gets protected in the wrong way, and will be protected again correctly a few lines afterwards; most importantly, the highest non-shadowed level does *not* get write protected. Moreover, if the nested guest is running in a real address space, there are no DAT tables to shadow. Write protect the correct levels, so that all the levels that need to be protected are protected, and avoid double protecting the last level; skip attempting to shadow the DAT tables when the nested guest is running in a real address space. Fixes: e38c884df921 ("KVM: s390: Switch to new gmap") Tested-by: Christian Borntraeger <borntraeger@linux.ibm.com> Reviewed-by: Janosch Frank <frankja@linux.ibm.com> Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Diffstat (limited to 'include/asm-um/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions