summaryrefslogtreecommitdiffstats
path: root/sys/dev/pv/vmt.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Initialize var since it's used in a condition a little bit afterwards.mestre2021-02-111-2/+2
| | | | | | CID 1501713 ok jmatthew@
* Report full IP address information to the host. Contrary to what I wrotejmatthew2021-01-151-9/+300
| | | | | | here 10 years ago, xdr isn't scary at all. ok dlg@
* Make vm_rpc_send_rpci_tx_buf() use the buffer passed in, not the bufferjmatthew2021-01-131-2/+2
| | | | | | | allocated as part of the softc, though it's always been the same buffer so far. ok dlg@
* put M_ZERO in the right placejmatthew2021-01-131-2/+2
| | | | ok dlg@
* kernel: use gettime(9)/getuptime(9) in lieu of time_second(9)/time_uptime(9)cheloha2020-06-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | time_second(9) and time_uptime(9) are widely used in the kernel to quickly get the system UTC or system uptime as a time_t. However, time_t is 64-bit everywhere, so it is not generally safe to use them on 32-bit platforms: you have a split-read problem if your hardware cannot perform atomic 64-bit reads. This patch replaces time_second(9) with gettime(9), a safer successor interface, throughout the kernel. Similarly, time_uptime(9) is replaced with getuptime(9). There is a performance cost on 32-bit platforms in exchange for eliminating the split-read problem: instead of two register reads you now have a lockless read loop to pull the values from the timehands. This is really not *too* bad in the grand scheme of things, but compared to what we were doing before it is several times slower. There is no performance cost on 64-bit (__LP64__) platforms. With input from visa@, dlg@, and tedu@. Several bugs squashed by visa@. ok kettenis@
* dev/rndvar.h no longer has statistical interfaces (removed during variousderaadt2020-05-291-2/+1
| | | | | | conversion steps). it only contains kernel prototypes for 4 interfaces, all of which legitimately belong in sys/systm.h, which are already included by all enqueue_randomness() users.
* Force a guest info update when we get a Capabilities_Register command.jmatthew2020-02-161-3/+11
| | | | | | | | ESXi doesn't carry the guest info over when a guest gets moved to a different host, and this appears to be the only hint the guest gets that this has happened. ok dlg@
* include sys/sensors.h for sensor usejsg2019-12-311-1/+2
|
* replace add_*_randomness with enqueue_randomness()jasper2018-04-281-5/+5
| | | | | | | | | this gets rid of the source annotation which doesn't really add anything other than adding complexitiy. randomess is generally good enough that the few extra bits that the source type would add are not worth it. ok mikeb@ deraadt@
* Implement the VMWare vmbackup protocol using vfs_stall(). This lets youjmatthew2018-03-081-2/+154
| | | | | | | clone running guests and take disk-only snapshots, most of the time ending up with a clean filesystem. ok dlg@ deraadt@
* update link to Ken Kato's vmware backdoor protocol documentationjmatthew2017-06-041-2/+2
| | | | from Seth Jackson
* yasuoka@ reported that a "guest shutdown" resulted in a reboot insteadjsg2017-02-031-2/+2
| | | | | | | of a shutdown. Correct a mistake in rev 1.11 to make this trigger a shutdown again. ok reyk@
* Introduce pvbus_reboot() and pvbus_shutdown() to move the repeatedreyk2017-01-101-13/+3
| | | | | | | | tasks from the PV drivers into a central place. While here, we figured out that it is not needed to check for allowpowerdown on the hypervisor-initiated shutdown requests. OK mikeb@
* Use "%s" in vm_rpc_send_rpci_tx() call. Avoids a "format string is not akettenis2016-10-041-2/+2
| | | | | | string literal" warning from clang. ok jca@
* Increase the RPC buffer once more to 4096 bytes. The guestinfo.ovfEnvreyk2016-02-031-14/+26
| | | | | | | | | | | mechanism is used to configure VMs in the VMware vSphere world: instead of using individual key-value guestinfo.* properties, it uses the guestinfo.ovfEnv value to pass an enterprise-compliant XML file that includes key-value properties. This file can be rather large, especially with comments, but 4k ought to be enough for anybody. Also change a stack buffer to malloc'ed memory in the ioctl path. OK mikeb@
* Add a key-value interface to pvbus(4) that allows to get or set valuesreyk2016-01-271-2/+57
| | | | | | | | | | | | | | in the underlying information store of the host from the OpenBSD-VM's userspace. OpenBSD did not provide access to these stores before, mostly because we did not want to add a custom tool and interface for each hypervisor. The pvbus(4) interface provides backends for xen(4)'s XenStore and vmt(4)'s VMware Tools "guestinfo". These information stores are fairly different, XenStore is a "filesystem" while vmt is a RPC, and the key-value abstraction limits them a bit but provides the most wanted functionality. Discussed with many OK mikeb@
* Use config_mountroot(9) instead of startuphook_establish(9).mpi2015-12-171-4/+12
| | | | Fix a regression reported by Ian Mcwilliam on tech@
* Replace mountroothook_establish(9) by config_mountroot(9) a narrower APImpi2015-12-111-2/+2
| | | | | | similar to config_defer(9). ok mikeb@, deraadt@
* size for free()deraadt2015-08-271-2/+2
|
* Merge two return branches in vmt_tclo_tick(). No functional changes.uebayasi2015-08-121-3/+3
|
* Add callbacks for supported hypervisors in pvbus(4) to print morereyk2015-07-281-3/+4
| | | | | | | | | | information and for some generic CPUID/MSR-level initialization. This changes the attach/match path a bit. Hypervisor informatiom may include a version number, for example: pvbus0 at mainbus0: Hyper-V 6.3.9600 OK mlarkin@
* Switch pvbus(4) to fully dynamic autoconf - drivers don't have to bereyk2015-07-211-3/+6
| | | | | | listed in pvbus.c anymore and are defined by the config only. OK mlarkin@ sf@
* Move vmt.c to sys/dev/pv/vmt.c. The history is lost but can be foundreyk2015-07-211-0/+1292
in the Attic of sys/dev/vmt.c. OK to do it deraadt@