diff options
author | sephe <sephe@FreeBSD.org> | 2016-11-11 03:43:06 +0000 |
---|---|---|
committer | sephe <sephe@FreeBSD.org> | 2016-11-11 03:43:06 +0000 |
commit | 449e5e210336bb1fbe7e88dc50d9b6a49a32f1da (patch) | |
tree | 0c1b1f7646338cd64e90bf348c964030800494ea /sys/dev/hyperv/utilities/hv_timesync.c | |
parent | 4ad40b01548f3cf0381961fa100d18e7ac1736cc (diff) | |
download | FreeBSD-src-449e5e210336bb1fbe7e88dc50d9b6a49a32f1da.zip FreeBSD-src-449e5e210336bb1fbe7e88dc50d9b6a49a32f1da.tar.gz |
MFC 307845
hyperv/ic: Rework framework/message version negotiation.
Submitted by: Hongjiang Zhang <honzhan microsoft com>
Modified by: sephe
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8280
Diffstat (limited to 'sys/dev/hyperv/utilities/hv_timesync.c')
-rw-r--r-- | sys/dev/hyperv/utilities/hv_timesync.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/dev/hyperv/utilities/hv_timesync.c b/sys/dev/hyperv/utilities/hv_timesync.c index 2d44026..5bd51b0 100644 --- a/sys/dev/hyperv/utilities/hv_timesync.c +++ b/sys/dev/hyperv/utilities/hv_timesync.c @@ -42,6 +42,14 @@ __FBSDID("$FreeBSD$"); #include "vmbus_if.h" +#define VMBUS_TIMESYNC_FWVER_MAJOR 3 +#define VMBUS_TIMESYNC_FWVER \ + VMBUS_IC_VERSION(VMBUS_TIMESYNC_FWVER_MAJOR, 0) + +#define VMBUS_TIMESYNC_MSGVER_MAJOR 3 +#define VMBUS_TIMESYNC_MSGVER \ + VMBUS_IC_VERSION(VMBUS_TIMESYNC_MSGVER_MAJOR, 0) + static const struct vmbus_ic_desc vmbus_timesync_descs[] = { { .ic_guid = { .hv_guid = { @@ -162,7 +170,8 @@ vmbus_timesync_cb(struct vmbus_channel *chan, void *xsc) */ switch (hdr->ic_type) { case VMBUS_ICMSG_TYPE_NEGOTIATE: - error = vmbus_ic_negomsg(sc, data, &dlen); + error = vmbus_ic_negomsg(sc, data, &dlen, + VMBUS_TIMESYNC_FWVER, VMBUS_TIMESYNC_MSGVER); if (error) return; break; |