]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nVMX: Really make emulated nested preemption timer pinned
authorJim Mattson <jmattson@google.com>
Fri, 8 May 2020 20:36:41 +0000 (13:36 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 15 May 2020 16:26:24 +0000 (12:26 -0400)
commit8708004ff60513ac7b329fe35c0c5ac9bb6d916a
treecbc173186d1c7c7168720070aa42064db5ac3506
parent05d4184eeeb9e75584dc932eeeac4c4de75c7ac4
KVM: nVMX: Really make emulated nested preemption timer pinned

The PINNED bit is ignored by hrtimer_init. It is only considered when
starting the timer.

When the hrtimer isn't pinned to the same logical processor as the
vCPU thread to be interrupted, the emulated VMX-preemption timer
often fails to adhere to the architectural specification.

Fixes: 55c0d6728185d ("KVM: nVMX: make emulated nested preemption timer pinned")
Signed-off-by: Jim Mattson <jmattson@google.com>
Reviewed-by: Peter Shier <pshier@google.com>
Reviewed-by: Oliver Upton <oupton@google.com>
Message-Id: <20200508203643.85477-2-jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c