Skip to contentSkip to conversation

Check for irqs_disabled in evtchn_fifo_unmask

DISCUSSION Anoob Soman 2 participants 2 messages Jun 1, 2017 – Jun 2, 2017

lore
Share & tools
lore
#1 lore raw
Quoted 4 lines · Anoob Soman

Hi,

Can someone explain, why evtchn_fifo_unmask() requires irqs_disabled(). What happens, if irqs are not disabled ?

evtchn_fifo_unmask() seems to be not critical, but evtchn_2l_unmask() might be racy if another event is coming in in the middle. The BUG_ON() in evtchn_fifo_unmask() just makes sure adding a new caller not obeying the restriction of evtchn_2l_unmask() won't be unnoticed.

Juergen

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel