From: Sean Christopherson <seanjc@google.com>
To: David Woodhouse <dwmw2@infradead.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>,
Vitaly Kuznetsov <vkuznets@redhat.com>,
Wanpeng Li <wanpengli@tencent.com>,
Jim Mattson <jmattson@google.com>, Joerg Roedel <joro@8bytes.org>,
kvm@vger.kernel.org, linux-kernel@vger.kernel.org,
Suleiman Souhlal <suleiman@google.com>,
Anton Romanov <romanton@google.com>
Subject: Re: [PATCH] KVM: x86: Don't snapshot "max" TSC if host TSC is constant
Date: Fri, 25 Feb 2022 16:21:24 +0000 [thread overview]
Message-ID: <YhkCBH9fsqrJYMca@google.com> (raw)
In-Reply-To: <7086443d5e1e21d72a3d5c386c16f0c07d37a0a8.camel@infradead.org>
On Fri, Feb 25, 2022, David Woodhouse wrote:
> On Fri, 2022-02-25 at 13:10 +0100, Paolo Bonzini wrote:
> >
> > Queued, but I'd rather have a subject that calls out that max_tsc_khz
> > needs a replacement at vCPU creation time. In fact, the real change
> > (and bug, and fix) is in kvm_arch_vcpu_create(), while the subject
> > mentions only the change in kvm_timer_init().
>
> In
> https://lore.kernel.org/kvm/e7be32b06676c7ebf415d9deea5faf50aa8c0785.camel@infradead.org/T/
> last night I was coming round to the idea that we might want a KVM-wide
> default frequency which is settable from userspace and is used instead
> of max_tsc_khz anyway.
>
> I also have questions about the use case for the above patch.... if
> this is a clean boot and you're just starting to host guests, surely we
> can wait for the time it takes for the TSC synchronization to complete?
KVM is built into the kernel in their case, the vmx_init() => kvm_init() gets
automatically called during boot. The VMs aren't started until well after
synchronization has completed, but KVM has already snapshotted the "bad" value.
next prev parent reply other threads:[~2022-02-25 16:21 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-25 1:39 [PATCH] KVM: x86: Don't snapshot "max" TSC if host TSC is constant Sean Christopherson
2022-02-25 12:10 ` Paolo Bonzini
2022-02-25 12:20 ` David Woodhouse
2022-02-25 16:21 ` Sean Christopherson [this message]
2022-02-25 16:34 ` David Woodhouse
2022-04-12 17:38 ` Anton Romanov
2022-04-13 8:31 ` Paolo Bonzini
2022-02-25 12:52 ` David Woodhouse
2022-02-25 16:40 ` Sean Christopherson
2022-02-25 16:51 ` 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=YhkCBH9fsqrJYMca@google.com \
--to=seanjc@google.com \
--cc=dwmw2@infradead.org \
--cc=jmattson@google.com \
--cc=joro@8bytes.org \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=romanton@google.com \
--cc=suleiman@google.com \
--cc=vkuznets@redhat.com \
--cc=wanpengli@tencent.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 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.