[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <d7b46861-2787-f8c0-fa84-5368235db830@redhat.com>
Date: Wed, 11 Sep 2019 18:06:01 +0200
From: Paolo Bonzini <pbonzini@...hat.com>
To: Wanpeng Li <kernellwp@...il.com>, linux-kernel@...r.kernel.org,
kvm@...r.kernel.org
Cc: Radim Krčmář <rkrcmar@...hat.com>
Subject: Re: [PATCH 2/2] KVM: VMX: Stop the preemption timer during vCPU reset
On 05/09/19 08:26, Wanpeng Li wrote:
> From: Wanpeng Li <wanpengli@...cent.com>
>
> The hrtimer which is used to emulate lapic timer is stopped during
> vcpu reset, preemption timer should do the same.
>
> Cc: Paolo Bonzini <pbonzini@...hat.com>
> Cc: Radim Krčmář <rkrcmar@...hat.com>
> Signed-off-by: Wanpeng Li <wanpengli@...cent.com>
> ---
> arch/x86/kvm/vmx/vmx.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c
> index 570a233..f794929 100644
> --- a/arch/x86/kvm/vmx/vmx.c
> +++ b/arch/x86/kvm/vmx/vmx.c
> @@ -4162,6 +4162,7 @@ static void vmx_vcpu_reset(struct kvm_vcpu *vcpu, bool init_event)
>
> vcpu->arch.microcode_version = 0x100000000ULL;
> vmx->vcpu.arch.regs[VCPU_REGS_RDX] = get_rdx_init_val();
> + vmx->hv_deadline_tsc = -1;
> kvm_set_cr8(vcpu, 0);
>
> if (!init_event) {
>
Queued both, thanks.
Paolo
Powered by blists - more mailing lists