提交 59a084a7 编写于 作者: K K. Y. Srinivasan 提交者: Greg Kroah-Hartman

drivers: hv: Cleanup the kvp related state in hyperv.h

Now cleanup the hyperv.h with regards to KVP definitions.
Signed-off-by: NK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: NHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 976a0be0
...@@ -137,7 +137,6 @@ struct hv_ku_msg { ...@@ -137,7 +137,6 @@ struct hv_ku_msg {
#ifdef __KERNEL__
/* /*
* Registry value types. * Registry value types.
...@@ -163,28 +162,30 @@ enum hv_kvp_exchg_pool { ...@@ -163,28 +162,30 @@ enum hv_kvp_exchg_pool {
}; };
struct hv_kvp_hdr { struct hv_kvp_hdr {
u8 operation; __u8 operation;
u8 pool; __u8 pool;
}; __u16 pad;
} __attribute__((packed));
struct hv_kvp_exchg_msg_value { struct hv_kvp_exchg_msg_value {
u32 value_type; __u32 value_type;
u32 key_size; __u32 key_size;
u32 value_size; __u32 value_size;
u8 key[HV_KVP_EXCHANGE_MAX_KEY_SIZE]; __u8 key[HV_KVP_EXCHANGE_MAX_KEY_SIZE];
u8 value[HV_KVP_EXCHANGE_MAX_VALUE_SIZE]; __u8 value[HV_KVP_EXCHANGE_MAX_VALUE_SIZE];
}; } __attribute__((packed));
struct hv_kvp_msg_enumerate { struct hv_kvp_msg_enumerate {
u32 index; __u32 index;
struct hv_kvp_exchg_msg_value data; struct hv_kvp_exchg_msg_value data;
}; } __attribute__((packed));
struct hv_kvp_msg { struct hv_kvp_msg {
struct hv_kvp_hdr kvp_hdr; struct hv_kvp_hdr kvp_hdr;
struct hv_kvp_msg_enumerate kvp_data; struct hv_kvp_msg_enumerate kvp_data;
}; } __attribute__((packed));
#ifdef __KERNEL__
#include <linux/scatterlist.h> #include <linux/scatterlist.h>
#include <linux/list.h> #include <linux/list.h>
#include <linux/uuid.h> #include <linux/uuid.h>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册