From: Roman Kagan <rkagan@virtuozzo.com>
To: Marcelo Tosatti <mtosatti@redhat.com>
Cc: <kvm@vger.kernel.org>, Paolo Bonzini <pbonzini@redhat.com>,
"Denis V. Lunev" <den@openvz.org>
Subject: Re: [PATCH kvm-unit-tests v2] KVM: x86: add hyperv clock test case
Date: Mon, 30 May 2016 21:09:58 +0300 [thread overview]
Message-ID: <20160530180957.GA4993@rkaganb.sw.ru> (raw)
In-Reply-To: <20160529222924.GB6738@amt.cnet>
On Sun, May 29, 2016 at 07:29:27PM -0300, Marcelo Tosatti wrote:
> On Wed, May 25, 2016 at 09:30:02PM +0300, Roman Kagan wrote:
> > On Mon, May 23, 2016 at 08:44:03PM -0300, Marcelo Tosatti wrote:
> > > On Mon, May 23, 2016 at 06:55:06PM -0300, Marcelo Tosatti wrote:
> > > which fails once you run
> > >
> > > void main(void)
> > > {
> > > int ret;
> > > struct timex tx;
> > > char *ptr;
> > >
> > > memset((void*)&tx, 0, sizeof(tx));
> > >
> > > tx.freq = -6553600;
> > > //tx.freq = -237507;
> > > tx.modes = ADJ_FREQUENCY;
> > > ret = adjtimex(&tx);
> >
> > Right, which is a problem with kvm-clock too (as I wrote in another
> > thread, pvclock_gtod_data updates don't currently trigger per-VM
> > masterclock updates). I'm still struggling through the multiple lengthy
> > discussions trying to figure out if it's a bug or a feature...
>
> Its a bug, i am writing an improvement based on Paolo's change to
> update the multiplier.
>
> But the hyperv tsc reference page patches should not depend on it.
Unfortunately it does: since hyperv tsc reference page doesn't have
seqlock semantics, it's emulated (per Paolo's suggestion) by marking the
contents invalid with seqcount == 0, which makes Windows use MSR-based
clock. And the two clocks are not expected to diverge.
Roman.
next prev parent reply other threads:[~2016-05-30 18:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-21 17:21 [PATCH kvm-unit-tests v2] KVM: x86: add hyperv clock test case Roman Kagan
2016-05-23 21:55 ` Marcelo Tosatti
2016-05-23 23:44 ` Marcelo Tosatti
2016-05-25 18:30 ` Roman Kagan
2016-05-29 22:29 ` Marcelo Tosatti
2016-05-30 18:09 ` Roman Kagan [this message]
2016-05-24 10:41 ` Paolo Bonzini
2016-05-24 10:57 ` 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=20160530180957.GA4993@rkaganb.sw.ru \
--to=rkagan@virtuozzo.com \
--cc=den@openvz.org \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@redhat.com \
--cc=pbonzini@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