]> xenbits.xensource.com Git - people/pauldu/xenvif.git/commit
Change where transmitter packet cache is created
authorPaul Durrant <paul.durrant@citrix.com>
Thu, 3 Nov 2016 09:48:23 +0000 (09:48 +0000)
committerPaul Durrant <paul.durrant@citrix.com>
Thu, 3 Nov 2016 09:48:23 +0000 (09:48 +0000)
commitc70a61ef1a3cc1325d280fcb10681d53ee0d8461
tree0ea9b649bc2d548800707fe52da764cd3e51916a
parent947dd16d76faf696fbfed0e321351a7e07f55eed
Change where transmitter packet cache is created

The transmitter packet cache suffers from a similar issue as the
receiver packet cache did before commit 0dda5aa8 "Partially revert
commit ab655bb1...". If the VM goes through a suspend/resume cycle
with queued transmits then the cache would be torn down before all
objects had been freed, leading to ASSERTion failures in checked
builds and memory corruption in free builds.

This patch moves creation of the packet cache from the 'connect'
phase to the 'initialization' phase to avoid this problem.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
src/xenvif/transmitter.c