From: Claudio Imbrenda Date: Tue, 23 Jun 2026 15:33:25 +0000 (+0200) Subject: KVM: s390: Fix code typo in gmap_protect_asce_top_level() X-Git-Tag: v7.2-rc1~30^2~2^2~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6e976afdfeafeb48f002b977823f67c6a3dd70a0;p=thirdparty%2Flinux.git KVM: s390: Fix code typo in gmap_protect_asce_top_level() The correct length to pass to kvm_s390_get_guest_pages() is asce.tl + 1, not asce.dt + 1. It was a typo, which, due to fortuitous circumstances, did not cause bugs. It should nonetheless be fixed. Fixes: e5f98a6899bd ("KVM: s390: Add some helper functions needed for vSIE") Signed-off-by: Claudio Imbrenda Message-ID: <20260623153331.233784-5-imbrenda@linux.ibm.com> --- diff --git a/arch/s390/kvm/gmap.c b/arch/s390/kvm/gmap.c index 3192f610f6962..e6e786811db86 100644 --- a/arch/s390/kvm/gmap.c +++ b/arch/s390/kvm/gmap.c @@ -1262,7 +1262,7 @@ static int gmap_protect_asce_top_level(struct kvm_s390_mmu_cache *mc, struct gma /* Pairs with the smp_wmb() in kvm_mmu_invalidate_end(). */ smp_rmb(); - rc = kvm_s390_get_guest_pages(sg->kvm, context.f, asce.rsto, asce.dt + 1, false); + rc = kvm_s390_get_guest_pages(sg->kvm, context.f, asce.rsto, asce.tl + 1, false); if (rc > 0) rc = -EFAULT; if (!rc)