#include <linux/slab.h>
#include <linux/vmalloc.h>
#include <linux/hyperv.h>
+#include <linux/export.h>
#include <asm/hyperv.h>
#include "hyperv_vmbus.h"
#define VERSION_INVAL -1
+/*
+ * Negotiated protocol version with the host.
+ */
+__u32 vmbus_proto_version;
+EXPORT_SYMBOL_GPL(vmbus_proto_version);
+
static __u32 vmbus_get_next_version(__u32 current_version)
{
switch (current_version) {
if (version == VERSION_INVAL)
goto cleanup;
+ vmbus_proto_version = version;
+ pr_info("Negotiated host information %d\n", version);
kfree(msginfo);
return 0;
void hv_kvp_deinit(void);
void hv_kvp_onchannelcallback(void *);
+/*
+ * Negotiated version with the Host.
+ */
+
+extern __u32 vmbus_proto_version;
+
#endif /* __KERNEL__ */
#endif /* _HYPERV_H */