freebsd-dev/share/examples
Neel Natu 9b1aa8d622 Restructure memory allocation in bhyve to support "devmem".
devmem is used to represent MMIO devices like the boot ROM or a VESA framebuffer
where doing a trap-and-emulate for every access is impractical. devmem is a
hybrid of system memory (sysmem) and emulated device models.

devmem is mapped in the guest address space via nested page tables similar
to sysmem. However the address range where devmem is mapped may be changed
by the guest at runtime (e.g. by reprogramming a PCI BAR). Also devmem is
usually mapped RO or RW as compared to RWX mappings for sysmem.

Each devmem segment is named (e.g. "bootrom") and this name is used to
create a device node for the devmem segment (e.g. /dev/vmm/testvm.bootrom).
The device node supports mmap(2) and this decouples the host mapping of
devmem from its mapping in the guest address space (which can change).

Reviewed by:	tychon
Discussed with:	grehan
Differential Revision:	https://reviews.freebsd.org/D2762
MFC after:	4 weeks
2015-06-18 06:00:17 +00:00
..
bhyve Restructure memory allocation in bhyve to support "devmem". 2015-06-18 06:00:17 +00:00
bootforth
BSD_daemon Add an alternate version of beastie to the examples directory. 2013-04-28 02:23:39 +00:00
csh Add a bunch more example completions. 2012-10-16 02:52:30 +00:00
diskless Correct double "the the" 2012-09-14 21:28:56 +00:00
dma Add the makefile forgotten in previous commit 2014-03-10 15:59:50 +00:00
drivers Update to use DEVMETHOD_END. 2011-11-22 21:49:29 +00:00
etc Catch up with Clang 3.6.0. 2015-03-17 05:48:45 +00:00
find_interface NO_MAN= has been deprecated in favor of MAN= for some time, go ahead 2014-04-13 05:21:56 +00:00
FreeBSD_version NO_MAN= has been deprecated in favor of MAN= for some time, go ahead 2014-04-13 05:21:56 +00:00
hast
hwpmc Various style(9) and related fixes. 2014-07-31 18:02:38 +00:00
ibcs2
indent
ipfilter Add META_MODE support. 2015-06-13 19:20:56 +00:00
ipfw
IPv6
jails
kld This is the much-discussed major upgrade to the random(4) device, known to you all as /dev/random. 2014-10-30 21:21:53 +00:00
libusb20 - Use libusb20_strerror() function instead of custom usb_error() one. 2013-11-07 07:22:51 +00:00
libvgl Add META_MODE support. 2015-06-13 19:20:56 +00:00
mdoc use .Mt to mark up email addresses consistently (part1) 2014-06-20 09:40:43 +00:00
netgraph
perfmon NO_MAN= has been deprecated in favor of MAN= for some time, go ahead 2014-04-13 05:21:56 +00:00
pf Add META_MODE support. 2015-06-13 19:20:56 +00:00
ppi NO_MAN= has been deprecated in favor of MAN= for some time, go ahead 2014-04-13 05:21:56 +00:00
ppp A number of places in the source tree still reference cuad.* after 2012-12-08 22:16:36 +00:00
printing X11BASE has been deprecated for a long time and will die soon 2012-01-09 00:48:19 +00:00
scsi_target use .Mt to mark up email addresses consistently (part1) 2014-06-20 09:40:43 +00:00
ses Decode common state bits in getencstat output. 2012-11-06 01:29:26 +00:00
smbfs
sunrpc
tests Remove unnecessary svn:executable property from source file. 2014-03-14 12:55:06 +00:00
uefisign Make the uefikeys script output slightly more obvious. 2015-02-26 14:22:27 +00:00
witness
Makefile Add key/cert generation script for uefisign(8). 2015-02-26 09:31:25 +00:00