linux_dsm_epyc7002/arch/s390/kvm
Carsten Otte 2668dab794 KVM: s390: Fix memory slot versus run - v3
This patch fixes an incorrectness in the kvm backend for s390.
In case virtual cpus are being created before the corresponding
memory slot is being registered, we need to update the sie
control blocks for the virtual cpus.

*updates in v3*
In consideration of the s390 memslot constraints locking was changed
to trylock. These locks should never be held, as vcpu's can't run without
the single memslot we just assign when running this code. To ensure this
never deadlocks in case other code changes the code uses trylocks and bail
out if it can't get all locks.

Additionally most of the discussed special conditions for s390 like
only one memslot and no user_alloc are now checked for validity in
kvm_arch_set_memory_region.

Reported-by: Mijo Safradin <mijo@linux.vnet.ibm.com>
Signed-off-by: Carsten Otte <cotte@de.ibm.com>
Signed-off-by: Christian Ehrhardt <ehrhardt@de.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
2009-06-10 11:48:55 +03:00
..
diag.c [S390] Use unsigned long long for u64 on 64bit. 2009-01-09 12:15:07 +01:00
gaccess.h KVM: s390: Change guestaddr type in gaccess 2008-07-27 11:35:57 +03:00
intercept.c KVM: s390: Fix problem state check for b2 intercepts 2009-03-24 11:03:07 +02:00
interrupt.c KVM: Fix interrupt unhalting a vcpu when it shouldn't 2009-06-10 11:48:33 +03:00
Kconfig KVM: Add CONFIG_HAVE_KVM_IRQCHIP 2009-03-24 11:03:02 +02:00
kvm-s390.c KVM: s390: Fix memory slot versus run - v3 2009-06-10 11:48:55 +03:00
kvm-s390.h KVM: s390: Fix problem state check for b2 intercepts 2009-03-24 11:03:07 +02:00
Makefile KVM: s390: intercepts for diagnose instructions 2008-04-27 12:00:46 +03:00
priv.c KVM: s390: Fix problem state check for b2 intercepts 2009-03-24 11:03:07 +02:00
sie64a.S KVM: s390: arch backend for the kvm kernel module 2008-04-27 12:00:42 +03:00
sigp.c KVM: s390: Fix printk on SIGP set arch 2009-03-24 11:03:07 +02:00