Check for irqs_disabled in evtchn_fifo_unmask
Hi,
Can someone explain, why evtchn_fifo_unmask() requires irqs_disabled(). What happens, if irqs are not disabled ?
Thanks,
Anoob.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 4 lines · Anoob Soman
Hi,
Can someone explain, why
evtchn_fifo_unmask()requiresirqs_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