Drivers: hv: vmbus: Add module parameter to cap the VMBus version
authorAndrea Parri <parri.andrea@gmail.com>
Tue, 15 Oct 2019 11:46:46 +0000 (13:46 +0200)
committerSasha Levin <sashal@kernel.org>
Fri, 22 Nov 2019 01:10:44 +0000 (20:10 -0500)
commit931cccc967730d43bb6325506baf51c8f83a9a58
tree3ac845e171b98d698f1ff123385b314bb36a4b9d
parent2d4f49b3e1e3a24ce16dfeeb2235688c8aba57ef
Drivers: hv: vmbus: Add module parameter to cap the VMBus version

Currently, Linux guests negotiate the VMBus version with Hyper-V
and use the highest available VMBus version they can connect to.
This has some drawbacks: by using the highest available version,
certain code paths are never executed and can not be tested when
the guest runs on the newest host.

Add the module parameter "max_version", to upper-bound the VMBus
versions guests can negotiate.

Suggested-by: Dexuan Cui <decui@microsoft.com>
Signed-off-by: Andrea Parri <parri.andrea@gmail.com>
Reviewed-by: Wei Liu <wei.liu@kernel.org>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hv/connection.c