#
043999b1 |
| 05-Nov-2024 |
Mark Johnston <markj@FreeBSD.org> |
riscv/vmm: Fix the build after a97f683fe3c4
- Make machine/vmm_dev.h self-contained. - Check for errors from vmmdev_init(). - Make VM_MAX_NAMELEN visible to userspace.
Reported by: Jenkins Fixes: a
riscv/vmm: Fix the build after a97f683fe3c4
- Make machine/vmm_dev.h self-contained. - Check for errors from vmmdev_init(). - Make VM_MAX_NAMELEN visible to userspace.
Reported by: Jenkins Fixes: a97f683fe3c4 ("vmm: Add a device file interface for creating and destroying VMs")
show more ...
|
#
d3916eac |
| 31-Oct-2024 |
Ruslan Bukin <br@FreeBSD.org> |
riscv/vmm: Initial import.
Add kernel code for 'H' — Hypervisor Extension[1] to support virtualization on RISC-V ISA.
This comes with a separate userspace patch allowing us to boot unmodified freeb
riscv/vmm: Initial import.
Add kernel code for 'H' — Hypervisor Extension[1] to support virtualization on RISC-V ISA.
This comes with a separate userspace patch allowing us to boot unmodified freebsd/riscv guest. Other operating systems are untested.
This also comes with a U-Boot port that is configured to run in bhyve guest environment — in RISC-V virtual supervisor mode. The vmm SBI code emulates RISC-V machine-mode for the guest, handling SBI calls partly in vmm kernel and partly in bhyve userspace.
Developed in Spike simulator during short period of time, the support is considered experimental. The first real hardware with hypervisor spec included should have just reached the market, so this was tested in Spike and QEMU only. Note that this depends on Sstc extension presence in the hardware (both Spike and QEMU have it).
Note that booting multiple guests at the same time is not tested and may require additional work. Some TODOs are indicated within the code, and some listed in the project's home page[2].
Many thanks to Jessica Clarke, Mitchell Horne and Mark Johnston for help with parts, test and review.
1. https://riscv.org/technical/specifications/ 2. https://wiki.freebsd.org/riscv/bhyve
Sponsored by: UK Research and Innovation Differential Revision: https://reviews.freebsd.org/D45553
show more ...
|