From: Paolo Bonzini <pbonzini@redhat.com>
To: Andy Lutomirski <luto@amacapital.net>,
kvm list <kvm@vger.kernel.org>,
Marcelo Tosatti <mtosatti@redhat.com>,
Radim Krcmar <rkrcmar@redhat.com>, X86 ML <x86@kernel.org>
Subject: Re: kvmclock doesn't work, help?
Date: Wed, 9 Dec 2015 22:16:27 +0100 [thread overview]
Message-ID: <56689A2B.6090500@redhat.com> (raw)
In-Reply-To: <CALCETrVZwDddGcW8axAb4PP+YZyfz5TGR9xYwZXv3d_aghLBtA@mail.gmail.com>
On 09/12/2015 22:10, Andy Lutomirski wrote:
> Can we please stop making kvmclock more complex? It's a beast right
> now, and not in a good way. It's far too tangled with the vclock
> machinery on both the host and guest sides, the pvclock stuff is not
> well thought out (even in principle in an ABI sense), and it's never
> been clear to my what problem exactly the kvmclock stuff is supposed
> to solve.
It's supposed to solve the problem that:
- not all hosts have a working TSC
- even if they all do, virtual machines can be migrated (or
saved/restored) to a host with a different TSC frequency
- any MMIO- or PIO-based mechanism to access the current time is orders
of magnitude slower than the TSC and less precise too.
> I'm somewhat tempted to suggest that we delete kvmclock entirely and
> start over. A correctly functioning KVM guest using TSC (i.e.
> ignoring kvmclock entirely) seems to work rather more reliably and
> considerably faster than a kvmclock guest.
If all your hosts have a working TSC and you don't do migration or
save/restore, that's a valid configuration. It's not a good default,
however.
Paolo
next prev parent reply other threads:[~2015-12-09 21:16 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-09 21:10 kvmclock doesn't work, help? Andy Lutomirski
2015-12-09 21:16 ` Paolo Bonzini [this message]
2015-12-09 21:49 ` Andy Lutomirski
2015-12-09 22:12 ` Paolo Bonzini
2015-12-09 22:27 ` Andy Lutomirski
2015-12-09 22:42 ` Paolo Bonzini
2015-12-09 22:43 ` Andy Lutomirski
2015-12-10 21:33 ` Marcelo Tosatti
2015-12-10 21:32 ` Marcelo Tosatti
2015-12-11 21:57 ` Andy Lutomirski
2015-12-11 23:48 ` Marcelo Tosatti
2015-12-14 18:07 ` Andy Lutomirski
2015-12-14 21:47 ` Marcelo Tosatti
2015-12-14 13:44 ` Paolo Bonzini
2015-12-14 22:00 ` Marcelo Tosatti
2015-12-14 22:31 ` Andy Lutomirski
2015-12-14 22:38 ` Marcelo Tosatti
2015-12-15 8:42 ` Paolo Bonzini
2015-12-16 17:48 ` Andy Lutomirski
2015-12-16 18:17 ` Andy Lutomirski
2015-12-16 21:57 ` Marcelo Tosatti
2015-12-17 16:33 ` Andy Lutomirski
2015-12-17 19:08 ` Marcelo Tosatti
2015-12-18 1:12 ` Andy Lutomirski
2015-12-18 11:47 ` Marcelo Tosatti
2015-12-18 19:27 ` Andy Lutomirski
2015-12-18 19:45 ` Marcelo Tosatti
2015-12-18 20:25 ` Andy Lutomirski
2015-12-18 21:49 ` Marcelo Tosatti
2015-12-21 22:49 ` Andy Lutomirski
2015-12-23 19:27 ` Marcelo Tosatti
2015-12-23 23:09 ` Andy Lutomirski
2015-12-19 1:16 ` John Stultz
2015-12-10 21:36 ` Marcelo Tosatti
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=56689A2B.6090500@redhat.com \
--to=pbonzini@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=luto@amacapital.net \
--cc=mtosatti@redhat.com \
--cc=rkrcmar@redhat.com \
--cc=x86@kernel.org \
/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.