KVM: nVMX: Migrate the VMX-preemption timer
authorJim Mattson <jmattson@google.com>
Fri, 8 May 2020 20:36:43 +0000 (13:36 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 15 May 2020 16:26:26 +0000 (12:26 -0400)
commit93dff2fed2fb4a513196b7df05742c6fcdfd5178
tree752131d4fa0b06cc34efef6e037f3122e2684059
parentada0098df6569b7f9e9495beb0f1e35718895aa0
KVM: nVMX: Migrate the VMX-preemption timer

The hrtimer used to emulate the VMX-preemption timer must be pinned to
the same logical processor as the vCPU thread to be interrupted if we
want to have any hope of adhering to the architectural specification
of the VMX-preemption timer. Even with this change, the emulated
VMX-preemption timer VM-exit occasionally arrives too late.

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-4-jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/irq.c
arch/x86/kvm/vmx/vmx.c