linux_dsm_epyc7002/arch/s390/kvm
Christoffer Dall 9b062471e5 KVM: Move vcpu_load to arch-specific kvm_arch_vcpu_ioctl
Move the calls to vcpu_load() and vcpu_put() in to the architecture
specific implementations of kvm_arch_vcpu_ioctl() which dispatches
further architecture-specific ioctls on to other functions.

Some architectures support asynchronous vcpu ioctls which cannot call
vcpu_load() or take the vcpu->mutex, because that would prevent
concurrent execution with a running VCPU, which is the intended purpose
of these ioctls, for example because they inject interrupts.

We repeat the separate checks for these specifics in the architecture
code for MIPS, S390 and PPC, and avoid taking the vcpu->mutex and
calling vcpu_load for these ioctls.

Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2017-12-14 09:26:58 +01:00
..
diag.c KVM: s390: Remove redundant license text 2017-12-06 09:18:42 +01:00
gaccess.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
gaccess.h KVM: s390: Remove redundant license text 2017-12-06 09:18:42 +01:00
guestdbg.c KVM: s390: Remove redundant license text 2017-12-06 09:18:42 +01:00
intercept.c KVM: s390: Remove redundant license text 2017-12-06 09:18:42 +01:00
interrupt.c KVM: s390: Remove redundant license text 2017-12-06 09:18:42 +01:00
irq.h KVM: s390: Remove redundant license text 2017-12-06 09:18:42 +01:00
Kconfig License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
kvm-s390.c KVM: Move vcpu_load to arch-specific kvm_arch_vcpu_ioctl 2017-12-14 09:26:58 +01:00
kvm-s390.h KVM: s390: Remove redundant license text 2017-12-06 09:18:42 +01:00
Makefile KVM: s390: Remove redundant license text 2017-12-06 09:18:42 +01:00
priv.c KVM: s390: Fix skey emulation permission check 2017-12-06 09:18:43 +01:00
sigp.c KVM: s390: Remove redundant license text 2017-12-06 09:18:42 +01:00
trace-s390.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01: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: Remove redundant license text 2017-12-06 09:18:42 +01:00