]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: s390: Use generic VIRT_XFER_TO_GUEST_WORK functions
authorAndrew Donnellan <ajd@linux.ibm.com>
Wed, 26 Nov 2025 05:33:12 +0000 (16:33 +1100)
committerJanosch Frank <frankja@linux.ibm.com>
Fri, 28 Nov 2025 09:11:14 +0000 (10:11 +0100)
commit2bd1337a1295e012e60008ee21a64375e5234e12
treebd38e068fa73a1823af50f60253f66a5712e92eb
parentd0139059e31acd5fea49737558297d801c406638
KVM: s390: Use generic VIRT_XFER_TO_GUEST_WORK functions

Switch to using the generic infrastructure to check for and handle pending
work before transitioning into guest mode.

xfer_to_guest_mode_handle_work() does a few more things than the current
code does when deciding whether or not to exit the __vcpu_run() loop. The
exittime tests from kvm-unit-tests, in my tests, were within a few percent
compared to before this series, which is within noise tolerance.

Co-developed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Andrew Donnellan <ajd@linux.ibm.com>
Acked-by: Janosch Frank <frankja@linux.ibm.com>
[frankja@linux.ibm.com: Removed semicolon]
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
arch/s390/kvm/Kconfig
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/vsie.c