linux/arch/s390/kvm
Claudio Imbrenda 0a28e06575 KVM: s390: Fix KVM_S390_VCPU_FAULT ioctl
A previous commit changed the behaviour of the KVM_S390_VCPU_FAULT
ioctl. The current (wrong) implementation will trigger a guest
addressing exception if the requested address lies outside of a
memslot, unless the VM is UCONTROL.

Restore the previous behaviour by open coding the fault-in logic.

Fixes: 3762e905ec ("KVM: s390: use __kvm_faultin_pfn()")
Acked-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Reviewed-by: Steffen Eiden <seiden@linux.ibm.com>
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
2026-03-26 16:12:38 +01:00
..
Kconfig KVM: remove CONFIG_KVM_GENERIC_MMU_NOTIFIER 2026-02-28 15:31:35 +01:00
Makefile KVM: s390: Switch to new gmap 2026-02-04 17:00:10 +01:00
dat.c KVM: s390: Fix gmap_link() 2026-03-26 16:12:13 +01:00
dat.h KVM: s390: Correctly handle guest mappings without struct page 2026-03-26 16:12:18 +01:00
diag.c KVM: s390: Switch to new gmap 2026-02-04 17:00:10 +01:00
faultin.c KVM: s390: Add helper functions for fault handling 2026-02-04 17:00:09 +01:00
faultin.h KVM: s390: Add helper functions for fault handling 2026-02-04 17:00:09 +01:00
gaccess.c KVM: s390: vsie: Fix guest page tables protection 2026-03-26 16:12:34 +01:00
gaccess.h KVM: s390: Switch to new gmap 2026-02-04 17:00:10 +01:00
gmap.c KVM: s390: vsie: Fix unshadowing while shadowing 2026-03-26 16:12:30 +01:00
gmap.h KVM: s390: Correctly handle guest mappings without struct page 2026-03-26 16:12:18 +01:00
guestdbg.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
intercept.c KVM: s390: Switch to new gmap 2026-02-04 17:00:10 +01:00
interrupt.c KVM: s390: log machine checks more aggressively 2026-03-16 16:56:39 +01:00
kvm-s390.c KVM: s390: Fix KVM_S390_VCPU_FAULT ioctl 2026-03-26 16:12:38 +01:00
kvm-s390.h KVM: s390: Switch to new gmap 2026-02-04 17:00:10 +01:00
pci.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
pci.h KVM: s390: Mark __kvm_s390_init() and its descendants as __init 2022-12-29 15:41:22 -05:00
priv.c KVM: s390: Switch to new gmap 2026-02-04 17:00:10 +01:00
pv.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
sigp.c KVM: s390: Refactor kvm_is_error_gpa() into kvm_is_gpa_in_memslot() 2024-02-20 07:37:45 -08:00
trace-s390.h KVM: s390: Don't use %pK through tracepoints 2025-03-17 08:55:46 +00:00
trace.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
vsie.c KVM: s390: vsie: Fix refcount overflow for shadow gmaps 2026-03-26 16:12:25 +01:00