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

[Xen-devel] Re: [PATCH] add timeouts to mini-os

Hi Robert,

Having timeout timers in MiniOS would be very useful indeed (I had a few people asking about that already).

Timers in Xen and Linux are a bit different then your implementation for MiniOS (inspect xen/common/timer.c and <linux>/kernel/timer.c for more detail). The way that Linux/Xen handles timers is slightly more flexible, however the functionality that you could put in Mini-OS timer handler is very limited (you can only wake up a thread/set of threads really). I think we can therefore stick to this solution for now. I'll have a look through the code tomorrow, and let you know if I have any comments.

Thanks.
Gregor

On 1 Oct 2006, at 00:18, Robert Kaiser (FH) wrote:

Hi Gregor,

attached is a patch to mini-os. It removes the debug print of current time (which didnt work anyway) and adds support for timed sleeps. The application code now has a thread which is activated periodically (once every second) by means of the new sleep function and prints out the current time, so the program now actually does what the README says. The idle thread now blocks as long as necessary (i.e. until the nearest timeout expires) instead if the
fixed 10 seconds as before.

Please review it and consider for inclusion.

Cheers

Rob
<minios.patch>


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