OpenBSD CVS

CVS log for src/sys/dev/Attic/vmt.c


[BACK] Up to [local] / src / sys / dev

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.31, Tue Jul 21 09:13:11 2015 UTC (8 years, 10 months ago) by reyk
Branch: MAIN
CVS Tags: HEAD
Changes since 1.30: +1 -1 lines
FILE REMOVED

Move vmt.c to sys/dev/pv/vmt.c.  The history is lost but can be found
in the Attic of sys/dev/vmt.c.

OK to do it deraadt@

Revision 1.30 / (download) - annotate - [select for diffs], Tue Jul 21 03:38:22 2015 UTC (8 years, 10 months ago) by reyk
Branch: MAIN
Changes since 1.29: +6 -1 lines
Diff to previous 1.29 (colored)

Add pvbus(4), a pseudo-bus to attach non-PCI paravirtual devices and buses.
vmt(4) is moved from mainbus0 to pvbus0, more devices will follow.

OK sf@ deraadt@

Revision 1.29 / (download) - annotate - [select for diffs], Sat Mar 14 03:38:46 2015 UTC (9 years, 2 months ago) by jsg
Branch: MAIN
Changes since 1.28: +1 -2 lines
Diff to previous 1.28 (colored)

Remove some includes include-what-you-use claims don't
have any direct symbols used.  Tested for indirect use by compiling
amd64/i386/sparc64 kernels.

ok tedu@ deraadt@

Revision 1.28 / (download) - annotate - [select for diffs], Sat Feb 7 01:19:40 2015 UTC (9 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

New framework that allows hibernate to pass in entropy from it's fresh
boot.
ok mlarkin

Revision 1.27 / (download) - annotate - [select for diffs], Sat Dec 20 11:27:18 2014 UTC (9 years, 5 months ago) by reyk
Branch: MAIN
Changes since 1.26: +291 -184 lines
Diff to previous 1.26 (colored)

Cleanup vmt(4) by changing an ugly if statement for received commands
into a table of callbacks.  Additionally, turn printfs into DPRINTFs
to make the driver less chatty by default.

OK deraadt@

Revision 1.26 / (download) - annotate - [select for diffs], Fri Dec 19 15:14:48 2014 UTC (9 years, 5 months ago) by reyk
Branch: MAIN
Changes since 1.25: +34 -34 lines
Diff to previous 1.25 (colored)

shuffle function declarations a bit;  stylistic changes only.

Revision 1.25 / (download) - annotate - [select for diffs], Fri Dec 19 15:07:33 2014 UTC (9 years, 5 months ago) by reyk
Branch: MAIN
Changes since 1.24: +4 -4 lines
Diff to previous 1.24 (colored)

No need to include sys/types.h when sys/param.h is already included.
While here, sort includes a bit. No functional change.

Revision 1.24 / (download) - annotate - [select for diffs], Thu Dec 18 19:31:37 2014 UTC (9 years, 5 months ago) by reyk
Branch: MAIN
Changes since 1.23: +47 -29 lines
Diff to previous 1.23 (colored)

Wrap more of these long lines.

Revision 1.23 / (download) - annotate - [select for diffs], Thu Dec 18 19:22:21 2014 UTC (9 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.22: +47 -27 lines
Diff to previous 1.22 (colored)

wrap unreasonably long lines

Revision 1.22 / (download) - annotate - [select for diffs], Thu Dec 18 19:18:22 2014 UTC (9 years, 5 months ago) by reyk
Branch: MAIN
Changes since 1.21: +14 -2 lines
Diff to previous 1.21 (colored)

The VM host might send multiple messages at once but vmt(4) only
processed one of time per second.  Change the code to process all
queued messages without delay immediately.  This fixes two things: a)
the vmt time sensor is available on boot when ntpd -s is loaded and b)
the random seeding on resume (OS_Resume message) is executed almost
immediately and not delayed by about 20 seconds.

ok deraadt@

Revision 1.21 / (download) - annotate - [select for diffs], Thu Dec 18 16:30:29 2014 UTC (9 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.20: +33 -1 lines
Diff to previous 1.20 (colored)

When a VM resume occurs, request information from the VM and enqueue as
entropy - then do a RNG resume.
If the VM signals a boot/reboot/suspend action, push the RNG into suspend.
ok reyk djm

Revision 1.20 / (download) - annotate - [select for diffs], Fri Dec 5 15:50:03 2014 UTC (9 years, 5 months ago) by mpi
Branch: MAIN
Changes since 1.19: +2 -1 lines
Diff to previous 1.19 (colored)

Explicitly include <net/if_var.h> instead of pulling it in <net/if.h>.

ok mikeb@, krw@, bluhm@, tedu@

Revision 1.19 / (download) - annotate - [select for diffs], Sat Jul 12 18:48:51 2014 UTC (9 years, 10 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

add a size argument to free. will be used soon, but for now default to 0.
after discussions with beck deraadt kettenis.

Revision 1.18 / (download) - annotate - [select for diffs], Fri Jul 11 08:18:31 2014 UTC (9 years, 10 months ago) by guenther
Branch: MAIN
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

It's init as a process that's special, not init's original thread.
Remember initprocess instead of initproc.

ok matthew@ blambert@

Revision 1.17 / (download) - annotate - [select for diffs], Sat Mar 29 18:09:30 2014 UTC (10 years, 2 months ago) by guenther
Branch: MAIN
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

It's been a quarter century: we can assume volatile is present with that name.

ok dlg@ mpi@ deraadt@

Revision 1.16 / (download) - annotate - [select for diffs], Mon Nov 11 09:15:34 2013 UTC (10 years, 6 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.15: +5 -2 lines
Diff to previous 1.15 (colored)

Replace most of our formating functions to convert IPv4/6 addresses from
network to presentation format to inet_ntop().

The few remaining functions will be soon converted.

ok mikeb@, deraadt@ and moral support from henning@

Revision 1.15 / (download) - annotate - [select for diffs], Sat Oct 26 21:05:09 2013 UTC (10 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.14: +21 -6 lines
Diff to previous 1.14 (colored)

Use the "activate" framework rather a shutdown hook
ok jmatthew dlg pelikan

Revision 1.14 / (download) - annotate - [select for diffs], Mon Oct 14 00:20:49 2013 UTC (10 years, 7 months ago) by dlg
Branch: MAIN
Changes since 1.13: +3 -2 lines
Diff to previous 1.13 (colored)

defer the first update of the sensor as late in the boot process we can
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@

Revision 1.13 / (download) - annotate - [select for diffs], Wed Jul 3 15:26:02 2013 UTC (10 years, 11 months ago) by sf
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

cast time_t to long long, time_t is signed, tv_nsec is long

ok deraadt@

Revision 1.12 / (download) - annotate - [select for diffs], Tue Sep 11 04:40:14 2012 UTC (11 years, 8 months ago) by dtucker
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.11: +22 -12 lines
Diff to previous 1.11 (colored)

Check that the host supports GET_SPEED as well as GET_VERSION before deciding
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@

Revision 1.11 / (download) - annotate - [select for diffs], Thu Jan 27 21:29:25 2011 UTC (13 years, 4 months ago) by dtucker
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.10: +6 -4 lines
Diff to previous 1.10 (colored)

Fix newlines for error on attach case.  with & ok dlg.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Nov 3 10:15:23 2010 UTC (13 years, 7 months ago) by dlg
Branch: MAIN
Changes since 1.9: +4 -3 lines
Diff to previous 1.9 (colored)

only let vmt match and therefore attach if mainbus is specifically asking
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@

Revision 1.9 / (download) - annotate - [select for diffs], Tue Oct 26 01:16:11 2010 UTC (13 years, 7 months ago) by dlg
Branch: MAIN
Changes since 1.8: +24 -1 lines
Diff to previous 1.8 (colored)

log suspends and resumes. resend hostname and address info from the guest
to the host on resume.

from jonathan matthew
reviewed and ok matthew@

Revision 1.8 / (download) - annotate - [select for diffs], Tue Oct 26 00:57:21 2010 UTC (13 years, 7 months ago) by dlg
Branch: MAIN
Changes since 1.7: +497 -99 lines
Diff to previous 1.7 (colored)

big update to vmware tools functionality from jonathan matthew.

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 :)

Revision 1.7 / (download) - annotate - [select for diffs], Mon Dec 28 14:25:34 2009 UTC (14 years, 5 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.6: +37 -37 lines
Diff to previous 1.6 (colored)

whitespace

Revision 1.6 / (download) - annotate - [select for diffs], Mon Dec 28 14:22:09 2009 UTC (14 years, 5 months ago) by dlg
Branch: MAIN
Changes since 1.5: +84 -32 lines
Diff to previous 1.5 (colored)

tweak vmt to work on amd64 as well as i386. like i386, it is still
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.

Revision 1.5 / (download) - annotate - [select for diffs], Sun Apr 26 02:20:58 2009 UTC (15 years, 1 month ago) by cnst
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.4: +1 -3 lines
Diff to previous 1.4 (colored)

in ca_attach() there is no need to set .value and .flags of sensors to 0,
since autoconf(9) allocates softc with M_ZERO;  ok deraadt

Revision 1.4 / (download) - annotate - [select for diffs], Thu Oct 23 22:22:43 2008 UTC (15 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

use the correct idiom for NFOO things which come from "foo.h" files
ok dlg

Revision 1.3 / (download) - annotate - [select for diffs], Wed Sep 10 14:01:23 2008 UTC (15 years, 8 months ago) by blambert
Branch: MAIN
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

Convert timeout_add() calls using multiples of hz to timeout_add_sec()

Really just the low-hanging fruit of (hopefully) forthcoming timeout
conversions.

ok art@, krw@

Revision 1.2 / (download) - annotate - [select for diffs], Sat Jul 12 23:17:33 2008 UTC (15 years, 10 months ago) by ckuethe
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

reference vmt (openbsd) rather than vmware (xorg)
ok dlg

Revision 1.1 / (download) - annotate - [select for diffs], Tue Jul 8 05:22:00 2008 UTC (15 years, 10 months ago) by dlg
Branch: MAIN

vmt(4) is a kernel level implementation of the vmware tools.

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@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.