aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/hyperv.h27
1 files changed, 14 insertions, 13 deletions
diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h
index 7332b3faecc8..b822978ecbc8 100644
--- a/include/linux/hyperv.h
+++ b/include/linux/hyperv.h
@@ -137,7 +137,6 @@ struct hv_ku_msg {
137 137
138 138
139 139
140#ifdef __KERNEL__
141 140
142/* 141/*
143 * Registry value types. 142 * Registry value types.
@@ -163,28 +162,30 @@ enum hv_kvp_exchg_pool {
163}; 162};
164 163
165struct hv_kvp_hdr { 164struct hv_kvp_hdr {
166 u8 operation; 165 __u8 operation;
167 u8 pool; 166 __u8 pool;
168}; 167 __u16 pad;
168} __attribute__((packed));
169 169
170struct hv_kvp_exchg_msg_value { 170struct hv_kvp_exchg_msg_value {
171 u32 value_type; 171 __u32 value_type;
172 u32 key_size; 172 __u32 key_size;
173 u32 value_size; 173 __u32 value_size;
174 u8 key[HV_KVP_EXCHANGE_MAX_KEY_SIZE]; 174 __u8 key[HV_KVP_EXCHANGE_MAX_KEY_SIZE];
175 u8 value[HV_KVP_EXCHANGE_MAX_VALUE_SIZE]; 175 __u8 value[HV_KVP_EXCHANGE_MAX_VALUE_SIZE];
176}; 176} __attribute__((packed));
177 177
178struct hv_kvp_msg_enumerate { 178struct hv_kvp_msg_enumerate {
179 u32 index; 179 __u32 index;
180 struct hv_kvp_exchg_msg_value data; 180 struct hv_kvp_exchg_msg_value data;
181}; 181} __attribute__((packed));
182 182
183struct hv_kvp_msg { 183struct hv_kvp_msg {
184 struct hv_kvp_hdr kvp_hdr; 184 struct hv_kvp_hdr kvp_hdr;
185 struct hv_kvp_msg_enumerate kvp_data; 185 struct hv_kvp_msg_enumerate kvp_data;
186}; 186} __attribute__((packed));
187 187
188#ifdef __KERNEL__
188#include <linux/scatterlist.h> 189#include <linux/scatterlist.h>
189#include <linux/list.h> 190#include <linux/list.h>
190#include <linux/uuid.h> 191#include <linux/uuid.h>