freebsd-skq/sys/amd64/vmm/io
neel 8c70d6c7af 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
..
iommu.c
iommu.h
ppt.c Restructure memory allocation in bhyve to support "devmem". 2015-06-18 06:00:17 +00:00
ppt.h
vatpic.c Don't require <sys/cpuset.h> to be always included before <machine/vmm.h>. 2015-04-30 22:23:22 +00:00
vatpic.h Change the type of the first argument to the I/O emulation handlers to 2014-10-26 19:03:06 +00:00
vatpit.c CALLOUT_MPSAFE has lost its meaning since r141428, i.e., for more than ten 2015-05-22 17:05:21 +00:00
vatpit.h Change the type of the first argument to the I/O emulation handlers to 2014-10-26 19:03:06 +00:00
vhpet.c Don't require <sys/cpuset.h> to be always included before <machine/vmm.h>. 2015-04-30 22:23:22 +00:00
vhpet.h
vioapic.c Don't require <sys/cpuset.h> to be always included before <machine/vmm.h>. 2015-04-30 22:23:22 +00:00
vioapic.h
vlapic_priv.h
vlapic.c r281630 relaxed the limits on the vectors that can be asserted in the IRRs. 2015-05-01 16:00:29 +00:00
vlapic.h
vpmtmr.c Don't require <sys/cpuset.h> to be always included before <machine/vmm.h>. 2015-04-30 22:23:22 +00:00
vpmtmr.h Change the type of the first argument to the I/O emulation handlers to 2014-10-26 19:03:06 +00:00
vrtc.c Don't require <sys/cpuset.h> to be always included before <machine/vmm.h>. 2015-04-30 22:23:22 +00:00
vrtc.h Replace bhyve's minimal RTC emulation with a fully featured one in vmm.ko. 2014-12-30 22:19:34 +00:00