]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc2b9b6efe490dc6fee9e8435654bdf055d129ffa
tree9e300bec50aef907eed3af159066e32870d6f4e2
parentd19a4569a802206bc186418435ac2335c9850580
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