Re: [RFC PATCH 2/2] hv_netvsc: Change GPADL teardown order according to Hyper-V version

From: Stephen Hemminger
Date: Tue Jan 30 2018 - 14:30:49 EST


On Tue, 23 Jan 2018 10:34:05 +0100
Mohammed Gamal <mgamal@xxxxxxxxxx> wrote:

> Commit 0cf737808ae7 ("hv_netvsc: netvsc_teardown_gpadl() split")
> introduced a regression causing VMs not to shutdown on pre-Wind2016
> hosts after netvsc_remove_device() is called. This was caused as the
> GPADL teardown sequence was changed.
>
> This patch restores the old behavior for pre-Win2016 hosts, while
> keeping the changes from 0cf7378 for Win2016 and higher hosts.
>
> Signed-off-by: Mohammed Gamal <mgamal@xxxxxxxxxx>

Investigated the Windows driver to see how it handled this.
It uses NVSP version < 4 to check for older hosts. So that patch
should use that.

Currently testing a version with that change.