net/avp: handle interrupt migration
authorAllain Legacy <allain.legacy@windriver.com>
Tue, 28 Mar 2017 11:54:08 +0000 (07:54 -0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 4 Apr 2017 17:02:19 +0000 (19:02 +0200)
commit82e140b84995b033f57144b0d9e48f8cd6444833
tree4482901b4a913fbe3fb27f7532c46c7c2ca818a6
parentea37523dbc7b71e861b468dbedb46cbfcf6bd8fb
net/avp: handle interrupt migration

This commit introduces changes required to support VM live-migration.  This
is done by registering and responding to interrupts coming from the host to
signal that the memory is about to be made invalid and replaced with a new
memory zone on the destination compute node.

Enabling and disabling of the interrupts are maintained outside of the
start/stop functions because they must be enabled for the lifetime of the
device.  This is so that host interrupts are serviced and acked even in
cases where the app may have stopped the device.

Signed-off-by: Allain Legacy <allain.legacy@windriver.com>
Signed-off-by: Matt Peters <matt.peters@windriver.com>
Acked-by: Vincent Jardin <vincent.jardin@6wind.com>
drivers/net/avp/avp_ethdev.c