Commit Graph

265671 Commits

Author SHA1 Message Date
cherry
b4bf0ca2e6 conditionally include XENPV specific code.
This explicitly excludes PV only functionality that would be wrong to
attempt to use in other modes, for eg: p2m table management.
2019-02-12 07:58:26 +00:00
mrg
db4c90ad36 compat_sunos depends upon compat_09. fixes:
[   1.8785495] WARNING: module error: built-in module compat_sunos can't find builtin dependency `compat_09'
[   1.8785495] WARNING: module error: built-in module compat_sunos prerequisite compat_09 failed, error 2
2019-02-12 07:16:55 +00:00
mrg
871f92bd46 add commented QUOTA2 line. 2019-02-12 07:15:58 +00:00
kamil
7439bd598d Refactor lwp_create1 and lwp_exit1 into trace_thread* in ptrace(2) tests
New tests:
 - trace_thread1
 - trace_thread2
 - trace_thread3
 - trace_thread4

These tests verify _lwp_create(2) and _lwp_exit(2) events. They are
currently skipped as not reliable.
2019-02-12 06:00:05 +00:00
cherry
1d238cc743 Fix typo: Parameters are seperated by ','. 2019-02-12 03:13:50 +00:00
christos
2f90ce174f Instead of queuing to a separate task, handle the fdwatch events inline.
Fixes locking. We could simplify the code a lot more now.
2019-02-12 02:38:55 +00:00
gutteridge
794281688a cvs.1 & cvs.texinfo: add information about the "update" command's "-t"
flag to cvs.texinfo, so the installed man and info documentation match
here. This makes cvs.1 auto-generable from cvs.texinfo again, which I
plan to leverage with further additions later.
2019-02-12 01:32:08 +00:00
martin
ccb99dea3b Fix a few off by one (in both directions) in previous, pointed out by mrg.
Avoid open coding snprintf return value checking and introduce a
helper functions that always ensures string termination instead,
suggested by christos.
2019-02-11 20:40:18 +00:00
martin
f9df7d7b5c Remove unconditional truncation - it confuses gcc 2019-02-11 20:03:28 +00:00
martin
997731694f Two more gcc 7 warnings when compiling wiht optimization on, one to go. 2019-02-11 19:58:22 +00:00
mrg
e3dd5b9e43 add parens around defines with expressions that could expand poorly
depending on the usage.
2019-02-11 19:45:54 +00:00
martin
a57c274e80 Make sure we properly truncate snprintf() results when the target buffer
is too small, in a way that appeases gcc 7 warnings.
2019-02-11 19:15:38 +00:00
cherry
728ee35f29 Detect and report running in a XEN hvm container.
This allows the lapic code to apply its x2apic probe logic while
running in a XEN hvm container.
2019-02-11 18:50:15 +00:00
tnn
7d56d81472 -Wno-format-truncation is only needed when using GCC 2019-02-11 17:49:37 +00:00
cherry
98728f360d Remove redundant conditional IDT_VEC() entries. 2019-02-11 17:28:52 +00:00
cherry
427af03728 We reorganise definitions for XEN source support as follows:
XEN - common sources required for baseline XEN support.
XENPV - sources required for support of XEN in PV mode.
XENPVHVM - sources required for support for XEN in HVM mode.
XENPVH - sources required for support for XEN in PVH mode.
2019-02-11 14:59:32 +00:00
maxv
1d0688bc8a Fix previous, pr_size includes the KASAN redzone. Repurpose pr_reqsize and
use it for PR_ZERO, it holds the size requested by the user with no padding
or redzone added, and only these bytes should be zeroed.
2019-02-11 11:12:58 +00:00
macallan
93b767f377 retry timed out IPIs, complain and dump timing info into dmesg
ok martin@
2019-02-11 07:51:46 +00:00
maxv
18110ad999 Increase the max guest ram from 4GB to 128GB. 2019-02-11 07:07:37 +00:00
kamil
2d4745f8b2 Rename the siginfo4 test in ATF t_ptrace_wait*
The siginfo group of ptrace(2) tests has been replaced with new individual
tests or merged into existing ones. This is the last siginfo* test that
has been renamed.

New name: traceme_exec.
2019-02-11 05:59:00 +00:00
kamil
32c33d29c1 Merge siginfo6 into other PT_STEP tests in t_ptrace_wait* 2019-02-11 05:51:20 +00:00
kamil
bfae04bf15 Drop siginfo5 from ATF tests in t_ptrace_wait*
siginfo5 duplicates older tests verifying PTRACE_FORK.
2019-02-11 04:20:06 +00:00
kamil
bc00947fe2 Initial refactoring of siginfo* tests in t_ptrace_wait*
Drop test siginfo1 as duplicated with earlier tests.

Rework and rename siginfo2 and siginfo3 into a single test body.

New tests:
 - siginfo_set_unmodified (replaces siginfo2)
 - siginfo_set_faked (replaces siginfo3)

All new tests pass.
2019-02-11 04:13:28 +00:00
gutteridge
71192149f4 cvs.1 & cvs.texinfo: add missing sections documenting the "add" and
"remove" commands. These were never present upstream on the branch
NetBSD imported, but were subsequently added on other branches (against
upstream's HEAD: cvs.1: r. 1.53 & cvs.texinfo: r. 1.697).

XXX While cvs.texinfo is supposed to be used to auto-generate cvs.1,
that isn't safe at present, because content has been added direct to
cvs.1 in NetBSD's tree.
2019-02-10 22:36:27 +00:00
christos
12f8b8a214 #### is not legal. 2019-02-10 19:30:28 +00:00
jdolecek
84351d4728 move the deallocation of the protocol-specific softc into its own detach hook,
so that calls to kmem_alloc() and kmem_free() would agree on the size

fixes panic on umass detach reported by Tom Ivar Helbekkmo on current-users@
2019-02-10 19:23:55 +00:00
kre
72c6780ab3 Remove a function prototype which was added to <histedit.h> in 2005.
I think we can trust it to be stable by now, and doin't need the dup.
2019-02-10 19:21:52 +00:00
christos
4ccd0e4c6d document PR_ZERO 2019-02-10 17:15:45 +00:00
christos
9577643dd8 Introduce PR_ZERO to avoid open-coding memset()s everywhere. OK riastradh@. 2019-02-10 17:13:33 +00:00
cherry
9a34967fce Catchup hypercall interfaces for HYPERVISOR_sched_op which use
arguments to __XEN_INTERFACE_VERSION__ >= 0x00030201

We've been using the sched_op_compat API with sched_op arguments.

fixes PR port-xen/53965
2019-02-10 11:10:34 +00:00
martin
8010630c8f Make "gpt migrate" work for disks with FAT32 and NTFS partitions 2019-02-10 10:35:51 +00:00
mlelstv
82fe3e95ba provide a test function, avoids crashing tests with SIGSEGV. 2019-02-10 09:54:39 +00:00
skrll
13758171f2 Add some more interrupt source names 2019-02-10 08:39:48 +00:00
mrg
d5c4011b2c partial mknative-gcc for gcc7 and riscv. only libgcc-bootstrap works so
far as libgcc-bootstrap actually doesn't work so building real libs fails.
2019-02-10 07:57:22 +00:00
mrg
8dc00095fb remove stuff provided by netbsd-stdint.h. 2019-02-10 07:56:21 +00:00
mrg
0276ea74da riscv wants netbsd-stdint.h's CHAR_FAST8=1 and SHORT_FAST16=1. 2019-02-10 07:55:57 +00:00
maya
634157f9e8 Update comment (copied from or1k) 2019-02-10 07:28:06 +00:00
mrg
30a7fe7f13 mark pf.c, radeon_cs.c and via_dmablit.c for no fall thru error.
this was already done in the various modules, but not in the main
kernel.
2019-02-10 05:01:59 +00:00
mrg
3b030d46ce openssl/store.h is installed by openssl 1.1, don't obsolete it every build. 2019-02-10 04:03:03 +00:00
kamil
5a04cbf366 Link t_ptrace_wait* tests with -pthread
While there, bump (c) for ATF ptrace(2) tests.

Add __used in infinite_thread() for consistency with other functions in
the file.
2019-02-10 02:13:45 +00:00
kamil
8ac77c305d Add initial pthread(3) tests in ATF t_prace_wait* tests
There were tested few scenarios with native _lwp_create(2) functions, using
this interface is not needed and it's easier to manage tests with
high-level pthread(3) API.

Rewrite original lwpinfo1 and lwpinfo2 tests into 8 new tests:
 - traceme_lwpinfo0 (0 spawned additional threads)
 - traceme_lwpinfo1 (1 spawned additional thread)
 - traceme_lwpinfo2 (2 spawned additional threads)
 - traceme_lwpinfo3 (3 spawned additional threads)
 - attach_lwpinfo0 (0 spawned additional threads)
 - attach_lwpinfo1 (1 spawned additional thread)
 - attach_lwpinfo2 (2 spawned additional threads)
 - attach_lwpinfo3 (3 spawned additional threads)

These tests verify primarily the PT_LWPINFO interface.

Build the t_ptrace_wait* tests with -pthread.

All tests pass.
2019-02-10 02:04:06 +00:00
mrg
036a48a6e4 run this through sort -u. removes a few duplicates and fixes order. 2019-02-09 23:26:35 +00:00
kamil
fb7fe14f74 Add infinite_thread() for ptrace(2) ATF tests
infinite_thread() is designed to be spawned as a pthread(3) function.

It will be used soon in new tests.
2019-02-09 23:10:42 +00:00
scole
a253ff12d9 use HAVE_FPREGS not HAVE_FPGPREGS and move some register_t inside proper #define. fixes ia64 build. ok <kamil> 2019-02-09 23:03:01 +00:00
mrg
1892f84f2f separate out the arch-specific and compat-specific subdirs.
put compat stuff in NetBSD.compat.$MACHINE_ARCH, and normal
stuff in NetBSD.dist.$MACHINE/MACHINE_ARCH, etc.

probably need at at more files for sh3, mips, ppc, sparc,
m68k, arm, ia64, etc., as every port has port- or arch-
specific header subdirectory.
2019-02-09 21:43:23 +00:00
maya
53ba185d70 Use GCC 7 on riscv, it is not supported on 6. 2019-02-09 21:05:48 +00:00
maya
2d1c9dccee Fake mknative for riscv64, enough to complete a tools build. 2019-02-09 21:03:24 +00:00
maya
71bd56fe32 s/TARGET_HARD_FLOAT_ABI/TARGET_HARD_FLOAT, the latter has the
benefit of existing. Inspired by mips/netbsd.h.

remove some redefinitions. There are still a few left, but these ones
seem to match.
2019-02-09 21:00:41 +00:00
maya
c43be0834e We also need t-riscv (for riscv-builtins.o) 2019-02-09 20:57:17 +00:00
maya
dd2e62178a Revert all riscv-related local patches.
As for the libbfd.h change: the definitions seem to mostly exist, but we
had duplicated them.

Fixes riscv64 binutils build.
2019-02-09 19:40:32 +00:00