]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit09847860cbac133f16d7288fb27ecfe65859f9e4
tree752131d4fa0b06cc34efef6e037f3122e2684059
parent4445578f54ac4053a61e6431faf3d95a7d536501
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