In the case where the backend does not support split event channels (one
for RX and one for TX) then the transmitter code in XENVIF does not open
the combined channel; it is handled by the receiver code. So, the
transmitter DPC should not make any attempt to unmask the event channel at
the end of processing.
This patch adds the necessary check for FrontendIsSplit before doing the
unmask and also removes an unnecessary check for FrontendIsSplit in the
transmitter ring enable function.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Reported-by: Eytan Heidingsfeld <eytanh@gmail.com>
Tested-by: Eytan Heidingsfeld <eytanh@gmail.com>
)
{
PXENVIF_TRANSMITTER Transmitter;
-
- if (!Ring->Connected)
- return;
+ PXENVIF_FRONTEND Frontend;
Transmitter = Ring->Transmitter;
+ Frontend = Transmitter->Frontend;
+
+ if (!Ring->Connected || !FrontendIsSplit(Frontend))
+ return;
XENBUS_EVTCHN(Unmask,
&Transmitter->EvtchnInterface,
ASSERT(!Ring->Enabled);
Ring->Enabled = TRUE;
- if (FrontendIsSplit(Frontend))
- KeInsertQueueDpc(&Ring->Dpc, NULL, NULL);
+ KeInsertQueueDpc(&Ring->Dpc, NULL, NULL);
__TransmitterRingReleaseLock(Ring);