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] [PATCH] SCHEDOP_block_masked


On 10 Mar 2006, at 11:43, John Levon wrote:

It uses event_pending() which will be zero:

     76 #define event_pending(v)                        \
     77     (!!(v)->vcpu_info->evtchn_upcall_pending &  \
     78       !(v)->vcpu_info->evtchn_upcall_mask)

But, now you mention it, I wonder if this wouldn't be better taking an
event channel to check on before sleeping (though we'd still wake on
any). This would avoid the small race (which doesn't really matter in
the context we've been using this).

Can you give more details about the usage scenario? What ultimately allows the VCPU to continue running (presumably by clearing its evtchn_upcall_mask)?

 -- Keir


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