From: Paolo Bonzini <pbonzini@redhat.com>
To: Wanpeng Li <kernellwp@gmail.com>,
linux-kernel@vger.kernel.org, kvm@vger.kernel.org
Cc: "Wanpeng Li" <wanpeng.li@hotmail.com>,
"Radim Krčmář" <rkrcmar@redhat.com>,
"Yunhong Jiang" <yunhong.jiang@intel.com>
Subject: Re: [PATCH 2/2] KVM: nVMX: make emulated nested preemption timer pinned
Date: Fri, 2 Sep 2016 12:48:16 +0200 [thread overview]
Message-ID: <9612ce34-3a80-94d0-c8d1-d99522d9643b@redhat.com> (raw)
In-Reply-To: <1472544841-4056-2-git-send-email-wanpeng.li@hotmail.com>
On 30/08/2016 10:14, Wanpeng Li wrote:
> From: Wanpeng Li <wanpeng.li@hotmail.com>
>
> 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>
> ---
> arch/x86/kvm/vmx.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
> index 5cede40..090a3f8 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)
> vmx->nested.vmcs02_num = 0;
>
> hrtimer_init(&vmx->nested.preemption_timer, CLOCK_MONOTONIC,
> - HRTIMER_MODE_REL);
> + HRTIMER_MODE_REL_PINNED);
> vmx->nested.preemption_timer.function = vmx_preemption_timer_fn;
>
> vmx->nested.vmxon = true;
>
Queued for 4.9, thanks.
Paolo
next prev parent reply other threads:[~2016-09-02 10:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-30 8:14 [PATCH 1/2] KVM: lapic: fix preemption timer backward when TSC backward Wanpeng Li
2016-08-30 8:14 ` [PATCH 2/2] KVM: nVMX: make emulated nested preemption timer pinned Wanpeng Li
2016-09-02 10:48 ` Paolo Bonzini [this message]
2016-09-02 10:48 ` [PATCH 1/2] KVM: lapic: fix preemption timer backward when TSC backward Paolo Bonzini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9612ce34-3a80-94d0-c8d1-d99522d9643b@redhat.com \
--to=pbonzini@redhat.com \
--cc=kernellwp@gmail.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rkrcmar@redhat.com \
--cc=wanpeng.li@hotmail.com \
--cc=yunhong.jiang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®