sephe
39facbac7a
hyperv/hn: Factor out function to set rxfilter.
...
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8928
2016-12-28 04:47:17 +00:00
sephe
5aa4a394c9
hyperv/hn: Function renaming; no functional changes.
...
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8908
2016-12-28 04:35:52 +00:00
sephe
c9b5e5f0a8
hyperv/hn: Consolidate hn_{suspend,resume}
...
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8907
2016-12-28 03:19:59 +00:00
sephe
3e7ea7675d
hyperv/vmbus: Nuke unnecessary critical sections.
...
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8906
2016-12-28 03:07:58 +00:00
sephe
e85634d2d0
hyperv/ic: Allow applying the samples from hypervisor unconditionally.
...
MFC after: 1 week
Sponsored by: Microsoft
2016-12-23 08:52:10 +00:00
sephe
11f244c4d5
hyperv/ic: Fix version4 timesync message format.
...
It is not compat w/ the old timesync message format, which the message
type stays the same as the old timesync message.
MFC after: 1 week
Sponsored by: Microsoft
2016-12-23 08:41:28 +00:00
sephe
e73132be39
hyperv: Unbreak EARLY_AP_STARUP Hyper-V bootstrap by using intrhook
...
Properly working pause and friends are required.
MFC after: 3 days
Sponsored by: Microsoft
2016-12-21 03:23:35 +00:00
sephe
81b01fc0f3
hyperv/storvsc: The max channel in PDU actually means the max sub-chans.
...
Use proper name for local variables. PDU fields' name was not changed yet.
While I'm here, make # of usable channels tunable. This eases further
testing.
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8851
2016-12-21 03:09:07 +00:00
sephe
74ff94765e
hyperv/ic: Rename cleaned up files.
...
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8850
2016-12-20 09:46:14 +00:00
sephe
1e8a5107d0
hyperv/ic: Cleanup driver glue.
...
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8849
2016-12-20 07:34:44 +00:00
sephe
ccc1d74c5c
hyperv/ic: Rname cleaned up file.
...
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8848
2016-12-20 07:14:24 +00:00
sephe
e8eb94da16
hyperv/ic: Inclusion cleanup
...
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8847
2016-12-20 05:39:00 +00:00
sephe
fca200a88a
hyperv/ic: Rename cleaned up header file.
...
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8846
2016-12-20 05:26:38 +00:00
sephe
3d66160304
hyperv/ic: Cleanup common struct and functions.
...
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8845
2016-12-20 05:07:12 +00:00
sephe
e4bb7a507b
hyperv/ic: Factor out function to send IC response
...
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8844
2016-12-20 04:51:14 +00:00
sephe
25e2f31232
hyperv: Implement userspace gettimeofday(2) with Hyper-V reference TSC
...
This 6 times gettimeofday performance, as measured by
tools/tools/syscall_timing
Reviewed by: kib
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8789
2016-12-19 07:40:45 +00:00
sephe
43a0213194
hyperv: Allow userland to ro-mmap reference TSC page
...
This paves way to implement VDSO for the enlightened time counter.
Reviewed by: kib
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8768
2016-12-15 03:32:24 +00:00
sephe
aa25f6d753
hyperv: Implement "enlightened" time counter, which is rdtsc based.
...
Reviewed by: kib
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8763
2016-12-14 03:20:57 +00:00
sephe
e3c83e4556
hyperv/hn: Add polling support
...
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8739
2016-12-12 05:18:03 +00:00
sephe
39150ad6fb
hyperv/vmbus: Add channel polling support.
...
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8738
2016-12-12 05:04:55 +00:00
sephe
80c55f08a0
hyperv/storvsc: Minor style changes; no functional changes.
...
Reported by: rpokala
MFC after: 1 week
Sponsored by: Microsoft
2016-12-09 06:18:12 +00:00
sephe
c7444a12c9
hyperv/storvsc: Fix the SCSI disk attachment issue.
...
On pre-WS2016 Hyper-V, if the only LUNs > 7 are used, then all disks
fails to attach. Mainly because those versions of Hyper-V do not set
SRB_STATUS properly and deliver junky INQUERY responses.
Submitted by: Hongjiang Zhang <honzhan microsoft com>
Reported by: Hongxiong Xian <v-hoxian microsoft com>
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8724
2016-12-09 03:16:36 +00:00
sephe
6091327a9b
hyperv/timesync: Support "sent TC" to improve accuracy.
...
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8723
2016-12-08 05:37:39 +00:00
sephe
092f1602f5
hyperv/vmbus: Utilize vmbus_chan_run_task()
...
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8686
2016-12-08 05:15:00 +00:00
sephe
f980a6124c
hyperv/vmbus: Use pause if possible.
...
This makes booting on Hyper-V w/ small # of vCPUs work properly.
Reported by: Hongxiong Xian <v-hoxian microsoft com>, Hongjiang Zhang <honzhan microsoft com>
MFC after: 1 week
Sponsored by: Microsoft
2016-12-07 08:12:02 +00:00
sephe
d00d549125
hyperv/hn: Add 'options RSS' support.
...
Reviewed by: adrian
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8676
2016-12-01 05:37:29 +00:00
sephe
95dbf6d04a
hyperv/hn: Don't hold txdesc, if no BPFs are attached.
...
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8675
2016-12-01 03:39:34 +00:00
sephe
a3a423047c
hyperv/hn: Add HN_DEBUG kernel option.
...
If bufring is used for per-TX ring descs, don't update "available"
counter, which is only used to help debugging.
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8674
2016-12-01 03:27:16 +00:00
sephe
7d2e0ee5fa
hyperv/storvsc: Don't use timedwait.
...
The timeout is unnecessary.
Reviewed by: jhb
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8656
2016-11-30 08:21:15 +00:00
sephe
e7498d2d46
hypver/vmbus: Remove extra assertion.
...
It is asserted by vmbus_chan_gpadl_connect() now.
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8660
2016-11-30 08:10:49 +00:00
sephe
8a84dc6205
hyperv/hn: Allow TX to share event taskqueues.
...
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8659
2016-11-30 07:54:28 +00:00
sephe
4497d765e2
hyperv/vmbus: Add DEVMETHOD to map cpu to event taskq.
...
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8658
2016-11-30 07:45:05 +00:00
sephe
06bb1b5f32
hyperv/hn: Allow multiple TX taskqueues.
...
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8655
2016-11-30 05:28:39 +00:00
sephe
738c61bc0e
hyperv/hn: Nuke the unused TX taskqueue CPU binding tunable.
...
It was an experimental tunable, and is now deemed to be road blocker
for further changes. Time to retire it.
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8654
2016-11-30 05:11:59 +00:00
sephe
87c91dcad2
hyperv/vmbus: Use poll/cancel APIs to wait for the CHOPEN response.
...
Since hypervisor does not respond CHOPEN to a revoked channel.
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8636
2016-11-28 07:56:03 +00:00
sephe
8124601f70
hyperv/vmbus: Add exec cancel support for message Hypercall API.
...
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8635
2016-11-28 07:44:50 +00:00
sephe
fe7c994243
hyperv/vmbus: Add result polling support for message Hypercall API.
...
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8634
2016-11-28 07:36:51 +00:00
sephe
7ad79e66ad
hyperv/vmbus: Add result polling support for xact API.
...
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8633
2016-11-28 07:27:08 +00:00
sephe
0197a06a52
hyperv/vmbus: Stringent GPADL parameter assertion.
...
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8632
2016-11-28 07:04:32 +00:00
sephe
677c0a73d8
hyperv/vmbus: Make sure that the allocated GPADL is not zero.
...
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8631
2016-11-28 06:53:00 +00:00
sephe
8d4258a0ce
hyperv/hn: Simplify RSS indirect table fixup API
...
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8630
2016-11-28 06:40:26 +00:00
sephe
72bc625d67
hyperv/hn: Fix vmbus_chan_subidx usage.
...
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8629
2016-11-28 06:10:41 +00:00
sephe
31e5d78146
hyperv/hn: Enable multi-packet RNDIS message support by default.
...
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8621
2016-11-28 05:54:20 +00:00
sephe
41af246c43
hyperv/hn: Fix attach error handling
...
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8620
2016-11-28 05:46:00 +00:00
sephe
d01f31829b
hyperv/hn: Fix multi-packet RNDIS message aggregation size setting.
...
Just in case that no chimney sending buffer can be used.
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8619
2016-11-28 05:31:36 +00:00
sephe
9c0617e0cd
hyperv/hn: Fix detach error handling.
...
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8613
2016-11-28 05:23:57 +00:00
sephe
7379c46064
hyperv/hn: Utilize vmbus_chan_xact_wait
...
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8612
2016-11-28 05:15:28 +00:00
sephe
b8a9c2fa24
hyperv/vmbus: Add supportive transaction wait function.
...
This function supports channel revocation properly.
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8611
2016-11-28 05:07:48 +00:00
sephe
c04f9daaad
hyperv/vmbus: Zero out GPADL if error happens.
...
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8601
2016-11-28 04:53:36 +00:00
sephe
c587e876ec
hyperv/vmbus: Add a simplified version of channel close.
...
So that the caller can know the channel close error and react accordingly.
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8600
2016-11-25 09:13:10 +00:00