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] event priority

To: "Keir Fraser" <Keir.Fraser@xxxxxxxxxxxx>
Subject: [Xen-devel] event priority
From: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
Date: Mon, 10 Apr 2006 22:31:26 +0800
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 10 Apr 2006 07:33:18 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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: AcZcq3HNhs6J9nPmTVWcPgHUFz6niA==
Thread-topic: event priority
Hi, Keir,
        Seems current event priority is simple by 
earlier-alloc-higher-priority style, because event ports are allocated
incrementally from 1 and event dispatcher uses bit search instruction
to walk pending events sequentially. Is there any plan (or benefit) to
add more flexible priority policy, since by current way the priority is 
decided completely by compilation sequence of different drivers?

        2nd question is, why is there check/fix upon nested events only
for critical regions at end of hypervisor_callback? Though it's possible
to see nested events occurring at that small slice, seems the
possibility to overflow stack at that place is similar to the normal
nested cases where if some irq handler enables interrupt itself. If we
really want to prevent stack overflow, is it possible to add similar
logic
in CONFIG_DEBUG_STACKOVERFLOW to entry point of callback, 
and thus make this check common for all nested cases? Seems
current logic being there for a long time, and so sorry if I missed
important hints here. :-)

Thanks,
Kevin

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

<Prev in Thread] Current Thread [Next in Thread>