From: Wanpeng Li <kernellwp@gmail.com>
To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org
Cc: "Paolo Bonzini" <pbonzini@redhat.com>,
"Radim Krčmář" <rkrcmar@redhat.com>,
"Yunhong Jiang" <yunhong.jiang@intel.com>,
"Wanpeng Li" <wanpeng.li@hotmail.com>
Subject: [PATCH RFC V2 0/2] KVM: x86: Support using the VMX preemption timer for APIC Timer periodic/oneshot mode
Date: Wed, 12 Oct 2016 14:52:50 +0800 [thread overview]
Message-ID: <1476255172-3357-1-git-send-email-wanpeng.li@hotmail.com> (raw)
Most windows guests which I have on hand currently still utilize APIC Timer
periodic/oneshot mode instead of APIC Timer tsc-deadline mode:
- windows 2008 server r2
- windows 2012 server r2
- windows 7
- windows 10
This patchset adds the support using the VMX preemption timer for APIC Timer
periodic/oneshot mode.
I add periodic mode testcase to kvm-unit-tests/apic.flat and observed that w/ patch
the latency is ~13% of w/o patch. I think maybe something is still not right in the
patchset. Your comments to improve the patchset is a great appreciated.
v1 -> v2:
* remember the timeout when setting up the timer to get a correct TMCCT
* move apic->lapic_timer.period/tscdeadline caculations to start_apic_timer()
Wanpeng Li (2):
KVM: lapic: introduce start_sw_period() to handle oneshot/periodic mode
KVM: x86: Support using the VMX preemption timer for APIC Timer periodic/oneshot mode
arch/x86/kvm/lapic.c | 166 ++++++++++++++++++++++++++++++++-------------------
arch/x86/kvm/lapic.h | 1 +
2 files changed, 107 insertions(+), 60 deletions(-)
--
1.9.1
next reply other threads:[~2016-10-12 6:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-12 6:52 Wanpeng Li [this message]
2016-10-12 6:52 ` [PATCH RFC V2 1/2] KVM: lapic: introduce start_sw_period() to handle oneshot/periodic mode Wanpeng Li
2016-10-12 6:52 ` [PATCH RFC V2 2/2] KVM: x86: Support using the VMX preemption timer for APIC Timer periodic/oneshot mode Wanpeng Li
2016-10-12 17:41 ` Radim Krčmář
2016-10-13 11:38 ` Wanpeng Li
2016-10-13 11:52 ` Wanpeng Li
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=1476255172-3357-1-git-send-email-wanpeng.li@hotmail.com \
--to=kernellwp@gmail.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pbonzini@redhat.com \
--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