Displaying 1 result from an estimated 1 matches for "hvm_safe_block".
2006 Feb 24
2
[PATCH][discuss] evtchn race condition
...ONG, &v->vcpu_info->evtchn_pending_sel);
- if ( v->vcpu_info->evtchn_pending_sel )
- v->vcpu_info->evtchn_upcall_pending = 1;
+ set_bit(port/BITS_PER_LONG, &v->vcpu_info->evtchn_pending_sel);
+ v->vcpu_info->evtchn_upcall_pending = 1;
}
void hvm_safe_block(void)
@@ -735,12 +733,15 @@
for ( ; ; )
{
/* Clear master flag & selector flag so we will wake from
block. */
- v->vcpu_info->evtchn_upcall_pending = 0;
+ if (!v->vcpu_info->evtchn_pending_sel)
+ v->vcpu_info->evtchn_upcall_pending =...