From: Paolo Bonzini <pbonzini@redhat.com>
To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org
Cc: rkrcmar@redhat.com, den@openvz.org, rkagan@virtuozzo.com,
peterhornyack@google.com
Subject: [PATCH v2 0/4] KVM: x86: kvmclock cleanups for Hyper-V TSC page
Date: Mon, 19 Sep 2016 13:39:09 +0200 [thread overview]
Message-ID: <1474285153-4216-1-git-send-email-pbonzini@redhat.com> (raw)
This implements the plan that we discussed at KVM Forum. Patch 3
implements a new function that returns the current value of kvmclock as
read by the guest. The function is then used to provide the Hyper-V
time reference counter. Now that the reference counter is synchronized
with kvmclock, the TSC page can be supported nicely.
Paolo
v2->v3: use TSC page information to compute time reference counter value
fixed case where TSC seq is 0xFFFFFFFE
Paolo Bonzini (4):
KVM: x86: always fill in vcpu->arch.hv_clock
KVM: x86: initialize kvmclock_offset
KVM: x86: introduce get_kvmclock_ns
KVM: x86: Hyper-V tsc page setup
arch/x86/entry/vdso/vclock_gettime.c | 2 +-
arch/x86/include/asm/kvm_host.h | 2 +
arch/x86/include/asm/pvclock.h | 5 +-
arch/x86/kernel/pvclock.c | 2 +-
arch/x86/kvm/hyperv.c | 162 +++++++++++++++++++++++++++++++----
arch/x86/kvm/hyperv.h | 3 +
arch/x86/kvm/x86.c | 158 ++++++++++++++++++++--------------
arch/x86/kvm/x86.h | 6 +-
8 files changed, 253 insertions(+), 87 deletions(-)
--
1.8.3.1
next reply other threads:[~2016-09-19 11:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-19 11:39 Paolo Bonzini [this message]
2016-09-19 11:39 ` [PATCH 1/4] KVM: x86: always fill in vcpu->arch.hv_clock Paolo Bonzini
2016-09-19 16:33 ` Roman Kagan
2016-09-19 11:39 ` [PATCH 2/4] KVM: x86: initialize kvmclock_offset Paolo Bonzini
2016-09-19 11:39 ` [PATCH 3/4] KVM: x86: introduce get_kvmclock_ns Paolo Bonzini
2016-09-19 16:33 ` Roman Kagan
2016-09-19 11:39 ` [PATCH 4/4] KVM: x86: Hyper-V tsc page setup Paolo Bonzini
2016-09-19 16:38 ` Roman Kagan
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=1474285153-4216-1-git-send-email-pbonzini@redhat.com \
--to=pbonzini@redhat.com \
--cc=den@openvz.org \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=peterhornyack@google.com \
--cc=rkagan@virtuozzo.com \
--cc=rkrcmar@redhat.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;
as well as URLs for NNTP newsgroup(s).