WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] [RFC] Building guests on monotonic Xen system ti

To: "dan.magenheimer@xxxxxxxxxx" <dan.magenheimer@xxxxxxxxxx>, "Xen-Devel (E-mail)" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] [RFC] Building guests on monotonic Xen system time
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Sat, 24 May 2008 08:34:17 +0100
Cc: Dave Winchell <dwinchell@xxxxxxxxxxxxxxx>
Delivery-date: Sat, 24 May 2008 00:34:24 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20080523164452796.00000001192@djm-pc>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Aci3epqdgAqFeBKUStuokRynVQBZpQAIWysQAKwM7UMAR/pTwAAfCU33AA4gvEAAAXDh5QA/ZygwABMZdK0=
Thread-topic: [Xen-devel] [PATCH] [RFC] Building guests on monotonic Xen system time
User-agent: Microsoft-Entourage/11.4.0.080122
On 23/5/08 23:44, "Dan Magenheimer" <dan.magenheimer@xxxxxxxxxx> wrote:

> Here's another option:  I think delay_for_missed_ticks is
> the only mode where time must be set backwards.  All of the
> other modes track wallclock.  It looks possible that we
> could enforce monotonicity for the other three modes and
> not enforce it for delay_for_missed_ticks (which is,
> unfortunately, the default).
> 
> If this is acceptable to you (and you don't disagree with
> my "only mode...set backwards" conjecture), I'll try to
> code a patch for this.

I agree with your analysis. I couldn't remember if any modes other than 0
would require non-monotonic time across VCPUs, but it does appear that this
property is exclusive to mode 0.

> P.S. I think the answer is no, but is there any way to specify
> gang-scheduling for a domain?  If so, we could say if your
> OS is non-resilient to preemption and your application requires
> time monotonicity, you must specify gang scheduling.

There isn't currently a way to request gang scheduling. I think that is a
second step anyway. It sounds like you could simply turn off your
monotonicity checks for timer mode 0 and I'll be happy.

I have a pretty clear vision of what I want now, so I will make the
necessary adjustments to the patch. Then we can go from there if you think
further modifications are required.

 -- Keir



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel