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-ia64-devel

RE: [Xen-ia64-devel] machine ITM = nearest guest ITM vs. full guesttime

To: "Dong, Eddie" <eddie.dong@xxxxxxxxx>
Subject: RE: [Xen-ia64-devel] machine ITM = nearest guest ITM vs. full guesttime virtualization
From: "Magenheimer, Dan (HP Labs Fort Collins)" <dan.magenheimer@xxxxxx>
Date: Sun, 1 May 2005 19:07:21 -0700
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 02 May 2005 02:06:53 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: DIscussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcVNYTbiS1g8dJcOT9aDwf6uWGSJAwAnrY6QAA5pBSAAEa0J4AAKTeQAAARAyhA=
Thread-topic: [Xen-ia64-devel] machine ITM = nearest guest ITM vs. full guesttime virtualization
> > Yes, that's the difference.  I use ac_timer only for
> > scheduling (ITC==XenITM).  I don't even need to use it
> > there but it is convenient for interfacing to the Xen
> > scheduling code.
> Yes it can work, but we are deviating from X86 XEN more. Any 
> strategy in deviation from X86? I think this deviation is not 
> necessary.

The timer mechanisms are sufficiently different between X86
and ia64 (and other architectures) that it may make sense
for ac_timer.c to be moved to archdep code.

> > So, yes, when switching from domainA to domainB, if a significant
> > amount of time has transpired since domainB ran, it's highly
> > likely that the first instruction that will be executed by
> > domainB will be in the IVT at the interrupt vector to handle
> > a clock tick.
> The problem is how you know domain B transpired a significant
> amount of time without extra data structure? I mean HV needs 
> to track last guest ITC and ITM to know there is condition 
> for timer IRQ to fire. If you would like to track the last 
> guest ITC, the design will be much like same. Maybe you can 
> give more comments after you saw the code.

If you think of the "Xen ITC" as the official ITC, domain switch
from A to B requires adding the offset of domainA to return to
Xen ITC, then subtracting the offset of domainB to obtain domainB's
ITC.

I think this works and is very simple... but as I said, this hasn't
been tested because Linux doesn't do it.

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