KVM: s390: factor out and fix setting of guest TOD clock
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Tue, 12 May 2015 07:49:14 +0000 (09:49 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 13 Oct 2015 13:50:35 +0000 (15:50 +0200)
commit25ed16759660cdfccd4a3cb7d30cce8a797b542a
tree4aafb77404f7fede2ac763509169a0f586b21c9e
parent5a3d883a59b3fe8dc8775c7a79200a5b11a6761e
KVM: s390: factor out and fix setting of guest TOD clock

Let's move that whole logic into one function. We now always use unsigned
values when calculating the epoch (to avoid over/underflow defined).
Also, we always have to get all VCPUs out of SIE before doing the update
to avoid running differing VCPUs with different TODs.

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
arch/s390/kvm/kvm-s390.h
arch/s390/kvm/priv.c