You need to sign in or sign up before continuing.
提交 1df53d21 编写于 作者: A Andrea Parri (Microsoft) 提交者: Wei Liu

Drivers: hv: vmbus: Introduce and negotiate VMBus protocol version 5.3

Hyper-V has added VMBus protocol version 5.3.  Allow Linux guests to
negotiate the new version on version of Hyper-V that support it.
Signed-off-by: NAndrea Parri (Microsoft) <parri.andrea@gmail.com>
Reviewed-by: NMichael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/20210416143449.16185-2-parri.andrea@gmail.comSigned-off-by: NWei Liu <wei.liu@kernel.org>
上级 3e9bf43f
...@@ -45,6 +45,7 @@ EXPORT_SYMBOL_GPL(vmbus_proto_version); ...@@ -45,6 +45,7 @@ EXPORT_SYMBOL_GPL(vmbus_proto_version);
* Table of VMBus versions listed from newest to oldest. * Table of VMBus versions listed from newest to oldest.
*/ */
static __u32 vmbus_versions[] = { static __u32 vmbus_versions[] = {
VERSION_WIN10_V5_3,
VERSION_WIN10_V5_2, VERSION_WIN10_V5_2,
VERSION_WIN10_V5_1, VERSION_WIN10_V5_1,
VERSION_WIN10_V5, VERSION_WIN10_V5,
...@@ -60,7 +61,7 @@ static __u32 vmbus_versions[] = { ...@@ -60,7 +61,7 @@ static __u32 vmbus_versions[] = {
* Maximal VMBus protocol version guests can negotiate. Useful to cap the * Maximal VMBus protocol version guests can negotiate. Useful to cap the
* VMBus version for testing and debugging purpose. * VMBus version for testing and debugging purpose.
*/ */
static uint max_version = VERSION_WIN10_V5_2; static uint max_version = VERSION_WIN10_V5_3;
module_param(max_version, uint, S_IRUGO); module_param(max_version, uint, S_IRUGO);
MODULE_PARM_DESC(max_version, MODULE_PARM_DESC(max_version,
......
...@@ -234,6 +234,7 @@ static inline u32 hv_get_avail_to_write_percent( ...@@ -234,6 +234,7 @@ static inline u32 hv_get_avail_to_write_percent(
* 5 . 0 (Newer Windows 10) * 5 . 0 (Newer Windows 10)
* 5 . 1 (Windows 10 RS4) * 5 . 1 (Windows 10 RS4)
* 5 . 2 (Windows Server 2019, RS5) * 5 . 2 (Windows Server 2019, RS5)
* 5 . 3 (Windows Server 2022)
*/ */
#define VERSION_WS2008 ((0 << 16) | (13)) #define VERSION_WS2008 ((0 << 16) | (13))
...@@ -245,6 +246,7 @@ static inline u32 hv_get_avail_to_write_percent( ...@@ -245,6 +246,7 @@ static inline u32 hv_get_avail_to_write_percent(
#define VERSION_WIN10_V5 ((5 << 16) | (0)) #define VERSION_WIN10_V5 ((5 << 16) | (0))
#define VERSION_WIN10_V5_1 ((5 << 16) | (1)) #define VERSION_WIN10_V5_1 ((5 << 16) | (1))
#define VERSION_WIN10_V5_2 ((5 << 16) | (2)) #define VERSION_WIN10_V5_2 ((5 << 16) | (2))
#define VERSION_WIN10_V5_3 ((5 << 16) | (3))
/* Make maximum size of pipe payload of 16K */ /* Make maximum size of pipe payload of 16K */
#define MAX_PIPE_DATA_PAYLOAD (sizeof(u8) * 16384) #define MAX_PIPE_DATA_PAYLOAD (sizeof(u8) * 16384)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册