aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/hyperv.h
diff options
context:
space:
mode:
authorK. Y. Srinivasan <kys@microsoft.com>2012-08-13 13:06:52 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-08-16 16:48:08 -0400
commitb47a81dcc5a806efb6d970608299129771588289 (patch)
tree59325254754b37e1b28393c552a854e4c922e243 /include/linux/hyperv.h
parent9b5957803cb444a99275355eb2309b6fecc63c5f (diff)
Drivers: hv: kvp: Cleanup error handling in KVP
In preparation to implementing IP injection, cleanup the way we propagate and handle errors both in the driver as well as in the user level daemon. Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com> Reviewed-by: Olaf Hering <olaf@aepfle.de> Reviewed-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/hyperv.h')
-rw-r--r--include/linux/hyperv.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h
index 11afc4e0849a..b587c448e8ab 100644
--- a/include/linux/hyperv.h
+++ b/include/linux/hyperv.h
@@ -181,6 +181,17 @@ enum hv_kvp_exchg_pool {
181 KVP_POOL_COUNT /* Number of pools, must be last. */ 181 KVP_POOL_COUNT /* Number of pools, must be last. */
182}; 182};
183 183
184/*
185 * Some Hyper-V status codes.
186 */
187
188#define HV_S_OK 0x00000000
189#define HV_E_FAIL 0x80004005
190#define HV_S_CONT 0x80070103
191#define HV_ERROR_NOT_SUPPORTED 0x80070032
192#define HV_ERROR_MACHINE_LOCKED 0x800704F7
193#define HV_ERROR_DEVICE_NOT_CONNECTED 0x8007048F
194
184#define ADDR_FAMILY_NONE 0x00 195#define ADDR_FAMILY_NONE 0x00
185#define ADDR_FAMILY_IPV4 0x01 196#define ADDR_FAMILY_IPV4 0x01
186#define ADDR_FAMILY_IPV6 0x02 197#define ADDR_FAMILY_IPV6 0x02
@@ -1048,12 +1059,6 @@ void vmbus_driver_unregister(struct hv_driver *hv_driver);
1048#define ICMSGHDRFLAG_REQUEST 2 1059#define ICMSGHDRFLAG_REQUEST 2
1049#define ICMSGHDRFLAG_RESPONSE 4 1060#define ICMSGHDRFLAG_RESPONSE 4
1050 1061
1051#define HV_S_OK 0x00000000
1052#define HV_E_FAIL 0x80004005
1053#define HV_S_CONT 0x80070103
1054#define HV_ERROR_NOT_SUPPORTED 0x80070032
1055#define HV_ERROR_MACHINE_LOCKED 0x800704F7
1056#define HV_ERROR_DEVICE_NOT_CONNECTED 0x8007048F
1057 1062
1058/* 1063/*
1059 * While we want to handle util services as regular devices, 1064 * While we want to handle util services as regular devices,