diff options
author | sephe <sephe@FreeBSD.org> | 2016-02-26 09:23:17 +0000 |
---|---|---|
committer | sephe <sephe@FreeBSD.org> | 2016-02-26 09:23:17 +0000 |
commit | 72da1841b8df04fa1bfadaaeb0b41c49f41ffda0 (patch) | |
tree | dcff6f71a687cb980e9c7913d756059045be3fad /sys/dev/hyperv/include | |
parent | f35c38ca8b4a1bc96f36e2e5646f37e10933bfc1 (diff) | |
download | FreeBSD-src-72da1841b8df04fa1bfadaaeb0b41c49f41ffda0.zip FreeBSD-src-72da1841b8df04fa1bfadaaeb0b41c49f41ffda0.tar.gz |
hyperv: Always set device for channels
And unregister hv_device only for primary channels, who own the hv_device.
MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D5451
Diffstat (limited to 'sys/dev/hyperv/include')
-rw-r--r-- | sys/dev/hyperv/include/hyperv.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/hyperv/include/hyperv.h b/sys/dev/hyperv/include/hyperv.h index 2f82e02..1f93664 100644 --- a/sys/dev/hyperv/include/hyperv.h +++ b/sys/dev/hyperv/include/hyperv.h @@ -828,6 +828,8 @@ typedef struct hv_vmbus_channel { void *per_channel_state; } hv_vmbus_channel; +#define HV_VMBUS_CHAN_ISPRIMARY(chan) ((chan)->primary_channel == NULL) + static inline void hv_set_channel_read_state(hv_vmbus_channel* channel, boolean_t state) { |