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] Question about evtchn_callback reentry

To: "Keir Fraser" <Keir.Fraser@xxxxxxxxxxxx>
Subject: [Xen-devel] Question about evtchn_callback reentry
From: "Xu, Anthony" <anthony.xu@xxxxxxxxx>
Date: Mon, 18 Dec 2006 13:28:08 +0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, xen-ia64-devel <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Sun, 17 Dec 2006 21:28:15 -0800
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: AcciZU0dbGSEqQXwQrycerXX2pFPWA==
Thread-topic: [Xen-devel] Question about evtchn_callback reentry
Hi Keir,

I have some questions about evtchn_callback,

As we know all external interrupts and events are deliver to dom0 by
evtchn_callback,

Are evtchn_callback reentered?

I mean when evtchn_callbacak is executing on dom0,

Another external interrupt or event may happen, can this event be
deliverred immediately?

I found __sti will set vcpu_info-> evtchn_upcall_mask=0, which permits
event deliverring.

and __sti may be called at any device driver. 

If evtchn_callback can be reentered, how does it hanlde external
interrupt privilege?

If there is no special handling, low privileged interrupt may
"interrupt" high privileged interrupt.


BTW,
I do see evtchn_callback reentry happen on IPF dom0, and that incur
about 5% performance degradation
with KB on VTI-domain compared to non_reentry.



Thanks,
Anthony

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