Which basically removes the handler for xenstored wakeup() calls, in
case xenbus_irq() != 0. Any code path I am not aware of, which
manipulates the xenstored handler and xenbus_irq before xenbus attach?
From my PoV, the event_remove_handler() will never be called here.
I think it's related to suspend/resume, precisely. When xb_init_comms()
is called again after a resume, the event channel may have changed, so
you have to remove the old one before setting up a new one.
Maybe on NetBSD it can be done in a different way.
BTW, shouldn't the handler removal operation rather be part of a
_detach() routine for xenbus?
For suspend/resume you don't want to detach/reattach xenbus, because it'd
also means to detach/reattach the child devices.