1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-14 14:55:41 +00:00
freebsd/usr.sbin/bhyve
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
..
acpi.c Implement the century byte in the RTC. Some guests require this field to be 2015-04-28 23:44:47 +00:00
acpi.h
ahci.h Polish AHCI disk identify data and fix speed negotiation. 2015-03-13 20:14:35 +00:00
atkbdc.c
bhyve.8 Restructure memory allocation in bhyve to support "devmem". 2015-06-18 06:00:17 +00:00
bhyverun.c Restructure memory allocation in bhyve to support "devmem". 2015-06-18 06:00:17 +00:00
bhyverun.h Simplify instruction restart logic in bhyve. 2015-01-18 03:08:30 +00:00
block_if.c Allow configuration of the sector size advertised to the guest. 2015-05-12 00:30:39 +00:00
block_if.h Temporarily revert r282922 which bumped the max descriptors. 2015-05-21 04:19:22 +00:00
bootrom.c Restructure memory allocation in bhyve to support "devmem". 2015-06-18 06:00:17 +00:00
bootrom.h Restructure memory allocation in bhyve to support "devmem". 2015-06-18 06:00:17 +00:00
consport.c
dbgport.c
dbgport.h
inout.c Deprecate the 3-way return values from vm_gla2gpa() and vm_copy_setup(). 2015-05-06 16:25:20 +00:00
inout.h
ioapic.c Reassign copyright statements on several files from Advanced 2015-04-23 14:22:20 +00:00
ioapic.h Reassign copyright statements on several files from Advanced 2015-04-23 14:22:20 +00:00
Makefile Restructure memory allocation in bhyve to support "devmem". 2015-06-18 06:00:17 +00:00
mem.c
mem.h
mevent_test.c
mevent.c
mevent.h
mptbl.c
mptbl.h
pci_ahci.c Allow byte reads of AHCI registers. 2015-05-07 18:35:15 +00:00
pci_emul.c Advertise an additional memory BAR in the "dummy" device emulation. 2015-05-02 03:25:24 +00:00
pci_emul.h
pci_hostbridge.c The 'hostbridge' device exists to allow guests to infer msi/msix 2015-05-21 20:11:52 +00:00
pci_irq.c Reassign copyright statements on several files from Advanced 2015-04-23 14:22:20 +00:00
pci_irq.h Reassign copyright statements on several files from Advanced 2015-04-23 14:22:20 +00:00
pci_lpc.c Restructure memory allocation in bhyve to support "devmem". 2015-06-18 06:00:17 +00:00
pci_lpc.h Restructure memory allocation in bhyve to support "devmem". 2015-06-18 06:00:17 +00:00
pci_passthru.c Restructure memory allocation in bhyve to support "devmem". 2015-06-18 06:00:17 +00:00
pci_uart.c
pci_virtio_block.c Set the subvendor field in config space to the vendor ID. 2015-05-13 17:38:07 +00:00
pci_virtio_net.c Set the subvendor field in config space to the vendor ID. 2015-05-13 17:38:07 +00:00
pci_virtio_rnd.c Set the subvendor field in config space to the vendor ID. 2015-05-13 17:38:07 +00:00
pm.c Reassign copyright statements on several files from Advanced 2015-04-23 14:22:20 +00:00
post.c
rtc.c Add "-u" option to bhyve(8) to indicate that the RTC should maintain UTC time. 2015-02-24 02:04:16 +00:00
rtc.h Add "-u" option to bhyve(8) to indicate that the RTC should maintain UTC time. 2015-02-24 02:04:16 +00:00
smbiostbl.c Correct display of bhyve SMBIOS UUIDs with dmidecode by bumping the version. 2014-09-23 01:17:22 +00:00
smbiostbl.h
spinup_ap.c
spinup_ap.h
task_switch.c Deprecate the 3-way return values from vm_gla2gpa() and vm_copy_setup(). 2015-05-06 16:25:20 +00:00
uart_emul.c
uart_emul.h
virtio.c Handling indirect descriptors is a capability of the host and 2015-05-11 21:24:10 +00:00
virtio.h Fix networking problem after r280026. 2015-03-15 16:09:39 +00:00
xmsr.c Emulate MSR 0xC0011024 when running on AMD processors. 2015-02-24 05:15:40 +00:00
xmsr.h Restructure the MSR handling so it is entirely handled by processor-specific 2014-09-20 02:35:21 +00:00