KVM: s390: Fix FOLL_*/FAULT_FLAG_* confusion
authorClaudio Imbrenda <imbrenda@linux.ibm.com>
Mon, 25 Aug 2025 15:18:31 +0000 (17:18 +0200)
committerJanosch Frank <frankja@linux.ibm.com>
Tue, 9 Sep 2025 08:17:39 +0000 (08:17 +0000)
commit5f9df945d4e862979b50e4ecaba3dc81fb06e8ed
treeab44ab90a20ad425ab630fa0ab7bd5a8a3259aab
parent185d903064f8680c2de43514c94fddc0d75ed00a
KVM: s390: Fix FOLL_*/FAULT_FLAG_* confusion

Pass the right type of flag to vcpu_dat_fault_handler(); it expects a
FOLL_* flag (in particular FOLL_WRITE), but FAULT_FLAG_WRITE is passed
instead.

This still works because they happen to have the same integer value,
but it's a mistake, thus the fix.

Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Fixes: 05066cafa925 ("s390/mm/fault: Handle guest-related program interrupts in KVM")
Acked-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Steffen Eiden <seiden@linux.ibm.com>
Reviewed-by: Christoph Schlameuss <schlameuss@linux.ibm.com>
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
arch/s390/kvm/kvm-s390.c