freebsd-nq/sys/amd64/vmm
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
..
amd Restructure memory allocation in bhyve to support "devmem". 2015-06-18 06:00:17 +00:00
intel Restructure memory allocation in bhyve to support "devmem". 2015-06-18 06:00:17 +00:00
io Restructure memory allocation in bhyve to support "devmem". 2015-06-18 06:00:17 +00:00
vmm_dev.c Restructure memory allocation in bhyve to support "devmem". 2015-06-18 06:00:17 +00:00
vmm_host.c - Rework the XSAVE/XRSTOR emulation to only expose XCR0 features to the 2014-05-27 19:04:38 +00:00
vmm_host.h Add virtualized XSAVE support to bhyve which permits guests to use XSAVE and 2014-02-08 16:37:54 +00:00
vmm_instruction_emul.c Restructure memory allocation in bhyve to support "devmem". 2015-06-18 06:00:17 +00:00
vmm_ioport.c Don't require <sys/cpuset.h> to be always included before <machine/vmm.h>. 2015-04-30 22:23:22 +00:00
vmm_ioport.h Change the type of the first argument to the I/O emulation handlers to 2014-10-26 19:03:06 +00:00
vmm_ktr.h Add emulation of the "outsb" instruction. NetBSD guests use this to write to 2014-05-23 05:15:17 +00:00
vmm_lapic.c Relax the check on which vectors can be delivered through the APIC. According 2015-04-16 22:44:51 +00:00
vmm_lapic.h Roll back botched partial MFC :( 2014-02-04 05:03:14 +00:00
vmm_mem.c Restructure memory allocation in bhyve to support "devmem". 2015-06-18 06:00:17 +00:00
vmm_mem.h Restructure memory allocation in bhyve to support "devmem". 2015-06-18 06:00:17 +00:00
vmm_stat.c Fix non-deterministic delays when accessing a vcpu that was in "running" or 2015-05-28 17:37:01 +00:00
vmm_stat.h Fix non-deterministic delays when accessing a vcpu that was in "running" or 2015-05-28 17:37:01 +00:00
vmm_util.c
vmm_util.h
vmm.c Restructure memory allocation in bhyve to support "devmem". 2015-06-18 06:00:17 +00:00
x86.c Do a proper emulation of guest writes to MSR_EFER. 2015-05-06 05:40:20 +00:00
x86.h Do a proper emulation of guest writes to MSR_EFER. 2015-05-06 05:40:20 +00:00