freebsd-dev/sys
Andriy Gapon 3387e8743e vmm/svm: iopm_bitmap and msr_bitmap must be contiguous in physical memory
To achieve that the whole svm_softc is allocated with contigmalloc now.
It would be more effient to de-embed those arrays and allocate only them
with contigmalloc.

Previously, if malloc(9) used non-contiguous pages for the arrays, then
random bits in physical pages next to the first page would be used to
determine permissions for I/O port and MSR accesses.  That could result
in a guest dangerously modifying the host hardware configuration.

One example is that sometimes NMI watchdog driver in a Linux guest
would be able to configure a performance counter on a host system.
The counter would generate an interrupt and if hwpmc(4) driver is loaded
on the host, then the interrupt would be delivered as an NMI.

Discussed with:	jhb
Reviewed by:	grehan
MFC after:	2 weeks
Differential Revision: https://reviews.freebsd.org/D8321
2016-10-25 10:34:14 +00:00
..
amd64 vmm/svm: iopm_bitmap and msr_bitmap must be contiguous in physical memory 2016-10-25 10:34:14 +00:00
arm Enable driver for SY8106A Buck Regulator. 2016-10-24 22:35:45 +00:00
arm64 Increase CACHE_LINE_SHIFT to 7 as cache lines are 128 bytes on ThunderX. 2016-10-24 13:44:24 +00:00
boot Add needed cpu-supply property for cpufreq. 2016-10-24 21:09:48 +00:00
bsm
cam Make pass driver better support CAM_CDB_POINTER flag. 2016-10-17 15:02:17 +00:00
cddl Fix panic after ZVOL renamed to name invalid for DEVFS. 2016-10-24 12:24:24 +00:00
compat Tidy up ia32_sysvec sv_flags setting 2016-10-20 20:29:54 +00:00
conf jedec_ts: a driver for thermal sensors on memory modules 2016-10-22 08:00:46 +00:00
contrib krping: Allow the underlying ib_device to handle DMA mappings. 2016-10-24 20:53:44 +00:00
crypto Fix C++ includability of crypto headers with static array sizes 2016-10-18 23:20:49 +00:00
ddb Determine the operand/address size of %cs in a new function 2016-09-25 16:30:29 +00:00
dev Make the USB attach strings in dmesg include product name. 2016-10-25 07:48:19 +00:00
fs A problem w.r.t. interoperation between the FreeBSD NFSv4.1 server with 2016-10-20 23:53:16 +00:00
gdb
geom gmirror: Add a subroutine to free synchronization BIOs. 2016-10-20 23:08:40 +00:00
gnu Revert and redo r306083. 2016-09-22 15:17:36 +00:00
i386 Follow-up to r307866: 2016-10-24 20:47:46 +00:00
isa
kern Include <stdarg.h> instead of <machine/stdarg.h> when compiled as 2016-10-24 18:03:04 +00:00
kgssapi
libkern
mips rtwn(4), urtwn(4): merge common code, add support for 11ac devices. 2016-10-17 20:38:24 +00:00
modules jedec_ts: a driver for thermal sensors on memory modules 2016-10-22 08:00:46 +00:00
net hyperv/hn: Fix RX filter settings. 2016-10-24 05:10:35 +00:00
net80211 [net80211] Add a variant on ieee80211_get_rx_params() that returns a pointer. 2016-10-23 08:21:35 +00:00
netgraph
netinet FreeBSD tcp stack used to inform respective congestion control module about the 2016-10-25 05:45:47 +00:00
netinet6 Make ICMPv6 hard error handling for TCP consistent with the ICMPv4 2016-10-21 10:32:57 +00:00
netipsec
netnatm
netpfil Fix ipfw table lookup handler to return entry value, but not its index. 2016-10-19 11:51:17 +00:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed Move the ConnectX-3 and ConnectX-2 driver from sys/ofed into sys/dev/mlx4 2016-09-30 08:23:06 +00:00
opencrypto Add support for the fpu_kern(9) KPI on arm64. It hooks into the existing 2016-10-20 09:22:10 +00:00
pc98 Fix building on i386 and arm. But 'public domain' headers on the files 2016-10-13 06:56:23 +00:00
powerpc Add a bunch of new default options to MPC85XX* configs 2016-10-24 04:21:06 +00:00
riscv rtwn(4), urtwn(4): merge common code, add support for 11ac devices. 2016-10-17 20:38:24 +00:00
rpc
security
sparc64 Fix building on i386 and arm. But 'public domain' headers on the files 2016-10-13 06:56:23 +00:00
sys Define max_align_t for C11. 2016-10-21 23:50:02 +00:00
teken
tests
tools
ufs Include <sys/types.h> explicitly instead of depending on that 2016-10-24 18:12:57 +00:00
vm Simplify keg_drain() a bit by using LIST_FOREACH_SAFE. 2016-10-20 23:10:27 +00:00
x86 Follow-up to r307866: 2016-10-24 20:47:46 +00:00
xdr
xen xen/vchan: change license of header from Lesser GPL v2.1 to BSD 2016-09-30 13:41:24 +00:00
Makefile