xen: fix non-split event channel xenbus notification

The xenbus name for non-split event channels is different.
This commit is contained in:
Avi Kivity
2014-11-20 12:23:19 +02:00
parent 62693f884f
commit 57fdff17ff

View File

@@ -324,8 +324,12 @@ xenfront_net_device::xenfront_net_device(boost::program_options::variables_map o
_xenstore->write(path(f.first), f.second, t);
}
_xenstore->write<int>(path("event-channel-tx"), _tx_evtchn.number(), t);
_xenstore->write<int>(path("event-channel-rx"), _rx_evtchn.number(), t);
if (split) {
_xenstore->write<int>(path("event-channel-tx"), _tx_evtchn.number(), t);
_xenstore->write<int>(path("event-channel-rx"), _rx_evtchn.number(), t);
} else {
_xenstore->write<int>(path("event-channel"), _rx_evtchn.number(), t);
}
_xenstore->write<int>(path("tx-ring-ref"), _tx_ring.ref, t);
_xenstore->write<int>(path("rx-ring-ref"), _rx_ring.ref, t);
_xenstore->write<int>(path("state"), 4, t);