summaryrefslogtreecommitdiff
path: root/sys/dev/hyperv/include/hyperv.h
Commit message (Collapse)AuthorAgeFilesLines
* hyperv/vmbus: Update VMBus version 4.0 and 5.0 support.Wei Hu2019-07-091-0/+5
| | | | | | | | | | | | | Add VMBus protocol version 4.0. and 5.0 to support Windows 10 and newer HyperV hosts. For VMBus 4.0 and newer HyperV, the netvsc gpadl teardown must be done after vmbus close. Submitted by: whu MFC after: 2 weeks Sponsored by: Microsoft Notes: svn path=/head/; revision=349856
* sys/dev: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326255
* hyperv/vmbus: Expose Hyper-V major version.Sepherosa Ziehau2017-10-101-0/+1
| | | | | | | | MFC after: 3 days Sponsored by: Microsoft Notes: svn path=/head/; revision=324488
* hyperv: Update copyright for the files changed in 2017Sepherosa Ziehau2017-08-141-1/+1
| | | | | | | | | MFC after: 3 days Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D11982 Notes: svn path=/head/; revision=322488
* hyperv: Add method to read 64bit Hyper-V specific time value.Sepherosa Ziehau2017-01-091-2/+10
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D9057 Notes: svn path=/head/; revision=311743
* hyperv: Allow userland to ro-mmap reference TSC pageSepherosa Ziehau2016-12-151-5/+26
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=310101
* hyperv: Implement "enlightened" time counter, which is rdtsc based.Sepherosa Ziehau2016-12-141-0/+1
| | | | | | | | | | Reviewed by: kib MFC after: 1 week Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D8763 Notes: svn path=/head/; revision=310048
* hyperv/timesync: Support "sent TC" to improve accuracy.Sepherosa Ziehau2016-12-081-0/+19
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D8723 Notes: svn path=/head/; revision=309705
* hyperv: GC unused functions.Sepherosa Ziehau2016-11-021-11/+0
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D8406 Notes: svn path=/head/; revision=308194
* hyperv/vmbus: Reindent function declarations.Sepherosa Ziehau2016-07-291-1/+1
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D7344 Notes: svn path=/head/; revision=303470
* hyperv/vmbus: Inclusion cleanupSepherosa Ziehau2016-07-281-26/+4
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D7334 Notes: svn path=/head/; revision=303422
* hyperv/vmbus: Shuffle function declaration and macro definition.Sepherosa Ziehau2016-07-211-25/+0
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7259 Notes: svn path=/head/; revision=303129
* hyperv/vmbus: Hide channel struct definition.Sepherosa Ziehau2016-07-201-114/+0
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7245 Notes: svn path=/head/; revision=303071
* hyperv/vmbus: Deprecate the device private data in channel structSepherosa Ziehau2016-07-201-7/+0
| | | | | | | | | | | They are neither flexible nor extensible. MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7244 Notes: svn path=/head/; revision=303070
* hyperv/vmbus: Pass channel as the first argument for channel callbackSepherosa Ziehau2016-07-201-1/+3
| | | | | | | | | | | | The prepares to kill device private fields in channel struct, which are not flexible and extensible. MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7243 Notes: svn path=/head/; revision=303069
* hyperv/vmbus: Channel struct field renameSepherosa Ziehau2016-07-201-8/+8
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7242 Notes: svn path=/head/; revision=303068
* hyperv/vmbus: Move IC register definition to Hyper-V utilitiesSepherosa Ziehau2016-07-201-59/+0
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7241 Notes: svn path=/head/; revision=303067
* hyperv/vmbus: Get rid of unnecessary definition.Sepherosa Ziehau2016-07-201-4/+0
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7240 Notes: svn path=/head/; revision=303066
* hyperv/vmbus: Function renameSepherosa Ziehau2016-07-191-14/+0
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7230 Notes: svn path=/head/; revision=303021
* hyperv/vmbus: Cleanup cpu based channel selection.Sepherosa Ziehau2016-07-191-2/+0
| | | | | | | | | | | And create cpu to channel map at device attach time for storvsc(4). MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7229 Notes: svn path=/head/; revision=303020
* hyperv/vmbus: Cosmetic vmbus channel open cleanupSepherosa Ziehau2016-07-181-9/+3
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7217 Notes: svn path=/head/; revision=302986
* hyperv/vmbus: Function renameSepherosa Ziehau2016-07-151-14/+0
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7212 Notes: svn path=/head/; revision=302890
* hyperv/vmbus: Back out r302888 temporarilySepherosa Ziehau2016-07-151-0/+14
| | | | | | | | | | Committed by accident w/ duplicated commit log MFC after: 1 week Sponsored by: Microsoft OSTC Notes: svn path=/head/; revision=302889
* hyperv/hn: Busdma-fy rxbuf and chimney sending bufferSepherosa Ziehau2016-07-151-14/+0
| | | | | | | | | | | Nuke unused channel GPADL API. MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7211 Notes: svn path=/head/; revision=302888
* hyperv/hn: Busdma-fy rxbuf and chimney sending bufferSepherosa Ziehau2016-07-151-8/+0
| | | | | | | | | | | Nuke unused channel GPADL API. MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7211 Notes: svn path=/head/; revision=302887
* hyperv/vmbus: Cleanup channel packet receiving.Sepherosa Ziehau2016-07-151-29/+0
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7204 Notes: svn path=/head/; revision=302886
* hyperv/vmbus: Cleanup channel receiving.Sepherosa Ziehau2016-07-151-7/+0
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7202 Notes: svn path=/head/; revision=302885
* hyperv/vmbus: Function renameSepherosa Ziehau2016-07-151-8/+0
| | | | | | | | | | | And reorder the error prone parameters list. MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7191 Notes: svn path=/head/; revision=302882
* hyperv/vmbus: Move channel packet types definition to vmbus.hSepherosa Ziehau2016-07-151-19/+2
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7177 Notes: svn path=/head/; revision=302880
* hyperv/vmbus: Move channel packet flags definition to vmbus.hSepherosa Ziehau2016-07-151-2/+0
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7176 Notes: svn path=/head/; revision=302879
* hyeprv/vmbus: Rework prplist sending.Sepherosa Ziehau2016-07-151-25/+0
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7175 Notes: svn path=/head/; revision=302878
* hyperv/vmbus: Rework sglist sending.Sepherosa Ziehau2016-07-151-15/+0
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7156 Notes: svn path=/head/; revision=302876
* hyperv/vmbus: Field renameSepherosa Ziehau2016-07-151-8/+7
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7146 Notes: svn path=/head/; revision=302874
* hyperv/vmbus: Set vcpuid to 0, if MSR_HV_VP_INDEX does not exist.Sepherosa Ziehau2016-07-151-8/+5
| | | | | | | | | | | | Mainly for compatibility. While I'm here, rename cpuid related fields in hv_vmbus_channel. MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7141 Notes: svn path=/head/; revision=302873
* hyperv/vmbus: Busdma-fy channel bufring.Sepherosa Ziehau2016-07-151-7/+4
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7140 Notes: svn path=/head/; revision=302872
* hyperv/vmbus: Add vmbus_chan_gpadl_connect, which takes GPA physaddrSepherosa Ziehau2016-07-151-0/+3
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7139 Notes: svn path=/head/; revision=302871
* hyperv/vmbus: Sub-channel related fields renamingSepherosa Ziehau2016-07-141-22/+9
| | | | | | | | | | | And reorganize comment. MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7113 Notes: svn path=/head/; revision=302819
* hyperv/vmbus: Field renaming to reflect realitySepherosa Ziehau2016-07-141-1/+1
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7111 Notes: svn path=/head/; revision=302817
* hyperv/vmbus: Use sub-channel index to detect primary channelSepherosa Ziehau2016-07-141-1/+1
| | | | | | | | | | | | In case that VMBUS_CHAN_ISPRIMARY is needed in the early place of channel setup. MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7108 Notes: svn path=/head/; revision=302814
* hyperv/vmbus: Nuke the channel open state.Sepherosa Ziehau2016-07-141-10/+5
| | | | | | | | | | | Channel is either opened or not-opened. MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7105 Notes: svn path=/head/; revision=302812
* hyperv/vmbus: Remove unused bitsSepherosa Ziehau2016-07-141-127/+0
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7095 Notes: svn path=/head/; revision=302805
* hyperv: hv_guid -> struct hyperv_guid.Sepherosa Ziehau2016-07-141-20/+8
| | | | | | | | | | | This paves way for the further cleanup/disentangle. MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7092 Notes: svn path=/head/; revision=302802
* hyperv/vmbus: Remove unused bitsSepherosa Ziehau2016-07-141-126/+0
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7091 Notes: svn path=/head/; revision=302801
* hyperv/vmbus: Reorganize MNF event sending.Sepherosa Ziehau2016-07-131-2/+3
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7088 Notes: svn path=/head/; revision=302731
* hyperv: Signal event input parameter is shared w/ MNFSepherosa Ziehau2016-07-131-2/+2
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7087 Notes: svn path=/head/; revision=302726
* hyperv/vmbus: Pack bool field into flags fieldSepherosa Ziehau2016-07-131-13/+14
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7038 Notes: svn path=/head/; revision=302709
* hyperv/bufring: Remove unused fieldsSepherosa Ziehau2016-07-131-3/+1
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7037 Notes: svn path=/head/; revision=302708
* hyperv/vmbus: Nuke unused field from hv_vmbus_channel.Sepherosa Ziehau2016-07-131-2/+0
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7036 Notes: svn path=/head/; revision=302707
* hyperv: Get rid of hv_device, which is unnecessary indirection.Sepherosa Ziehau2016-07-131-28/+6
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7034 Notes: svn path=/head/; revision=302706
* hyperv/vmbus: Deprecate the usage of hv_device.Sepherosa Ziehau2016-07-131-0/+1
| | | | | | | | | | | | This paves way to nuke the hv_device, which is actually an unncessary indirection. MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7032 Notes: svn path=/head/; revision=302703