summaryrefslogtreecommitdiff
path: root/sys/dev/vmt.c
AgeCommit message (Collapse)Author
2014-03-29It's been a quarter century: we can assume volatile is present with that name.Philip Guenther
ok dlg@ mpi@ deraadt@
2013-11-11Replace most of our formating functions to convert IPv4/6 addresses fromMartin Pieuchot
network to presentation format to inet_ntop(). The few remaining functions will be soon converted. ok mikeb@, deraadt@ and moral support from henning@
2013-10-26Use the "activate" framework rather a shutdown hookTheo de Raadt
ok jmatthew dlg pelikan
2013-10-14defer the first update of the sensor as late in the boot process we canDavid Gwynne
but running it from the mountroot hooks. this means the clock will be attached and therefore better to compare the hypervisors clock against. before we used to get ridiculous timedeltas, which if ntpd used to set the time with on startup (ie, ntpd -s) would make us think we were in 2057 or 2104. ok jmatthew@
2013-07-03cast time_t to long long, time_t is signed, tv_nsec is longStefan Fritsch
ok deraadt@
2012-09-11Check that the host supports GET_SPEED as well as GET_VERSION before decidingDarren Tucker
vmt_probe has succeeded. qemu supports GET_VERSION but not the RPC protocol so the probe succeeds but the attach fails, resulting in "vmt0: failed to open backdoor RPC channel (TCLO protocol)". All known versions of vmware support GET_SPEED and no known qemu versions do, so this prevents it from attempting to attach (and failing) on qemu while still working on vmware. with & ok jmatthew@ dlg@
2011-01-27Fix newlines for error on attach case. with & ok dlg.Darren Tucker
2010-11-03only let vmt match and therefore attach if mainbus is specifically askingDavid Gwynne
for vmt to attach after vmt_probe succeeds. this prevents vmt from appearing at other attach points hanging off mainbus. found by phessler@ and debugged gently by claudio@
2010-10-26log suspends and resumes. resend hostname and address info from the guestDavid Gwynne
to the host on resume. from jonathan matthew reviewed and ok matthew@
2010-10-26big update to vmware tools functionality from jonathan matthew.David Gwynne
vmt(4) will now: - initiate shutdown by signalling init with SIGUSR2 when requested by the host. - initiate a reboot by signalling init with SIGINT when requested by the host. - report the guests hostname to the host - report the guests first non-loopback IP address to the host - report the guests uptime to the host - update the guests timedelta sensor using the 64bit rpc vmt(4) now does the majority of what people actually need. this has been tested on vmware server 2.0.2 with linux as the host, vmware esx 4.0, and vmware esx 4.1 testing by jonathan matthew and myself. previous versions of the changes were also tested by johan allard and srebrenko sehic. code reviewed by and ok matthew@ thanks moch and johan :)
2009-12-28whitespaceDavid Gwynne
2009-12-28tweak vmt to work on amd64 as well as i386. like i386, it is stillDavid Gwynne
commented out in GENERIC. it needs more love. diff by david cranshaw a long time ago. sorry it has taken so long for me to look at it.
2009-04-26in ca_attach() there is no need to set .value and .flags of sensors to 0,Constantine A. Murenin
since autoconf(9) allocates softc with M_ZERO; ok deraadt
2008-10-23use the correct idiom for NFOO things which come from "foo.h" filesTheo de Raadt
ok dlg
2008-09-10Convert timeout_add() calls using multiples of hz to timeout_add_sec()Bret Lambert
Really just the low-hanging fruit of (hopefully) forthcoming timeout conversions. ok art@, krw@
2008-07-12reference vmt (openbsd) rather than vmware (xorg)Chris Kuethe
ok dlg
2008-07-08vmt(4) is a kernel level implementation of the vmware tools.David Gwynne
it only provides the hosts machines clock as a timedelta sensor so far. getting it into the tree so people can work on it as suggested by fgsch@