All of lore.kernel.org
 help / color / mirror / Atom feed
From: Keir Fraser <keir.fraser@eu.citrix.com>
To: Dan Magenheimer <dan.magenheimer@oracle.com>,
	"Xen-Devel (E-mail)" <xen-devel@lists.xensource.com>
Subject: Re: [PATCH] pvcpuid: mask TSC invariant bit for various circumstances
Date: Wed, 28 Oct 2009 07:16:13 +0000	[thread overview]
Message-ID: <C70DA03D.189B8%keir.fraser@eu.citrix.com> (raw)
In-Reply-To: <bae0b274-34e9-48f8-b689-440f61714909@default>

On 27/10/2009 22:03, "Dan Magenheimer" <dan.magenheimer@oracle.com> wrote:

> So after nack'ing you seem to be trying to convince me
> that the patch is fine.  What was your concern?

Your patch only affected PV domUs; not dom0 nor HVM domUs. Further it was
probably implemented in the wrong place -- this policy ought to be
expressible in xc_cpuid_x86.c. This has the advantage it can be overridden
in domain config files, just like any other CPUID bit. Only dom0 policy has
to be hardcoded in the hypervisor itself.

> Would you consider it a good solution for returning slightly
> larger pieces of information, more than one bit but small
> enough to fit in eax+ebx+ecx+edx?

Very likely, yes.

> A) Xen is responsible for correctness but will provide
>    native rdtsc performance whenever feasible; and

If you can do this correctly, why would anyone use the always-emulate mode?

> B) Xen is NOT responsible for correctness, rdtsc will
>    NEVER be emulated, but Xen will provide sufficient
>    information (via rdtscp and pvclock info) to ensure
>    an app can always synthesize a correct timestamp,
>    even across migration

This seems like an extension which could be applicable to any TSC mode,
rather than a new mode in its own right.

 -- Keir

  reply	other threads:[~2009-10-28  7:16 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-26 23:12 [PATCH] pvcpuid: mask TSC invariant bit for various circumstances Dan Magenheimer
2009-10-27  0:22 ` Keir Fraser
2009-10-27  1:09   ` Dan Magenheimer
2009-10-27  7:31     ` Keir Fraser
2009-10-27 17:03       ` Dan Magenheimer
2009-10-27 17:16         ` Keir Fraser
2009-10-27 20:40           ` Dan Magenheimer
2009-10-27 20:58             ` Keir Fraser
2009-10-27 22:03               ` Dan Magenheimer
2009-10-28  7:16                 ` Keir Fraser [this message]
2009-10-28 16:27                   ` Dan Magenheimer
2009-10-28 16:38                     ` Jan Beulich
2009-10-28 16:50                       ` Dan Magenheimer
2009-10-28 17:29                         ` Keir Fraser
2009-10-29 22:07                     ` Jeremy Fitzhardinge
2009-10-29 22:17                       ` Dan Magenheimer

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=C70DA03D.189B8%keir.fraser@eu.citrix.com \
    --to=keir.fraser@eu.citrix.com \
    --cc=dan.magenheimer@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.