From 8bbcf315659e9612b2cd83e10df5b92ff75754e8 Mon Sep 17 00:00:00 2001 From: Paul Durrant Date: Thu, 23 Jul 2015 17:20:25 +0100 Subject: [PATCH] Don't trust the integrity of the shared rings after migration Signed-off-by: Paul Durrant --- src/xenvif/transmitter.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/xenvif/transmitter.c b/src/xenvif/transmitter.c index b833ab6..a915d73 100644 --- a/src/xenvif/transmitter.c +++ b/src/xenvif/transmitter.c @@ -1949,7 +1949,9 @@ __TransmitterRingFakeResponses( KeMemoryBarrier(); - rsp_prod = Ring->Shared->rsp_prod; + // We can't trust anything in the shared ring + SHARED_RING_INIT(Ring->Shared); + rsp_prod = Ring->Front.rsp_cons; KeMemoryBarrier(); -- 2.39.5