All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sean Christopherson <seanjc@google.com>
To: David Woodhouse <dwmw2@infradead.org>
Cc: kvm@vger.kernel.org, pbonzini@redhat.com,
	 Jim Mattson <jmattson@google.com>,
	Simon Veith <sveith@amazon.de>,
	 Jack Allister <jalliste@amazon.co.uk>, paul <paul@xen.org>,
	 Joao Martins <joao.m.martins@oracle.com>
Subject: Re: [PATCH] KVM: x86/xen: Do not corrupt KVM clock in kvm_xen_shared_info_init()
Date: Tue, 9 Apr 2024 17:33:18 -0700	[thread overview]
Message-ID: <ZhXeTvNOByDRTlb4@google.com> (raw)
In-Reply-To: <7e0040f70c629d365e80d13b339a95e0affa6d61.camel@infradead.org>

On Sun, Apr 07, 2024, David Woodhouse wrote:
> From: David Woodhouse <dwmw@amazon.co.uk>
> 
> The KVM clock is an interesting thing. It is defined as "nanoseconds
> since the guest was created", but in practice it runs at two *different*
> rates — or three different rates, if you count implementation bugs.

LOL, nice.

> Definition C should simply be eliminated. Commit 451a707813ae ("KVM:
> x86/xen: improve accuracy of Xen timers") worked around it for the
> specific case of Xen timers, which are defined in terms of the KVM clock
> and suffered from a continually increasing error in timer expiry times.

IIUC, there should probably be a "But that's a problem for a different day" line
after this.  I.e. describing 'C' is purely for context, and removing the
KVM_REQ_MASTERCLOCK_UPDATE request doesn't move the needle on eliminating this
flaw, correct?

  parent reply	other threads:[~2024-04-10  0:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-07 13:15 [PATCH] KVM: x86/xen: Do not corrupt KVM clock in kvm_xen_shared_info_init() David Woodhouse
2024-04-08 11:12 ` Paul Durrant
2024-04-10  0:33 ` Sean Christopherson [this message]
2024-04-10  9:17   ` David Woodhouse

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=ZhXeTvNOByDRTlb4@google.com \
    --to=seanjc@google.com \
    --cc=dwmw2@infradead.org \
    --cc=jalliste@amazon.co.uk \
    --cc=jmattson@google.com \
    --cc=joao.m.martins@oracle.com \
    --cc=kvm@vger.kernel.org \
    --cc=paul@xen.org \
    --cc=pbonzini@redhat.com \
    --cc=sveith@amazon.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.