From: Marcelo Tosatti <mtosatti@redhat.com>
To: Jan Kiszka <jan.kiszka@siemens.com>
Cc: qemu-devel <qemu-devel@nongnu.org>, kvm <kvm@vger.kernel.org>
Subject: Re: [Qemu-devel] qemu-kvm upstreaming: Do we need -no-kvm-pit and -no-kvm-pit-reinjection semantics?
Date: Thu, 19 Jan 2012 15:53:00 -0200 [thread overview]
Message-ID: <20120119175300.GE11381@amt.cnet> (raw)
In-Reply-To: <4F1854F9.6030400@siemens.com>
On Thu, Jan 19, 2012 at 06:38:01PM +0100, Jan Kiszka wrote:
> On 2012-01-19 18:25, Marcelo Tosatti wrote:
> > On Thu, Jan 19, 2012 at 09:33:51AM +0100, Jan Kiszka wrote:
> >> Hi all,
> >>
> >> I've finished a first version of cleaned-up in-kernel KVM PIT support.
> >> That will be rolled out once the base support for irqchip has been merged.
> >>
> >> I'm now wondering if and how to model two control knobs we have in qemu-kvm:
> >>
> >> o -no-kvm-pit, ie. disable the in-kernel PIT even when {A,IOA,}PIC
> >> are kernel based (default: off, ie. use in-kernel PIT)
> >
> > It can be useful for debugging.
>
> When was it last? The kernel model should be stable by now, just
> possibly incomplete. But then there is still the full emulation in user
> mode, available via kernel_irqchip=off.
>
> We can control it, the question is if we really need the granularity.
Right, that should be enough.
>
> >
> >> o -no-kvm-pit-reinjection, ie. control over the lost ticks reinjection
> >> logic in the kernel (default: off, ie. do reinject)
> >
> > If the guest kernel does not compensate for lost ticks, reinjection is
> > needed. Otherwise, it might cause problems.
>
> That's why it's /on/ by default?
Its on by default because it was the default before the option
was introduced.
> What problems does it cause, and in which scenarios? Can't they be
> fixed?
If the guest compensates for lost ticks, and KVM reinjects them, guest
time advances faster then it should, to the extent where NTP fails to
correct it. This is the case with RHEL4.
But for example v2.4 kernel (or Windows with non-acpi HAL) do not
compensate. In that case you want KVM to reinject.
I don't know of any other way to fix this.
next prev parent reply other threads:[~2012-01-19 17:54 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-19 8:33 [Qemu-devel] qemu-kvm upstreaming: Do we need -no-kvm-pit and -no-kvm-pit-reinjection semantics? Jan Kiszka
2012-01-19 17:25 ` Marcelo Tosatti
2012-01-19 17:38 ` Jan Kiszka
2012-01-19 17:53 ` Marcelo Tosatti [this message]
2012-01-19 18:01 ` Jan Kiszka
2012-01-20 10:14 ` Marcelo Tosatti
2012-01-20 10:22 ` Jan Kiszka
2012-01-20 10:25 ` Daniel P. Berrange
2012-01-20 11:13 ` Jan Kiszka
2012-01-20 11:45 ` Daniel P. Berrange
2012-01-20 12:00 ` Jan Kiszka
2012-01-20 12:42 ` Daniel P. Berrange
2012-01-20 12:51 ` Jan Kiszka
2012-01-20 12:54 ` Daniel P. Berrange
2012-01-20 13:02 ` Jan Kiszka
2012-01-20 13:06 ` Daniel P. Berrange
2012-01-20 10:39 ` Jamie Lokier
2012-01-20 11:13 ` Jan Kiszka
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=20120119175300.GE11381@amt.cnet \
--to=mtosatti@redhat.com \
--cc=jan.kiszka@siemens.com \
--cc=kvm@vger.kernel.org \
--cc=qemu-devel@nongnu.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 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).