cloud-hypervisor / rust-hypervisor-firmware

Apache License 2.0
581 stars 53 forks source link

Boot from memory device path #305

Closed rbradford closed 6 months ago

rbradford commented 6 months ago

GRUB on (at least RISC-V) loads the guest kernel directly into memory and then expects the firmware to parse it from there - it does this by using a device path of type PCI and subtype memory mapped.

With this change the Linux kernel boots on RISC-V if the kernel command line is modified to specify a fixed rootfs as there are issues with the initramfs.