271053 Commits

Author SHA1 Message Date
wiz
78ec798ef6 Sort SEE ALSO. 2019-10-28 13:38:03 +00:00
maya
087d862b47 Disable filemon.
It isn't suited for general use (that is, it poses security risks),
but the existence of the module means it is auto-loaded when /dev/filemon
is opened, which can be done by any user.

Thanks Ilja van Sprundel for the heads up.
2019-10-28 13:19:50 +00:00
maxv
a8c6c0bf54 Add nvmmctl, with two commands for now. 2019-10-28 13:04:18 +00:00
jmcneill
f2feb5edb1 Skip nodes with an "opp-suspend" property and fix tables that have disabled
nodes in the middle.
2019-10-28 10:43:08 +00:00
maxv
94f2363060 Add nram in struct nvmm_ctl_mach_info. 2019-10-28 09:00:08 +00:00
maxv
a5a9b7903f A few changes:
- Use smaller types in struct nvmm_capability.
 - Use smaller type for nvmm_io.port.
 - Switch exitstate to a compacted structure.
2019-10-28 08:30:49 +00:00
mlelstv
153c45e06e More code from OpenBSD
no need to splnet() when enqueing packets
explicit structure padding
make internal functions static

also prepare for GPIO interrupts.
2019-10-28 06:37:51 +00:00
mlelstv
cafba4bc33 regen 2019-10-28 06:32:10 +00:00
mlelstv
c83c8c73f9 Whitespace police 2019-10-28 06:31:39 +00:00
mlelstv
00e2b502a8 Missing commit for sdio abort function. 2019-10-28 06:26:19 +00:00
mlelstv
34287373fa Simplyfy sdmmc_io_set_blocklen function signature by dropping the
extra softc pointer. Aligns with OpenBSD.
2019-10-28 06:20:01 +00:00
mlelstv
c301b5e4e9 Add and use sdmmc_pause to avoid long-term busy waits.
Add sdio abort function.
Additional error messages.
Print parameters for SDIO devices.
Minor cosmetics.
2019-10-28 06:16:46 +00:00
mlelstv
f0d950ca00 Skip setting power when the voltage doesn't change.
Also increase some timeouts.
2019-10-28 06:00:14 +00:00
ozaki-r
922788dbc7 Note vio9p(4) addition and mount_9p(8) update 2019-10-28 03:01:55 +00:00
ozaki-r
d5f459f5b9 Add vio9p to some kernel configs 2019-10-28 03:01:11 +00:00
ozaki-r
1dfe73716b mount_9p: enable to communicate with vio9p via its character device file
With this feature, we can mount an exported filesystem by a VM host via
virtio-9p.
2019-10-28 02:59:25 +00:00
ozaki-r
b2358a5409 Implement a front-end driver of virtio-9p called vio9p
In conjunction with mount_9p, it enables a NetBSD system running as a VM guest
to mount an exported filesystem by the host via virtio-9p.  It exports a 9p
end-point of virtio-9p via a character device file for mount_9p.

Reviewed by yamaguchi@
2019-10-28 02:56:40 +00:00
ozaki-r
24531cce63 Allow including numbers in %XXX_chr% parameter (for upcoming vio9p driver) 2019-10-28 02:53:29 +00:00
sevan
31c9b97559 Chris' happiest moment
http://bbc.co.uk/programmes/b09b1zbb
2019-10-27 23:31:15 +00:00
jmcneill
cdb78bc497 Get mac address from DT 2019-10-27 23:25:38 +00:00
bad
6001bebafa white space police. 2019-10-27 21:39:50 +00:00
jmcneill
7b46fbe309 Switch to GENERIC kernels only. 2019-10-27 21:38:58 +00:00
jmcneill
788bc7b217 No support for tegra210 in armv7 kernel 2019-10-27 21:35:02 +00:00
christos
b97fcb9bdd elide gcc-8 shadow warnings. 2019-10-27 21:27:10 +00:00
jmcneill
23b149aa22 Fix early putchar, add reset func 2019-10-27 21:26:04 +00:00
christos
b83b36aedd remove build output. 2019-10-27 21:07:37 +00:00
maxv
d2ac291e7d 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.
2019-10-27 20:17:36 +00:00
jmcneill
2845a430aa Add FDT support 2019-10-27 20:11:13 +00:00
jmcneill
69a9d2ed61 Add tiiic, tps65217pmic 2019-10-27 19:11:24 +00:00
jmcneill
15623435b8 Add I2C support. 2019-10-27 19:11:07 +00:00
jmcneill
cfd274ae7c Add atmel,24c256 compat data 2019-10-27 19:10:38 +00:00
maxv
dd1fff52d1 Add PCID support in the guests. This speeds up most 64bit guests, because
since Meltdown, everybody uses PCID (including NetBSD).
2019-10-27 18:26:54 +00:00
jmcneill
58899b3b16 Add support for TI AM335x 2019-10-27 18:00:46 +00:00
jmcneill
1eaba8939a Use Timer2 for timecounter, and enable hw module. 2019-10-27 17:59:21 +00:00
jmcneill
39cdc44604 Place devmap above KERNEL_IO_VBASE 2019-10-27 17:58:42 +00:00
jmcneill
8241df9978 Disable autoidle 2019-10-27 17:21:23 +00:00
jmcneill
9ae9137088 Add USB support. 2019-10-27 16:31:26 +00:00
jmcneill
64360384b8 Add MMCHS support. 2019-10-27 15:43:46 +00:00
jmcneill
4924c2329b Add driver for one-register-per-pin type pinctrl devices. 2019-10-27 15:31:15 +00:00
pgoyette
0c89d4ea55 accept() is a function, not an argument! 2019-10-27 12:28:13 +00:00
jmcneill
fe577260a1 Add EDMA TPCC and TPTC drivers. 2019-10-27 12:14:51 +00:00
jmcneill
a4fc703fcb Make com work again 2019-10-27 11:33:56 +00:00
martin
cfda7c78d1 Back out previous - fixed differently by rin already. 2019-10-27 11:21:52 +00:00
maxv
65054ef1a1 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.
2019-10-27 11:11:09 +00:00
martin
dd04fcad9b Define _KERNEL while including reg.h: we need the (now protected) register
names.
2019-10-27 11:08:04 +00:00
maxv
93f947bbaa 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.
2019-10-27 10:28:55 +00:00
rin
bafb9a11bc Expose register difinitions for _STANDALONE.
Fix build failure in arch/luna68k/stand/boot.
2019-10-27 09:38:09 +00:00
maxv
06a4f19afb Use the new PTE naming, and define CR3_FRAME_* separately. No functional
change.
2019-10-27 08:30:05 +00:00
maxv
a6418236ed Add the "nvmm" group, and make nvmm_init() public. Sent to tech-kern@ a few
days ago.
2019-10-27 07:08:15 +00:00
christos
5f6e383c7a make this a bit bigger to prepare for gcc-8 2019-10-27 02:07:42 +00:00