diff options
author | Jim Mattson <jmattson@google.com> | 2020-05-08 13:36:43 -0700 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-05-15 12:26:26 -0400 |
commit | 93dff2fed2fb4a513196b7df05742c6fcdfd5178 (patch) | |
tree | 752131d4fa0b06cc34efef6e037f3122e2684059 /arch/x86/include/asm/kvm_host.h | |
parent | ada0098df6569b7f9e9495beb0f1e35718895aa0 (diff) | |
download | linux-stable-93dff2fed2fb4a513196b7df05742c6fcdfd5178.tar.gz linux-stable-93dff2fed2fb4a513196b7df05742c6fcdfd5178.tar.bz2 linux-stable-93dff2fed2fb4a513196b7df05742c6fcdfd5178.zip |
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>
Diffstat (limited to 'arch/x86/include/asm/kvm_host.h')
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index c3906fb2b93f..a3ce391c9e7a 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h @@ -1247,6 +1247,8 @@ struct kvm_x86_ops { bool (*apic_init_signal_blocked)(struct kvm_vcpu *vcpu); int (*enable_direct_tlbflush)(struct kvm_vcpu *vcpu); + + void (*migrate_timers)(struct kvm_vcpu *vcpu); }; struct kvm_x86_nested_ops { |