Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

KVM: VMX: Stop the preemption timer during vCPU reset

The hrtimer which is used to emulate lapic timer is stopped during
vcpu reset, preemption timer should do the same.

Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Wanpeng Li <wanpengli@tencent.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

authored by

Wanpeng Li and committed by
Paolo Bonzini
95c06540 2b0911d1

+1
+1
arch/x86/kvm/vmx/vmx.c
··· 4162 4162 4163 4163 vcpu->arch.microcode_version = 0x100000000ULL; 4164 4164 vmx->vcpu.arch.regs[VCPU_REGS_RDX] = get_rdx_init_val(); 4165 + vmx->hv_deadline_tsc = -1; 4165 4166 kvm_set_cr8(vcpu, 0); 4166 4167 4167 4168 if (!init_event) {