KVM: x86: reduce pvclock_gtod_sync_lock critical sections
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 25 Mar 2021 18:05:11 +0000 (14:05 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 1 Apr 2021 09:14:19 +0000 (05:14 -0400)
commitc2c647f91aec192f45f0849c225f134183cf4e90
tree9e300bec50aef907eed3af159066e32870d6f4e2
parent6ebae23c072bb865048d2b2500ee1fae71944263
KVM: x86: reduce pvclock_gtod_sync_lock critical sections

There is no need to include changes to vcpu->requests into
the pvclock_gtod_sync_lock critical section.  The changes to
the shared data structures (in pvclock_update_vm_gtod_copy)
already occur under the lock.

Cc: David Woodhouse <dwmw@amazon.co.uk>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c