aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/hyperv/vmbus/vmbus_var.h
Commit message (Collapse)AuthorAgeFilesLines
* Switch to contigmalloc in the Hyper-V codeAndrew Turner2023-06-061-6/+0
| | | | | | | | | | | | | | | In the Hyper-V drivers we need to allocate buffers shared between the host and guest. This memory has been allocated with bus_dma, however it doesn't use this correctly, e.g. it is missing calls to bus_dmamap_sync. Along with this on arm64 we need this memory to be mapped with the correct memory type that bus_dma may not use. Switch to contigmalloc to allocate this memory as this will correctly allocate cacheable memory. Reviewed by: Souradeep Chakrabarti <schakrabarti@microsoft.com> Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D40227
* hyperv: purge EOL release compatibilityElliott Mitchell2023-02-041-4/+0
| | | | | | | | Remove FreeBSD 11 and earlier support Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/603 Differential Revision: https://reviews.freebsd.org/D35560
* arm64: Hyper-V: enablement for ARM64 in Hyper-V (Part 3, final)Souradeep Chakrabarti2022-10-271-0/+15
| | | | | | | | | | | | This is the last part for ARM64 Hyper-V enablement. This includes commone files and make file changes to enable the ARM64 FreeBSD guest on Hyper-V. With this patch, it should be able to build the ARM64 image and install it on Hyper-V. Reviewed by: emaste, andrew, whu Tested by: Souradeep Chakrabarti <schakrabarti@microsoft.com> Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D36744
* hyperv/vmbus: Nuke unnecessary critical sections.Sepherosa Ziehau2016-12-281-1/+1
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D8906 Notes: svn path=/head/; revision=310651
* hyperv: Unbreak EARLY_AP_STARUP Hyper-V bootstrap by using intrhookSepherosa Ziehau2016-12-211-0/+3
| | | | | | | | | | Properly working pause and friends are required. MFC after: 3 days Sponsored by: Microsoft Notes: svn path=/head/; revision=310348
* hyperv/vmbus: Add exec cancel support for message Hypercall API.Sepherosa Ziehau2016-11-281-0/+2
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D8635 Notes: svn path=/head/; revision=309244
* hyperv/vmbus: Add result polling support for message Hypercall API.Sepherosa Ziehau2016-11-281-0/+3
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D8634 Notes: svn path=/head/; revision=309242
* hyperv/vmbus,pcib: unbreak build in case NEW_PCIB is undefinedDexuan Cui2016-11-251-0/+2
| | | | | | | | | | | | | vmbus_pcib requires NEW_PCIB, but in case that's not defined, we at least shouldn't break build. Reviewed by: sephe Approved by: sephe (mentor) MFC after: 3 days Sponsored by: Microsoft Notes: svn path=/head/; revision=309127
* hyperv/vmbus: add new vmbus methods to support PCIe pass-throughDexuan Cui2016-11-161-0/+10
| | | | | | | | | | | | | The new methods will be used by the coming pcib driver. Reviewed by: sephe Approved by: sephe (mentor) MFC after: 1 week Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D8409 Notes: svn path=/head/; revision=308724
* hyperv/vmbus: Add dynamic device add and remove supportSepherosa Ziehau2016-09-271-4/+9
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D8008 Notes: svn path=/head/; revision=306360
* hyperv/vmbus: Use xact APIs to implement post message Hypercall APIsSepherosa Ziehau2016-08-111-1/+1
| | | | | | | | | | | Avoid code duplication. MFC after: 1 week Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D7458 Notes: svn path=/head/; revision=303949
* hyperv/vmbus: Revoke unnecessary exposure of vmbus softcSepherosa Ziehau2016-07-291-14/+0
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D7348 Notes: svn path=/head/; revision=303473
* hyperv/vmbus: Reindent function declarations.Sepherosa Ziehau2016-07-291-15/+18
| | | | | | | | | 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-1/+0
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D7334 Notes: svn path=/head/; revision=303422
* hyperv: hv_vmbus_channel -> vmbus_channelSepherosa Ziehau2016-07-211-5/+5
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7260 Notes: svn path=/head/; revision=303131
* hyperv/vmbus: Shuffle function declaration and macro definition.Sepherosa Ziehau2016-07-211-8/+1
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7259 Notes: svn path=/head/; revision=303129
* hyperv/vmbus: Function renameSepherosa Ziehau2016-07-151-0/+2
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7129 Notes: svn path=/head/; revision=302868
* hyperv/vmbus: Move bus related message processing into vmbus.Sepherosa Ziehau2016-07-141-3/+11
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7125 Notes: svn path=/head/; revision=302823
* hyperv/vmbus: Field renaming to reflect realitySepherosa Ziehau2016-07-141-2/+3
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7111 Notes: svn path=/head/; revision=302817
* hyperv/vmbus: Release vmbus channel lock before detach devicesSepherosa Ziehau2016-07-141-0/+1
| | | | | | | | | | | | | | Device detach method may sleep. While I'm here, rename the function, fix indentation and function comment. MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7110 Notes: svn path=/head/; revision=302816
* hyperv/vmbus: Reorganize MNF event sending.Sepherosa Ziehau2016-07-131-1/+1
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7088 Notes: svn path=/head/; revision=302731
* hyperv/vmbus: Merge hv_connection.c into hv_channel.cSepherosa Ziehau2016-07-131-1/+0
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D7004 Notes: svn path=/head/; revision=302692
* hyperv/vmbus: Move channel map to vmbus_softcSepherosa Ziehau2016-07-121-0/+1
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6982 Notes: svn path=/head/; revision=302636
* hyperv/vmbus: Move channel list to vmbus_softcSepherosa Ziehau2016-07-121-0/+3
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6956 Notes: svn path=/head/; revision=302631
* hyperv/vmbus: Move GPADL index into vmbus_softcSepherosa Ziehau2016-07-121-0/+3
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6954 Notes: svn path=/head/; revision=302630
* hyperv/vmbus: Rework vmbus version accessing.Sepherosa Ziehau2016-07-121-1/+5
| | | | | | | | | | | | 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: Busdma-fy Hypercall signal event input parameter.Sepherosa Ziehau2016-07-121-0/+6
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6916 Notes: svn path=/head/; revision=302619
* hyperv/vmbus: Use post message Hypercall APIs for GPADL connect.Sepherosa Ziehau2016-07-121-0/+1
| | | | | | | | | | | This also fixes memory leakge if sub-connect messages are needed. MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6878 Notes: svn path=/head/; revision=302609
* hyperv/vmbus: Reorganize vmbus scan process.Sepherosa Ziehau2016-07-121-0/+8
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6875 Notes: svn path=/head/; revision=302606
* hyperv/vmbus: Implement a new set of APIs for post message HypercallSepherosa Ziehau2016-07-111-0/+11
| | | | | | | | | | | | 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/vmbus: Change tx_evtflags type to u_long to match vmbus_evtflagsSepherosa Ziehau2016-06-081-1/+1
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6745 Notes: svn path=/head/; revision=301588
* hyperv/vmbus: Busdma-fy MNF and event flags.Sepherosa Ziehau2016-06-081-1/+15
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6744 Notes: svn path=/head/; revision=301583
* hyperv/vmbus: Constify channel messageSepherosa Ziehau2016-06-061-2/+1
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6708 Notes: svn path=/head/; revision=301488
* hyperv/vmbus: Factor out channel message processingSepherosa Ziehau2016-06-061-0/+4
| | | | | | | | | | | This paves the way for further cleanup. MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6707 Notes: svn path=/head/; revision=301487
* hyperv/vmbus: Redefine event flags.Sepherosa Ziehau2016-06-011-3/+3
| | | | | | | | | | | | - Nuke unnecessary union. - Avoid convoluted macro indirection. MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6671 Notes: svn path=/head/; revision=301106
* hyperv/vmbus: Rename ISR functionsSepherosa Ziehau2016-05-311-0/+1
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6601 Notes: svn path=/head/; revision=301015
* hyperv/vmbus: Move SINT settings to vmbus_var.hSepherosa Ziehau2016-05-301-0/+18
| | | | | | | | | | | While I'm here remove the event timer's dependency on hv_vmbus_priv.h MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6574 Notes: svn path=/head/; revision=300988
* hyperv/vmbus: Move two global flags into vmbus softcSepherosa Ziehau2016-05-251-0/+4
| | | | | | | | | | | And pack them into one flag field. MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6522 Notes: svn path=/head/; revision=300650
* hyperv/vmbus: Move vcpuid into vmbus softc per-cpu dataSepherosa Ziehau2016-05-251-0/+1
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6521 Notes: svn path=/head/; revision=300647
* hyperv/vmbus: Move event/message taskqueue/task to vmbus softcSepherosa Ziehau2016-05-251-0/+5
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6520 Notes: svn path=/head/; revision=300646
* hyperv/vmbus: Git rid of sc version of pcpu data extraction macroSepherosa Ziehau2016-05-241-6/+2
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6503 Notes: svn path=/head/; revision=300573
* hyperv/vmbus: Use busdma(9) for messages and event flagsSepherosa Ziehau2016-05-241-2/+10
| | | | | | | | | | | | | And - Move message and event flags to vmbus_softc per-cpu data. - Get rid of hv_setup_arg, which serves no purpose now. MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6502 Notes: svn path=/head/; revision=300572
* hyperv/vmbus: Move vmbus interrupt counter into vmbus softcSepherosa Ziehau2016-05-241-0/+1
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6497 Notes: svn path=/head/; revision=300565
* hyperv/vmbus: Move IDT vector to vmbus_softcSepherosa Ziehau2016-05-231-0/+1
| | | | | | | | | | | Prepare to get rid of the hv_setup_arg. MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6449 Notes: svn path=/head/; revision=300487
* hyperv/vmbus: Get rid of vmbus_devpSepherosa Ziehau2016-05-231-0/+7
| | | | | | | | | | | While I'm here, nuke useless print in vmbus_attach(). MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6447 Notes: svn path=/head/; revision=300486
* hyperv/vmbus: Avoid two unnecessary protocol checks on isr handling pathSepherosa Ziehau2016-05-181-4/+9
| | | | | | | | | MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6405 Notes: svn path=/head/; revision=300107
* hyperv/vmbus: Reduce the # of event loops by recording event flag countSepherosa Ziehau2016-05-181-0/+57
Use vmbus softc to save vmbus per-cpu data. More stuffs will be moved into vmbus softc. MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D6403 Notes: svn path=/head/; revision=300102