All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Dan Magenheimer <dan.magenheimer@oracle.com>
Cc: "Xen-Devel (E-mail)" <xen-devel@lists.xensource.com>,
	Keir Fraser <keir.fraser@eu.citrix.com>
Subject: Re: [PATCH] replace rdtsc emulation-vs-native xen boot option with per-domain (hypervisor part)
Date: Mon, 05 Oct 2009 16:15:18 -0700	[thread overview]
Message-ID: <4ACA7E06.80902@goop.org> (raw)
In-Reply-To: <8831fe4f-9002-40b7-8bef-065c505f6b67@default>

On 09/27/09 12:22, Dan Magenheimer wrote:
> Switches rdtsc emulation from boot option to per-domain
> and enables it by default.  Also removes hvm tsc scaling
> as it is no longer necessary.
>
>   

I've run into a few problems from this patch:

   1. I'm seeing occasional messages on the console "hrtimer: interrupt
      too slow, forcing clock min delta to 9001953 ns" which indicates
      that the kernel is noticing that timer operations are taking too long.
   2. A domain can't turn on and off its own tsc emulation state.  I'm
      working on vsyscall support for pvclock (done, aside from this
      issue), so I need native tsc in usermode (or at least, one with
      the same parameters in kernel and userspace).  I was getting very
      confused because I didn't expect emulation to *only* apply to
      usermode; I was expecting it to be done uniformly to both user and
      kernel tscs, with appropriate adjustments to the vcpu_time_info
      values.
   3. The 's' debug key never seems to count any usermode rdtsc
      instructions, even if I write a little program to explicitly
      exercise them.  (Fix below)

All in 64-bit PV domains.

Thanks,
    J

diff -r 1dc86d83b352 xen/arch/x86/time.c
--- a/xen/arch/x86/time.c	Fri Oct 02 17:01:26 2009 -0700
+++ b/xen/arch/x86/time.c	Mon Oct 05 16:13:15 2009 -0700
@@ -1476,7 +1476,7 @@
     }
     else
     { 
-        v->domain->arch.vtsc_kerncount++;
+        v->domain->arch.vtsc_usercount++;
         spin_lock(&v->domain->arch.vtsc_lock);
         now = get_s_time() + v->domain->arch.vtsc_stime_offset;
         if ( (int64_t)(now - v->domain->arch.vtsc_last) > 0 )

  parent reply	other threads:[~2009-10-05 23:15 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-27 19:22 [PATCH] replace rdtsc emulation-vs-native xen boot option with per-domain (hypervisor part) Dan Magenheimer
2009-09-27 21:39 ` Keir Fraser
2009-09-27 23:19   ` Dan Magenheimer
2009-09-28  7:25     ` Keir Fraser
2009-09-28  9:04       ` Keir Fraser
2009-09-28 15:48         ` Dan Magenheimer
2009-09-28 16:07           ` Keir Fraser
2009-09-28 16:24             ` Dan Magenheimer
2009-09-28 19:44               ` Dan Magenheimer
2009-09-28 20:55                 ` Keir Fraser
2009-09-28  8:22     ` Zhang, Xiantao
2009-09-28 15:13       ` Dan Magenheimer
2009-09-28 22:24 ` Jeremy Fitzhardinge
2009-09-28 22:43   ` Dan Magenheimer
2009-09-28 23:10     ` Jeremy Fitzhardinge
2009-09-28 23:36       ` Dan Magenheimer
2009-09-29  0:27         ` Ian Pratt
2009-09-29  1:42           ` Zhang, Xiantao
2009-09-29  3:13             ` Dan Magenheimer
2009-09-29 17:24               ` Jeremy Fitzhardinge
2009-09-29 16:44         ` Jeremy Fitzhardinge
2009-09-29 17:34           ` Dan Magenheimer
2009-09-29 19:01             ` Jeremy Fitzhardinge
2009-09-29 23:45               ` Dan Magenheimer
2009-09-30  0:41                 ` Jeremy Fitzhardinge
2009-10-05 23:15 ` Jeremy Fitzhardinge [this message]
2009-10-05 23:42   ` Dan Magenheimer
2009-10-06  0:20     ` Jeremy Fitzhardinge
2009-10-06  1:43       ` Dan Magenheimer
2009-10-06  4:56         ` Jeremy Fitzhardinge
2009-10-06  7:07         ` Keir Fraser
2009-10-06  9:09           ` Keir Fraser
2009-10-06 13:49             ` Dan Magenheimer
2009-10-06 13:59               ` Keir Fraser
2009-10-08 23:35                 ` Dan Magenheimer
2009-11-05 17:08                 ` Dan Magenheimer
2009-11-06  7:01                   ` Keir Fraser

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=4ACA7E06.80902@goop.org \
    --to=jeremy@goop.org \
    --cc=dan.magenheimer@oracle.com \
    --cc=keir.fraser@eu.citrix.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.