]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: s390: call exit_sie() directly on vcpu block/request
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Tue, 12 May 2015 06:41:40 +0000 (08:41 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 2 Jun 2015 07:38:01 +0000 (09:38 +0200)
commitb4c3634ed41f0e07d5bb164ed1f85bbee9ab2b96
tree7ea9c20fc83b663729d8427924df48e4064aa81a
parent0eda43b4a44a355c7e6416e5f20c20576ab48c12
KVM: s390: call exit_sie() directly on vcpu block/request

Thinking about it, I can't find a real use case where we want
to block a VCPU and not kick it out of SIE. (except if we want
to do the same in batch for multiple VCPUs - but that's a micro
optimization)

So let's simply perform the exit_sie() calls directly when setting
the other magic block bits in the SIE.

Otherwise e.g. kvm_s390_set_tod_low() still has other VCPUs running
after that call, working with a wrong epoch.

Fixes: ad0678aa53 ("KVM: s390: provide functions for blocking all CPUs")
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/kvm-s390.c