aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWanpeng Li <wanpeng.li@hotmail.com>2016-08-30 04:14:01 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2016-09-07 13:34:27 -0400
commitf15a75eedc18e1fece8e01f1a6f7d135e61b0750 (patch)
treea2959368546d3e5a50a522ce99ecdd2507e781f5
parent72e0ae58a0fbded49d6fa80dcca5aaea9eb5a73f (diff)
KVM: nVMX: make emulated nested preemption timer pinned
Commit 61abdbe0bc ("kvm: x86: make lapic hrtimer pinned") pins the emulated lapic timer. This patch does the same for the emulated nested preemption timer to avoid vmexit an unrelated vCPU and the latency of kicking IPI to another vCPU. Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: Radim Krčmář <rkrcmar@redhat.com> Cc: Yunhong Jiang <yunhong.jiang@intel.com> Signed-off-by: Wanpeng Li <wanpeng.li@hotmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--arch/x86/kvm/vmx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index 8d2880466764..ccb0356e3f2b 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -7013,7 +7013,7 @@ static int handle_vmon(struct kvm_vcpu *vcpu)
7013 vmx->nested.vmcs02_num = 0; 7013 vmx->nested.vmcs02_num = 0;
7014 7014
7015 hrtimer_init(&vmx->nested.preemption_timer, CLOCK_MONOTONIC, 7015 hrtimer_init(&vmx->nested.preemption_timer, CLOCK_MONOTONIC,
7016 HRTIMER_MODE_REL); 7016 HRTIMER_MODE_REL_PINNED);
7017 vmx->nested.preemption_timer.function = vmx_preemption_timer_fn; 7017 vmx->nested.preemption_timer.function = vmx_preemption_timer_fn;
7018 7018
7019 vmx->nested.vmxon = true; 7019 vmx->nested.vmxon = true;