]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: s390: vsie: Fix nested guest memory shadowing
authorClaudio Imbrenda <imbrenda@linux.ibm.com>
Thu, 26 Mar 2026 13:17:15 +0000 (14:17 +0100)
committerClaudio Imbrenda <imbrenda@linux.ibm.com>
Thu, 26 Mar 2026 15:12:21 +0000 (16:12 +0100)
commitfd7bc612cf27f7c98764e86e2fba3511610fff20
treeff9bc218434bfc229a93456fd85711f61b1009f1
parent0f2b760a17126cb7940d410c99edfa14e928554c
KVM: s390: vsie: Fix nested guest memory shadowing

Fix _do_shadow_pte() to use the correct pointer (guest pte instead of
nested guest) to set up the new pte.

Add a check to return -EOPNOTSUPP if the mapping for the nested guest
is writeable but the same page in the guest is only read-only.

Fixes: e38c884df921 ("KVM: s390: Switch to new gmap")
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
arch/s390/kvm/gaccess.c