From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Dan Magenheimer <dan.magenheimer@oracle.com>
Cc: Xen-devel <xen-devel@lists.xensource.com>,
kurt.hackel@oracle.com,
Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>,
Keir Fraser <Keir.Fraser@eu.citrix.com>,
chris.mason@oracle.com, Avi Kivity <avi@redhat.com>
Subject: Re: non-emulated rdtsc: a smoking gun!
Date: Thu, 22 Oct 2009 14:24:50 -0700 [thread overview]
Message-ID: <4AE0CDA2.5060106@goop.org> (raw)
In-Reply-To: <b7a6438c-8ed2-43f5-81fe-6f72d47ab1df@default>
On 10/22/09 13:53, Dan Magenheimer wrote:
> I just found a Linux kernel use of rdtsc that
> MAY cause a significant failure if rdtsc is
> unemulated and a poorly timed migration (or
> save/restore) occurs under Xen or KVM.
>
> The problem is that a call to __udelay() --
> or any member of the delay() family -- may
> return prematurely**. Since these functions
> "must guarantee that we wait at least the
> amount of time" specified, there are likely
> unknown kernel circumstances where a
> premature return will cause problems.
> (Disclaimer: I haven't gone through every use
> of every call site of every member of the delay
> function family to prove this.)
>
It won't matter, as they're only used to control timing to external IO
devices. If a domain has a passthrough device, it can't be migrated or
save/restored. Nobody should be using them for software timing.
J
prev parent reply other threads:[~2009-10-22 21:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-22 20:53 non-emulated rdtsc: a smoking gun! Dan Magenheimer
2009-10-22 21:24 ` Jeremy Fitzhardinge [this message]
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=4AE0CDA2.5060106@goop.org \
--to=jeremy@goop.org \
--cc=Keir.Fraser@eu.citrix.com \
--cc=avi@redhat.com \
--cc=chris.mason@oracle.com \
--cc=dan.magenheimer@oracle.com \
--cc=jeremy.fitzhardinge@citrix.com \
--cc=kurt.hackel@oracle.com \
--cc=xen-devel@lists.xensource.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.