aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/hyperv/include
Commit message (Collapse)AuthorAgeFilesLines
...
* hyperv/hn: Busdma-fy rxbuf and chimney sending bufferSepherosa Ziehau2016-07-152-14/+14
| | | | | | | | | | | 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-152-29/+32
| | | | | | | | | 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-152-7/+3
| | | | | | | | | 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-152-8/+2
| | | | | | | | | | | 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-152-22/+10
| | | | | | | | | 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-152-2/+2
| | | | | | | | | 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-152-25/+13
| | | | | | | | | 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-152-15/+49
| | | | | | | | | 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
* hyperv/vmbus: Add channel ivar accessor.Sepherosa Ziehau2016-07-131-1/+5
| | | | | | | | | | | This makes life easier during the transition period to nuke the hv_device. MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7026 Notes: svn path=/head/; revision=302700
* hyperv/vmbus: Remove the embedded offer message from hv_vmbus_channelSepherosa Ziehau2016-07-131-1/+0
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7021 Notes: svn path=/head/; revision=302697
* hyperv/vmbus: Add type/instance guid fields into hv_vmbus_channelSepherosa Ziehau2016-07-131-0/+3
| | | | | | | | | | | | This prepares to remove the unnecessary offer message embedding in hv_vmbus_channel. MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7020 Notes: svn path=/head/; revision=302696
* hyperv/vmbus: Add flags field into hv_vmbus_channel for MNF indicationSepherosa Ziehau2016-07-131-0/+3
| | | | | | | | | | | | This prepares to remove the unnecessary offer message embedding in hv_vmbus_channel. MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7019 Notes: svn path=/head/; revision=302695
* hyperv/vmbus: Make subchan index a field of hv_vmbus_channel.Sepherosa Ziehau2016-07-131-0/+1
| | | | | | | | | | | | This prepares to remove the unnecessary offer message embedding in hv_vmbus_channel. MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7015 Notes: svn path=/head/; revision=302694
* hyperv/vmbus: Make channel id a field of hv_vmbus_channel.Sepherosa Ziehau2016-07-131-0/+1
| | | | | | | | | | | | This prepares to remove the unnecessary offer message embedding in hv_vmbus_channel. MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7014 Notes: svn path=/head/; revision=302693
* hyperv/vmbus: Fix sub-channel re-open support.Sepherosa Ziehau2016-07-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | For multi-channel devices, once the primary channel is closed, a set of 'rescind' messages for sub-channels will be delivered by Hypervisor. Sub-channel MUST be freed according to these 'rescind' messages; directly re-openning sub-channels in the same fashion as the primary channel's re-opening does NOT work at all. After the primary channel is re-opened, requested # of sub- channels will be delivered though 'channel offer' messages, and this set of newly offered channels can be opened along side with the primary channel. This unbreaks the MTU setting for hn(4), which requires re- openning all existsing channels upon MTU change. MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6978 Notes: svn path=/head/; revision=302634
* hyperv/vmbus: Free sysctl properly upon channel close.Sepherosa Ziehau2016-07-121-0/+3
| | | | | | | | | | | Prepare for sub-channel re-open. MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6977 Notes: svn path=/head/; revision=302633
* hyperv/vmbus: Move channel list to vmbus_softcSepherosa Ziehau2016-07-121-1/+1
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6956 Notes: svn path=/head/; revision=302631
* hyperv/vmbus: Rework vmbus version accessing.Sepherosa Ziehau2016-07-121-5/+7
| | | | | | | | | | | | Instead of global variable, vmbus version is accessed through a vmbus DEVMETHOD now. MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6953 Notes: svn path=/head/; revision=302629
* hyperv/vmbus: Don't be oversmart in default cpu selection.Sepherosa Ziehau2016-07-121-0/+1
| | | | | | | | | | | | Pin the channel to cpu0 by default. Drivers having special channel-cpu mapping requirement should call vmbus_channel_cpu_{set,rr}() themselves. MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6918 Notes: svn path=/head/; revision=302621
* hyperv/vmbus: Busdma-fy Hypercall signal event input parameter.Sepherosa Ziehau2016-07-122-22/+7
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6916 Notes: svn path=/head/; revision=302619
* hyperv: Nuke unused stuffsSepherosa Ziehau2016-07-121-168/+0
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6913 Notes: svn path=/head/; revision=302612
* hyperv/vmbus: Embed channel detach task in channel itself.Sepherosa Ziehau2016-07-111-0/+2
| | | | | | | | | | | GC work queue stuffs. MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6864 Notes: svn path=/head/; revision=302559
* hyperv/vmbus: Save vmbus softc to channels.Sepherosa Ziehau2016-07-111-0/+1
| | | | | | | | | | | So that we don't need to access the global vmbus softc. MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6863 Notes: svn path=/head/; revision=302557
* hyperv/vmbus: Implement a new set of APIs for post message HypercallSepherosa Ziehau2016-07-111-18/+0
| | | | | | | | | | | | And use this new APIs for Initial Contact post message Hypercall. More post message Hypercalls will be converted. MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6830 Notes: svn path=/head/; revision=302540
* hyperv: Move guid2str from vmbus file to hyperv fileSepherosa Ziehau2016-05-311-2/+4
| | | | | | | | | | | | | | - Use uint8_t for GUID byte array. - Define GUID string length. - Break long lines. - Nuke unnecessary stack variable. MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6640 Notes: svn path=/head/; revision=301021
* hyperv: Add helpers for busdma(9) operationSepherosa Ziehau2016-05-231-0/+45
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6443 Notes: svn path=/head/; revision=300478
* sys/dev: minor spelling fixes.Pedro F. Giffuni2016-05-031-1/+1
| | | | | | | Most affect comments, very few have user-visible effects. Notes: svn path=/head/; revision=298955
* hyperv/channel: Git rid of the sub-channel creation callbackSepherosa Ziehau2016-04-261-8/+0
| | | | | | | | | | It is no longer used. MFC after: 1 week Sponsored by: Microsoft OSTC Notes: svn path=/head/; revision=298617
* hyperv/channel: Add functions to synchronize sub-channel offersSepherosa Ziehau2016-04-251-0/+4
| | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Notes: svn path=/head/; revision=298574
* hyperv: Update copyright to 2016 for the files Microsoft changed in 2016Sepherosa Ziehau2016-04-221-1/+1
| | | | | | | | Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6039 Notes: svn path=/head/; revision=298446
* hyperv: Factor out snprinf_hv_guid()Sepherosa Ziehau2016-03-211-0/+2
| | | | | | | | | | | Submitted by: Ju Sun <junsu microsoft com> Reviewed by: Dexuan Cui <decui microsoft com>, sephe MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D5651 Notes: svn path=/head/; revision=297142