aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/vmware/vmci
Commit message (Collapse)AuthorAgeFilesLines
* vmware: Fix a typo in a source code commentGordon Bergling2024-01-231-1/+1
| | | | | | - s/withing/within/ (cherry picked from commit 623848af604116aa33bc8a66d2ac45b4cbaccfd8)
* sys: Remove $FreeBSD$: one-line bare tagWarner Losh2023-08-161-1/+0
| | | | Remove /^\s*\$FreeBSD\$$\n/
* sys: Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-1610-20/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* sys: Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-1617-34/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* vmci(4): Correct some typos in source code commentsGordon Bergling2022-09-041-2/+2
| | | | | | - s/occured/occurred/ MFC after: 3 days
* vmware: Remove unused devclass arguments to DRIVER_MODULE.John Baldwin2022-05-061-2/+1
|
* vmci: Remove unused variables.John Baldwin2022-04-082-9/+0
|
* vmci: Avoid relying on macro expansion to provide correct syntaxMark Johnston2021-11-031-1/+1
| | | | | | | No functional change intended. MFC after: 3 days Sponsored by: The FreeBSD Foundation
* vmci: fix panic due to freeing unallocated resourcesMark Peek2021-10-095-4/+61
| | | | | | | | | | | | | | | | | | | | | Summary: An error mapping PCI resources results in a panic due to unallocated resources being freed up. This change puts the appropriate checks in place to prevent the panic. PR: 252445 Reported by: Marek Zarychta <zarychtam@plan-b.pwste.edu.pl> Tested by: marcus MFC after: 1 week Sponsored by: VMware Test Plan: Along with user testing, also simulated error by inserting a ENXIO return in vmci_map_bars(). Reviewed by: marcus Subscribers: imp Differential Revision: https://reviews.freebsd.org/D32016
* vmci(4): Shorten interrupt descriptions.Alexander Motin2021-07-221-3/+3
| | | | | | | We have no space there for such a long strings. Also it makes no sense to set description if there is only one interrupt. MFC after: 2 weeks
* vmware: clean up empty lines in .c and .h filesMateusz Guzik2020-09-017-9/+0
| | | | Notes: svn path=/head/; revision=365089
* Add MODULE_PNP_INFO() to vmci(4). This allows devd(8) to load theHiroki Sato2019-08-251-4/+13
| | | | | | | | | | kernel module automatically when FreeBSD is running on VMware. Reviewed by: mp Differential Revision: https://reviews.freebsd.org/D21182 Notes: svn path=/head/; revision=351482
* Extract eventfilter declarations to sys/_eventfilter.hConrad Meyer2019-05-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | This allows replacing "sys/eventfilter.h" includes with "sys/_eventfilter.h" in other header files (e.g., sys/{bus,conf,cpu}.h) and reduces header pollution substantially. EVENTHANDLER_DECLARE and EVENTHANDLER_LIST_DECLAREs were moved out of .c files into appropriate headers (e.g., sys/proc.h, powernv/opal.h). As a side effect of reduced header pollution, many .c files and headers no longer contain needed definitions. The remainder of the patch addresses adding appropriate includes to fix those files. LOCK_DEBUG and LOCK_FILE_LINE_ARG are moved to sys/_lock.h, as required by sys/mutex.h since r326106 (but silently protected by header pollution prior to this change). No functional change (intended). Of course, any out of tree modules that relied on header pollution for sys/eventhandler.h, sys/lock.h, or sys/mutex.h inclusion need to be fixed. __FreeBSD_version has been bumped. Notes: svn path=/head/; revision=347984
* Update VMCI license based on comments from core, the FreeBSD Foundation,Mark Peek2018-04-0828-27/+78
| | | | | | | | | | | | | | and VMware legal: - Add a dual BSD-2 Clause/GPLv2 LICENSE file in the VMCI directory - Remove the use of "All Rights Reserved" - Per best practice, remove copyright/license info from Makefile Reviewed by: imp, emaste, jhb, Vishnu Dasa <vdasa@vmware.com> Approved by: VMware legal via Mark Peek <markpeek@vmware.com> Differential Revision: https://reviews.freebsd.org/D14979 Notes: svn path=/head/; revision=332263
* Rectify VMCI SPDX licenseMark Peek2018-03-2727-27/+27
| | | | | | | Approved by: Vishnu Dasa <vdasa@vmware.com> Notes: svn path=/head/; revision=331609
* vmci(4): Fix GCC build and rationalize vmci_kernel_defs.hConrad Meyer2018-03-263-10/+7
| | | | | | | | | | | | | | | | | | | To fix the GCC build, remove multiple redundant declarations of vmci_send_datagram() (the copy in vmci.h as well as the extern definition in vmci_queue_pair.c were wholly redundant). Also to fix the GCC build, include a non-empty format string in the vmci(4) definition of ASSERT(). It seems harmless either way, but adding the stringified invariant is easier than masking the warning. The other vmci_kernel_defs.h changes are cosmetic and simply match macros to existing definitions. Reported by: GCC 6.4.0 Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=331566
* Add VMCI (Virtual Machine Communication Interface) driverMark Peek2018-03-2527-0/+9434
In a virtual machine, VMCI is exposed as a regular PCI device. The primary communication mechanisms supported are a point-to-point bidirectional transport based on a pair of memory-mapped queues, and asynchronous notifications in the form of datagrams and doorbells. These features are available to kernel level components such as vSockets through the VMCI kernel API. In addition to this, the VMCI kernel API provides support for receiving events related to the state of the VMCI communication channels, and the virtual machine itself. Submitted by: Vishnu Dasa <vdasa@vmware.com> Reviewed by: bcr, imp Obtained from: VMware Differential Revision: https://reviews.freebsd.org/D14289 Notes: svn path=/head/; revision=331510