===================================================================
@@ -4538,15 +4538,9 @@
goto out;
r = 0;
- /*
- * TODO: userspace has to take care of races with VCPU_RUN, so
- * kvm_gen_update_masterclock() can be cut down to locked
- * pvclock_update_vm_gtod_copy().
- */
- kvm_gen_update_masterclock(kvm);
now_ns = get_kvmclock_ns(kvm);
kvm->arch.kvmclock_offset += user_ns.clock - now_ns;
- kvm_make_all_cpus_request(kvm, KVM_REQ_CLOCK_UPDATE);
+ kvm_gen_update_masterclock(kvm);
break;
}
case KVM_GET_CLOCK: {
Revert 0bc48bea36d178aea9d7f83f66a1b397cec9db5c, now that using CLOCK_MONOTONIC_RAW as the clock base does not require the guest to be stopped. This is good for testing CLOCK_MONOTONIC_RAW updates for the other cases. Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> --- arch/x86/kvm/x86.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)