The NetBSD Project

CVS log for src/usr.sbin/postinstall/postinstall.in

[BACK] Up to [cvs.NetBSD.org] / src / usr.sbin / postinstall

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.51 / (download) - annotate - [select for diffs], Sun May 29 10:47:40 2022 UTC (12 months, 1 week ago) by andvar
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, HEAD
Changes since 1.50: +2 -2 lines
Diff to previous 1.50 (colored)

fix various typos in comments and log messages.

Revision 1.50 / (download) - annotate - [select for diffs], Sat Jan 8 23:30:41 2022 UTC (16 months, 4 weeks ago) by lukem
Branch: MAIN
Changes since 1.49: +11 -9 lines
Diff to previous 1.49 (colored)

postinstall: improve -s usage

Reword -s SRC_ARG to be a bit clearer as to the variations, and sync
more with postinstall(8).

Revision 1.49 / (download) - annotate - [select for diffs], Sat Jan 8 23:07:17 2022 UTC (16 months, 4 weeks ago) by lukem
Branch: MAIN
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (colored)

postinstall: tweak -a and -m usage

Revision 1.48 / (download) - annotate - [select for diffs], Sat Jan 8 23:04:11 2022 UTC (16 months, 4 weeks ago) by lukem
Branch: MAIN
Changes since 1.47: +4 -3 lines
Diff to previous 1.47 (colored)

postinstall: add -? to usage

Revision 1.47 / (download) - annotate - [select for diffs], Sat Jan 8 06:58:40 2022 UTC (16 months, 4 weeks ago) by lukem
Branch: MAIN
Changes since 1.46: +34 -8 lines
Diff to previous 1.46 (colored)

postinstall: add -?. improve option errors

Support -? to show help.
Implemented using getopts "leading colon optstring" feature.
Improve error messages for unknown options and missing arguments.

Revision 1.46 / (download) - annotate - [select for diffs], Sat Jan 8 06:57:34 2022 UTC (16 months, 4 weeks ago) by lukem
Branch: MAIN
Changes since 1.45: +28 -28 lines
Diff to previous 1.45 (colored)

postinstall: usage improvements

Show options alphabetically.
Use UPPER_CASE instead of lowercase as the convention for argument names.
Provide per-OPERATION argument usage.
Implement options alphabetically.

Revision 1.45 / (download) - annotate - [select for diffs], Sat Jan 8 06:56:43 2022 UTC (16 months, 4 weeks ago) by lukem
Branch: MAIN
Changes since 1.44: +83 -58 lines
Diff to previous 1.44 (colored)

postinstall: improve validation and help

Validate the operation and items before extracting any etc.tgz,
so that help or errors are displayed quicker, for a better user
experience.

Style:
- Rename todo to ITEMS.
- Order processing of list after check.
- Ensure DIFF_OPT is initialised, for consistency.

Revision 1.44 / (download) - annotate - [select for diffs], Sat Jan 8 06:55:13 2022 UTC (16 months, 4 weeks ago) by lukem
Branch: MAIN
Changes since 1.43: +17 -16 lines
Diff to previous 1.43 (colored)

postinstall: style tweaks

Fix ... in comments and internal errors.
Sort variables declared at top of main(), for easier review.

Revision 1.43 / (download) - annotate - [select for diffs], Sat Jan 8 06:53:58 2022 UTC (16 months, 4 weeks ago) by lukem
Branch: MAIN
Changes since 1.42: +16 -8 lines
Diff to previous 1.42 (colored)

postinstall: help to stdout. usage tweaks

When invoked as "help" or "usage", send the usage to stdout
instead of stderr, so that it's easier to pipe to a pager.

Explicitly warn that the operation is missing.

Tweak the usage; "operation" instead of "op", no need for [] around ...

Revision 1.42 / (download) - annotate - [select for diffs], Fri Jan 7 01:03:02 2022 UTC (17 months ago) by lukem
Branch: MAIN
Changes since 1.41: +27 -23 lines
Diff to previous 1.41 (colored)

postinstall: fix x11 migration of /usr/X11R6/lib/X11

Fix the x11 check if /usr/X11R6/lib/X11/* needs to migrate to /etc/X11/*
by ensuring that the former actually is detected.

Avoids false migration errors for paths such as /fs if /usr/X11R6
doesn't exist, such as:
	x11 check:
	        Migrate /fs to /etc/X11/fs

The original implemention handled this correctly, but the bug
crept in postinstall 1.110 on 2010/11/21.

Revision 1.41 / (download) - annotate - [select for diffs], Sat Aug 21 10:06:33 2021 UTC (21 months, 2 weeks ago) by andvar
Branch: MAIN
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored)

s/accidentaly/accidentally/

Revision 1.40 / (download) - annotate - [select for diffs], Sat Aug 21 09:59:47 2021 UTC (21 months, 2 weeks ago) by andvar
Branch: MAIN
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored)

s/helt/held+s/eroneously/erroneously/+s/splitted/split/+s/recommented/recommended/

Revision 1.39 / (download) - annotate - [select for diffs], Mon Jun 7 05:29:22 2021 UTC (2 years ago) by mlelstv
Branch: MAIN
Changes since 1.38: +3 -3 lines
Diff to previous 1.38 (colored)

Don't overwrite changed autofs config files.

Revision 1.38 / (download) - annotate - [select for diffs], Sun Apr 25 06:21:37 2021 UTC (2 years, 1 month ago) by lukem
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.37: +7 -7 lines
Diff to previous 1.37 (colored)

postinstall: re-align list output

Revision 1.37 / (download) - annotate - [select for diffs], Sun Apr 25 01:44:55 2021 UTC (2 years, 1 month ago) by lukem
Branch: MAIN
Changes since 1.36: +522 -447 lines
Diff to previous 1.36 (colored)

postinstall: sort the items. keep obsolete* last

Consistency and quality of life improvements to postinstall:

Order all of the items (including disabled) alphabetically.
Consistent comment style before each item block.
Move other functions used by do_*() before rather than after do_*().

Revision 1.36 / (download) - annotate - [select for diffs], Sun Apr 25 01:15:39 2021 UTC (2 years, 1 month ago) by lukem
Branch: MAIN
Changes since 1.35: +36 -35 lines
Diff to previous 1.35 (colored)

postinstall: comment and usage style

Use NOTE: for comments to be aware of.
Remove double space before "fix|check" in some items.

Revision 1.35 / (download) - annotate - [select for diffs], Sun Apr 25 00:36:47 2021 UTC (2 years, 1 month ago) by lukem
Branch: MAIN
Changes since 1.34: +5 -5 lines
Diff to previous 1.34 (colored)

postinstall: ensure SRC_DIR and DEST_DIR are quoted

Revision 1.34 / (download) - annotate - [select for diffs], Sun Apr 25 00:29:52 2021 UTC (2 years, 1 month ago) by lukem
Branch: MAIN
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)

postinstall: use correct DEST_DIR in obsolete_stand

Revision 1.33 / (download) - annotate - [select for diffs], Fri Aug 28 15:26:23 2020 UTC (2 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)

missing quote

Revision 1.32 / (download) - annotate - [select for diffs], Fri Aug 28 15:25:16 2020 UTC (2 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.31: +6 -2 lines
Diff to previous 1.31 (colored)

Restrict npf.conf fixes to "blacklistd" -> "blocklistd"

Revision 1.5.2.5 / (download) - annotate - [select for diffs], Tue Jul 7 20:02:27 2020 UTC (2 years, 11 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Changes since 1.5.2.4: +2 -2 lines
Diff to previous 1.5.2.4 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

Pull up following revision(s) (requested by simonb in ticket #989):

	usr.sbin/postinstall/postinstall.in: revision 1.31

Sort missing IDs (users and groups) by the numeric ID.

Revision 1.31 / (download) - annotate - [select for diffs], Tue Jul 7 12:01:21 2020 UTC (2 years, 11 months ago) by simonb
Branch: MAIN
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored)

Sort missing IDs (users and groups) by the numeric ID.

Revision 1.30 / (download) - annotate - [select for diffs], Mon Jun 29 23:04:57 2020 UTC (2 years, 11 months ago) by riastradh
Branch: MAIN
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

Nix trailing whitespace.

Revision 1.29 / (download) - annotate - [select for diffs], Mon Jun 22 06:55:41 2020 UTC (2 years, 11 months ago) by rin
Branch: MAIN
Changes since 1.28: +36 -24 lines
Diff to previous 1.28 (colored)

Fix do_blocklist:
- Respect destination directory specified by -d option.
- Accept check and fix options. For the former, do not modify anything as
  users normally expect.

Revision 1.28 / (download) - annotate - [select for diffs], Sat Jun 20 18:30:53 2020 UTC (2 years, 11 months ago) by riastradh
Branch: MAIN
Changes since 1.27: +6 -6 lines
Diff to previous 1.27 (colored)

Nix trailing whitespace.

Revision 1.27 / (download) - annotate - [select for diffs], Mon Jun 15 21:56:49 2020 UTC (2 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.26: +6 -2 lines
Diff to previous 1.26 (colored)

handle /etc/blacklistd.conf

Revision 1.26 / (download) - annotate - [select for diffs], Mon Jun 15 21:51:13 2020 UTC (2 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.25: +6 -5 lines
Diff to previous 1.25 (colored)

correct blocklist script
- removal of rc file is handled by obsolete
- use grep to find if we need more changes
- fix rc population

Revision 1.25 / (download) - annotate - [select for diffs], Mon Jun 15 14:32:07 2020 UTC (2 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

fix reversed mv, pointed out by wiz@

Revision 1.24 / (download) - annotate - [select for diffs], Mon Jun 15 14:25:40 2020 UTC (2 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.23: +33 -1 lines
Diff to previous 1.23 (colored)

deal with blacklist -> blocklist

Revision 1.23 / (download) - annotate - [select for diffs], Wed Jun 3 11:47:46 2020 UTC (3 years ago) by roy
Branch: MAIN
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

Ensure the dhcpcd log socket is removed.

Revision 1.22 / (download) - annotate - [select for diffs], Sun May 31 13:45:47 2020 UTC (3 years ago) by roy
Branch: MAIN
Changes since 1.21: +25 -17 lines
Diff to previous 1.21 (colored)

postinstall: Move files out of dhcpcd chroot

Revision 1.21 / (download) - annotate - [select for diffs], Fri May 15 16:33:38 2020 UTC (3 years ago) by christos
Branch: MAIN
Changes since 1.20: +26 -11 lines
Diff to previous 1.20 (colored)

Add a function to remove the debug bits of the stand files.

Revision 1.19.2.3 / (download) - annotate - [select for diffs], Tue Apr 21 18:42:48 2020 UTC (3 years, 1 month ago) by martin
Branch: phil-wifi
Changes since 1.19.2.2: +2 -2 lines
Diff to previous 1.19.2.2 (colored) to branchpoint 1.19 (colored) next main 1.20 (colored)

Sync with HEAD

Revision 1.20 / (download) - annotate - [select for diffs], Sun Apr 19 22:10:24 2020 UTC (3 years, 1 month ago) by roy
Branch: MAIN
CVS Tags: phil-wifi-20200421
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

postinstall: ensure contents_owner fix fails on find errors

The issue is that find won't pass anything to xargs and that returns 0.
So replace the usage of xargs with -exec.

Revision 1.19.2.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:05:56 2020 UTC (3 years, 1 month ago) by martin
Branch: phil-wifi
Changes since 1.19.2.1: +2703 -0 lines
Diff to previous 1.19.2.1 (colored) to branchpoint 1.19 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.19.2.1, Thu Apr 9 15:24:31 2020 UTC (3 years, 1 month ago) by martin
Branch: phil-wifi
Changes since 1.19: +0 -2703 lines
FILE REMOVED

file postinstall.in was added on branch phil-wifi on 2020-04-13 08:05:56 +0000

Revision 1.19 / (download) - annotate - [select for diffs], Thu Apr 9 15:24:31 2020 UTC (3 years, 1 month ago) by roy
Branch: MAIN
CVS Tags: phil-wifi-20200411
Branch point for: phil-wifi
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

Fix dhcpcd $DEST_DIR support

Revision 1.18 / (download) - annotate - [select for diffs], Mon Apr 6 13:10:48 2020 UTC (3 years, 2 months ago) by roy
Branch: MAIN
CVS Tags: phil-wifi-20200406
Changes since 1.17: +7 -5 lines
Diff to previous 1.17 (colored)

postinstall: fix contents_owner to return an error on error

find returning nothing via stdout but does return an error is an error.
Fixes the case where dhcpcd chroot db directory isn't owned by _dhcpcd.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Apr 2 13:44:46 2020 UTC (3 years, 2 months ago) by roy
Branch: MAIN
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

postinstall: add checks for _dhcpcd to do_uid and do_gid

Thanks to jmcneill@

Revision 1.16 / (download) - annotate - [select for diffs], Thu Apr 2 13:04:09 2020 UTC (3 years, 2 months ago) by roy
Branch: MAIN
Changes since 1.15: +33 -6 lines
Diff to previous 1.15 (colored)

postinstall: move dhcpcd files to the chroot

Revision 1.5.2.4 / (download) - annotate - [select for diffs], Thu Feb 27 18:53:04 2020 UTC (3 years, 3 months ago) by martin
Branch: netbsd-9
Changes since 1.5.2.3: +2 -2 lines
Diff to previous 1.5.2.3 (colored) to branchpoint 1.5 (colored)

Pull up following revision(s) (requested by nakayama in ticket #738):

	usr.sbin/postinstall/postinstall.in: revision 1.15

Fix the fixup script to follow the URL change in /etc/motd (http->https).
PR install/54990, pullup-9

Revision 1.15 / (download) - annotate - [select for diffs], Tue Feb 25 10:27:01 2020 UTC (3 years, 3 months ago) by nakayama
Branch: MAIN
CVS Tags: is-mlppp-base, is-mlppp
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

Fix the fixup script to follow the URL change in /etc/motd (http->https).

PR install/54990, pullup-9

Revision 1.14 / (download) - annotate - [select for diffs], Thu Jan 30 13:54:05 2020 UTC (3 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

change the autofs file to be user writable.

Revision 1.13 / (download) - annotate - [select for diffs], Thu Jan 30 01:39:40 2020 UTC (3 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.12: +35 -1 lines
Diff to previous 1.12 (colored)

populate autofs files

Revision 1.5.2.3 / (download) - annotate - [select for diffs], Thu Jan 2 09:09:01 2020 UTC (3 years, 5 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-0-RELEASE, netbsd-9-0-RC2
Changes since 1.5.2.2: +32 -8 lines
Diff to previous 1.5.2.2 (colored) to branchpoint 1.5 (colored)

Pull up following revision(s) (requested by tsutsui in ticket #592):

	usr.sbin/postinstall/postinstall.in: revision 1.9
	usr.sbin/postinstall/postinstall.in: revision 1.10
	usr.sbin/postinstall/postinstall.in: revision 1.11
	usr.sbin/postinstall/postinstall.in: revision 1.12

remove debugging.

PR/54730: Izumi Tsutsui: Use /var/db/obsolete/<set> to remove obsolete rc.d
files when not in $SOURCEMODE.


PR/54730: Izumi Tsutsui: obsolete etc files are not being cleaned up on
an upgrade build.

Make sure rc, rc.subr, and rc.shutdown are properly updated.

Currently there is no info which rc* files should be updated
or not on upgrade (at least rc.conf and rc.local shouldn't),
so put back an explicit list in the postinstall script.
"Go for it" by christos@ in PR/54741.

Should be pulled up to netbsd-9.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Dec 29 22:19:13 2019 UTC (3 years, 5 months ago) by tsutsui
Branch: MAIN
Changes since 1.11: +12 -3 lines
Diff to previous 1.11 (colored)

Make sure rc, rc.subr, and rc.shutdown are properly updated.

Currently there is no info which rc* files should be updated
or not on upgrade (at least rc.conf and rc.local shouldn't),
so put back an explicit list in the postinstall script.
"Go for it" by christos@ in PR/54741.

Should be pulled up to netbsd-9.

Revision 1.11 / (download) - annotate - [select for diffs], Sun Dec 22 18:41:36 2019 UTC (3 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.10: +14 -2 lines
Diff to previous 1.10 (colored)

PR/54730: Izumi Tsutsui: obsolete etc files are not being cleaned up on
an upgrade build.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Dec 4 04:45:42 2019 UTC (3 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.9: +9 -5 lines
Diff to previous 1.9 (colored)

PR/54730: Izumi Tsutsui: Use /var/db/obsolete/<set> to remove obsolete rc.d
files when not in $SOURCEMODE.

Revision 1.9 / (download) - annotate - [select for diffs], Tue Nov 12 23:54:34 2019 UTC (3 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.8: +1 -2 lines
Diff to previous 1.8 (colored)

remove debugging.

Revision 1.5.2.2 / (download) - annotate - [select for diffs], Sun Nov 10 12:58:30 2019 UTC (3 years, 6 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-0-RC1
Changes since 1.5.2.1: +2 -2 lines
Diff to previous 1.5.2.1 (colored) to branchpoint 1.5 (colored)

Pull up following revision(s) (requested by maxv in ticket #405):

	usr.sbin/nvmmctl/nvmmctl.8: revision 1.2
	lib/libnvmm/libnvmm.3: revision 1.24
	sys/dev/nvmm/nvmm.h: revision 1.11
	lib/libnvmm/libnvmm.3: revision 1.25
	sys/dev/nvmm/x86/nvmm_x86.h: revision 1.16
	sys/dev/nvmm/nvmm.h: revision 1.12
	sys/dev/nvmm/x86/nvmm_x86.h: revision 1.17
	tests/lib/libnvmm/h_mem_assist.c: revision 1.12
	sys/dev/nvmm/x86/nvmm_x86.h: revision 1.18
	share/mk/bsd.hostprog.mk: revision 1.82
	lib/libnvmm/libnvmm.c: revision 1.15
	distrib/sets/lists/base/md.amd64: revision 1.281
	tests/lib/libnvmm/h_mem_assist.c: revision 1.13
	lib/libnvmm/libnvmm.c: revision 1.16
	tests/lib/libnvmm/h_mem_assist.c: revision 1.14
	lib/libnvmm/libnvmm_x86.c: revision 1.32
	lib/libnvmm/libnvmm.c: revision 1.17
	tests/lib/libnvmm/h_mem_assist.c: revision 1.15
	lib/libnvmm/libnvmm_x86.c: revision 1.33
	lib/libnvmm/libnvmm.c: revision 1.18
	usr.sbin/nvmmctl/Makefile: revision 1.1
	tests/lib/libnvmm/h_mem_assist_asm.S: revision 1.7
	tests/lib/libnvmm/h_mem_assist.c: revision 1.16
	lib/libnvmm/libnvmm_x86.c: revision 1.34
	usr.sbin/nvmmctl/Makefile: revision 1.2
	tests/lib/libnvmm/h_mem_assist_asm.S: revision 1.8
	tests/lib/libnvmm/h_mem_assist.c: revision 1.17
	sys/dev/nvmm/nvmm_internal.h: revision 1.13
	lib/libnvmm/libnvmm_x86.c: revision 1.35
	lib/libnvmm/libnvmm_x86.c: revision 1.36
	usr.sbin/postinstall/postinstall.in: revision 1.8
	lib/libnvmm/libnvmm_x86.c: revision 1.37
	lib/libnvmm/libnvmm_x86.c: revision 1.38
	lib/libnvmm/libnvmm_x86.c: revision 1.39
	usr.sbin/Makefile: revision 1.282
	lib/libnvmm/nvmm.h: revision 1.13
	lib/libnvmm/nvmm.h: revision 1.14
	lib/libnvmm/nvmm.h: revision 1.15
	sys/dev/nvmm/nvmm.c: revision 1.23
	lib/libnvmm/nvmm.h: revision 1.16
	sys/dev/nvmm/nvmm.c: revision 1.24
	lib/libnvmm/nvmm.h: revision 1.17
	sys/dev/nvmm/nvmm.c: revision 1.25
	tests/lib/libnvmm/h_io_assist.c: revision 1.9
	etc/MAKEDEV.tmpl: revision 1.209
	tests/lib/libnvmm/h_io_assist.c: revision 1.10
	tests/lib/libnvmm/h_io_assist.c: revision 1.11
	etc/group: revision 1.35
	distrib/sets/lists/man/mi: revision 1.1660
	sys/dev/nvmm/x86/nvmm_x86_vmx.c: revision 1.40
	sys/dev/nvmm/x86/nvmm_x86_vmx.c: revision 1.41
	sys/dev/nvmm/x86/nvmm_x86_vmx.c: revision 1.42
	sys/dev/nvmm/x86/nvmm_x86_vmx.c: revision 1.43
	sys/dev/nvmm/x86/nvmm_x86_vmx.c: revision 1.44
	sys/dev/nvmm/x86/nvmm_x86_svm.c: revision 1.51
	sys/dev/nvmm/nvmm_ioctl.h: revision 1.8
	sys/dev/nvmm/x86/nvmm_x86_svm.c: revision 1.52
	sys/dev/nvmm/nvmm_ioctl.h: revision 1.9
	sys/dev/nvmm/x86/nvmm_x86_svm.c: revision 1.53
	usr.sbin/nvmmctl/nvmmctl.c: revision 1.1
	lib/libnvmm/libnvmm.3: revision 1.20
	distrib/sets/lists/debug/md.amd64: revision 1.106
	lib/libnvmm/libnvmm.3: revision 1.21
	lib/libnvmm/libnvmm.3: revision 1.22
	usr.sbin/nvmmctl/nvmmctl.8: revision 1.1
	lib/libnvmm/libnvmm.3: revision 1.23

Fix incorrect parsing: the R/M field uses a special GPR map when the
address size is 16 bits, regardless of the actual operating mode. With
this special map there can be two registers referenced at once, and
also disp16-only.
Implement this special behavior, and add associated tests. While here
simplify a few things.
With this in place, the Windows 95 installer initializes correctly.
Part of PR/54611.
add missing initializer
Implement XCHG, add associated tests, and add comments to explain. With
this in place the Windows 95 installer completes successfuly.
Part of PR/54611.
Improve nvmm_vcpu_dump().
Put back 'default', because llvm apparently doesn't realize that all cases
are covered in the switch.
Miscellaneous changes in NVMM, to address several inconsistencies and
issues in the libnvmm API.
 - Rename NVMM_CAPABILITY_VERSION to NVMM_KERN_VERSION, and check it in
   libnvmm. Introduce NVMM_USER_VERSION, for future use.
 - In libnvmm, open "/dev/nvmm" as read-only and with O_CLOEXEC. This is to
   avoid sharing the VMs with the children if the process forks. In the
   NVMM driver, force O_CLOEXEC on open().
 - Rename the following things for consistency:
       nvmm_exit*              -> nvmm_vcpu_exit*
       nvmm_event*             -> nvmm_vcpu_event*
       NVMM_EXIT_*             -> NVMM_VCPU_EXIT_*
       NVMM_EVENT_INTERRUPT_HW -> NVMM_VCPU_EVENT_INTR
       NVMM_EVENT_EXCEPTION    -> NVMM_VCPU_EVENT_EXCP
   Delete NVMM_EVENT_INTERRUPT_SW, unused already.
 - Slightly reorganize the MI/MD definitions, for internal clarity.
 - Split NVMM_VCPU_EXIT_MSR in two: NVMM_VCPU_EXIT_{RD,WR}MSR. Also provide
   separate u.rdmsr and u.wrmsr fields. This is more consistent with the
   other exit reasons.
 - Change the types of several variables:
       event.type                  enum -> u_int
       event.vector                uint64_t -> uint8_t
       exit.u.*msr.msr:            uint64_t -> uint32_t
       exit.u.io.type:             enum -> bool
       exit.u.io.seg:              int -> int8_t
       cap.arch.mxcsr_mask:        uint64_t -> uint32_t
       cap.arch.conf_cpuid_maxops: uint64_t -> uint32_t
 - Delete NVMM_VCPU_EXIT_MWAIT_COND, it is AMD-only and confusing, and we
   already intercept 'monitor' so it is never armed.
 - Introduce vmx_exit_insn() for NVMM-Intel, similar to svm_exit_insn().
   The 'npc' field wasn't getting filled properly during certain VMEXITs.
 - Introduce nvmm_vcpu_configure(). Similar to nvmm_machine_configure(),
   but as its name indicates, the configuration is per-VCPU and not per-VM.
   Migrate and rename NVMM_MACH_CONF_X86_CPUID to NVMM_VCPU_CONF_CPUID.
   This becomes per-VCPU, which makes more sense than per-VM.
 - Extend the NVMM_VCPU_CONF_CPUID conf to allow triggering VMEXITs on
   specific leaves. Until now we could only mask the leaves. An uint32_t
   is added in the structure:
        uint32_t mask:1;
        uint32_t exit:1;
        uint32_t rsvd:30;
   The two first bits select the desired behavior on the leaf. Specifying
   zero on both resets the leaf to the default behavior. The new
   NVMM_VCPU_EXIT_CPUID exit reason is added.
Three changes in libnvmm:
 - Add 'mach' and 'vcpu' backpointers in the nvmm_io and nvmm_mem
   structures.
 - Rename 'nvmm_callbacks' to 'nvmm_assist_callbacks'.
 - Rename and migrate NVMM_MACH_CONF_CALLBACKS to NVMM_VCPU_CONF_CALLBACKS,
   it now becomes per-VCPU.
Update the libnvmm man page:
 - Sync the naming with reality.
 - Replace "relevant" by "desired" and "virtualizer" by "emulator", closer
   to what I meant.
 - Add a "VCPU Configuration" section.
 - Add a "Machine Ownership" section.
Add the "nvmm" group, and make nvmm_init() public. Sent to tech-kern@ a few
days ago.
Use the new PTE naming, and define CR3_FRAME_* separately. No functional
change.
Add a new VCPU conf option, that allows userland to request VMEXITs after a
TPR change. This is supported on all Intel CPUs, and not-too-old AMD CPUs.
The reason for wanting this option is that certain OSes (like Win10 64bit)
manage interrupt priority in hardware via CR8 directly, and for these OSes,
the emulator may want to sync its internal TPR state on each change.
Add two new fields in cap.arch, to report the conf capabilities. Report TPR
only on Intel for now, not AMD, because I don't have a recent AMD CPU on
which to test.
Mask CPUID leaf 0x0A on Intel, because we don't want the guest to try (and
fail) to probe the PMC MSRs. This avoids "Unexpected WRMSR" warnings in
qemu-nvmm.
Add PCID support in the guests. This speeds up most 64bit guests, because
since Meltdown, everybody uses PCID (including NetBSD).
Change the way root_owner works: consider the calling process as root_owner
not if it has root privileges, but if the /dev/nvmm device was opened with
write permissions. Introduce the undocumented nvmm_root_init() function to
achieve that.
The goal is to simplify the logic and have more granularity, eg if we want
a monitoring agent to access VMs but don't want to give this agent real
root access on the system.
A few changes:
 - Use smaller types in struct nvmm_capability.
 - Use smaller type for nvmm_io.port.
 - Switch exitstate to a compacted structure.
Add nram in struct nvmm_ctl_mach_info.
Add nvmmctl, with two commands for now.
Macro tidyness.
Sort SEE ALSO.
should be fork(2), noticed by wiz
Add debug entry for newly introduced nvmmctl utility.
Annotate a covering switch as such to avoid warnings about missing
returns.
Forgot to put nvmmctl in the "nvmm" group.
Add nvmm group.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Oct 30 20:24:44 2019 UTC (3 years, 7 months ago) by prlw1
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

Add nvmm group.

Revision 1.5.2.1 / (download) - annotate - [select for diffs], Wed Sep 25 15:46:37 2019 UTC (3 years, 8 months ago) by martin
Branch: netbsd-9
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

Pull up following revision(s) (requested by nakayama in ticket #240):

	usr.sbin/postinstall/postinstall.in: revision 1.6
	usr.sbin/postinstall/postinstall.in: revision 1.7

exclude_libs - redirect ls 2> /dev/null so that the user is not
spammed with errors for directories without any libraries; the most
common case in the wild would be empty /usr/libdata/debug.  Add -d to
ls for good measure while here.

 -

Add ${DEST_DIR} prefix to check target directory not host directory.

Revision 1.7 / (download) - annotate - [select for diffs], Tue Sep 24 13:27:39 2019 UTC (3 years, 8 months ago) by nakayama
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

Add ${DEST_DIR} prefix to check target directory not host directory.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Sep 12 21:56:55 2019 UTC (3 years, 8 months ago) by uwe
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

exclude_libs - redirect ls 2> /dev/null so that the user is not
spammed with errors for directories without any libraries; the most
common case in the wild would be empty /usr/libdata/debug.  Add -d to
ls for good measure while here.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Jun 15 13:07:09 2019 UTC (3 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-9-base
Branch point for: netbsd-9
Changes since 1.4: +33 -10 lines
Diff to previous 1.4 (colored)

exclude shared libraries that are currently in use from removal.

Revision 1.4 / (download) - annotate - [select for diffs], Fri Jun 14 14:39:49 2019 UTC (3 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.3: +72 -58 lines
Diff to previous 1.3 (colored)

cleanup obsolete file selection from sets and refactor font synchronization.
The font config files are not in sets, so they are still hard-coded.

Revision 1.3 / (download) - annotate - [select for diffs], Fri Jun 14 14:17:45 2019 UTC (3 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.2: +10 -6 lines
Diff to previous 1.2 (colored)

select the powerd scripts from the sets

Revision 1.2 / (download) - annotate - [select for diffs], Fri Jun 14 01:54:16 2019 UTC (3 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.1: +18 -5 lines
Diff to previous 1.1 (colored)

make the script MI again (same across all archs)

Revision 1.1 / (download) - annotate - [select for diffs], Fri Jun 14 01:06:33 2019 UTC (3 years, 11 months ago) by christos
Branch: MAIN

build dynamically the list of compat archsubdirs.

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.




CVSweb <webmaster@jp.NetBSD.org>