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] fooey. no interrupts.

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] fooey. no interrupts.
From: ron minnich <rminnich@xxxxxxxx>
Date: Mon, 9 Aug 2004 07:49:46 -0600 (MDT)
Cc: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 09 Aug 2004 14:51:51 +0100
Envelope-to: steven.hand@xxxxxxxxxxxx
In-reply-to: <E1Bu4Zr-0003FG-00@xxxxxxxxxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
On Mon, 9 Aug 2004, Keir Fraser wrote:

> 
> The Linux code sets the evtchn_mask before clearing evtchn_pending,
> then clears the evtchn_mask after calling the interrupt handler. Are
> you doing the setting but forgetting the clearing?

sadly, no. 

> 
> The order that Linux has for this stuff, to avoid races, is:
> 
>  1. Test-and-clear evtchn_upcall_pending flag
>  2. Read-and-clear (XCHG) the evtchn_pending_sel
>  3. For each set bit @i in the sel:
>  4.   Read evtchn_pending[@i]
>  5.   For each set bit @j in the word:
>  6.     Set evtchn_mask[@i*32+@j]
>  7.     Clear evtchn_pending[@i*32+@j]
>  8.     ....do interrupt work...
>  9.     Clear evtchn_msk[@i*32+@j]

yeah, I'm actually using that code. 

oh well.

ron

-- 
LANL CCS-1 email flavor:
***** Correspondence   []
***** DUSA LACSI-HW    [ ]
***** DUSA LACSI-OS    [x ]
***** DUSA LACSI-CS    [ ]




-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel