diff options
author | David Hildenbrand <dahi@linux.vnet.ibm.com> | 2015-05-12 03:49:14 -0400 |
---|---|---|
committer | Christian Borntraeger <borntraeger@de.ibm.com> | 2015-10-13 09:50:35 -0400 |
commit | 25ed16759660cdfccd4a3cb7d30cce8a797b542a (patch) | |
tree | 4aafb77404f7fede2ac763509169a0f586b21c9e /arch/s390/kvm/kvm-s390.h | |
parent | 5a3d883a59b3fe8dc8775c7a79200a5b11a6761e (diff) |
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>
Diffstat (limited to 'arch/s390/kvm/kvm-s390.h')
-rw-r--r-- | arch/s390/kvm/kvm-s390.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/s390/kvm/kvm-s390.h b/arch/s390/kvm/kvm-s390.h index 3a368d2a6114..cc15ea3a150e 100644 --- a/arch/s390/kvm/kvm-s390.h +++ b/arch/s390/kvm/kvm-s390.h | |||
@@ -231,6 +231,7 @@ int kvm_s390_handle_sigp(struct kvm_vcpu *vcpu); | |||
231 | int kvm_s390_handle_sigp_pei(struct kvm_vcpu *vcpu); | 231 | int kvm_s390_handle_sigp_pei(struct kvm_vcpu *vcpu); |
232 | 232 | ||
233 | /* implemented in kvm-s390.c */ | 233 | /* implemented in kvm-s390.c */ |
234 | void kvm_s390_set_tod_clock(struct kvm *kvm, u64 tod); | ||
234 | long kvm_arch_fault_in_page(struct kvm_vcpu *vcpu, gpa_t gpa, int writable); | 235 | long kvm_arch_fault_in_page(struct kvm_vcpu *vcpu, gpa_t gpa, int writable); |
235 | int kvm_s390_store_status_unloaded(struct kvm_vcpu *vcpu, unsigned long addr); | 236 | int kvm_s390_store_status_unloaded(struct kvm_vcpu *vcpu, unsigned long addr); |
236 | int kvm_s390_store_adtl_status_unloaded(struct kvm_vcpu *vcpu, | 237 | int kvm_s390_store_adtl_status_unloaded(struct kvm_vcpu *vcpu, |