Topics

BSP layer for Firecracker: Sensible? Advisable? #yocto #linux


mark@...
 

Hi,
I'm exploring the use of yocto to build [kernels for Firecracker VM's (vmlinux, initrd and rootfs)](https://github.com/bbros-dev/firecracker-kernels/tree/develop).  I'm still at the point of working out what should be setup. Right now we're setup to build for many kernels and variants, so I'm pretty sure the yocto setup costs are worthwhile in the longer term.

A goal will be to squeeze out maximum performance and/or minimum-size. so I'm wondering would a BSP layer deliver any benefit?  The Firecracker VM has a very small device list, with support for Intel x86_64 and ARM64 CPU's.  The devices are: "only 5 emulated devices are available: virtio-net, virtio-block, virtio-vsock, serial console, and a minimal keyboard controller used only to stop the microVM"

Appreciate any suggestions and feedback.
Mark


Ross Burton
 

On Mon, 4 May 2020 at 06:25, <mark@...> wrote:
A goal will be to squeeze out maximum performance and/or minimum-size. so I'm wondering would a BSP layer deliver any benefit? The Firecracker VM has a very small device list, with support for Intel x86_64 and ARM64 CPU's. The devices are: "only 5 emulated devices are available: virtio-net, virtio-block, virtio-vsock, serial console, and a minimal keyboard controller used only to stop the microVM"
In that case a tuned kernel build in a dedicated BSP would make sense, yes.

Ross


Khem Raj
 

On 5/3/20 10:11 PM, mark@... wrote:
Hi,
I'm exploring the use of yocto to build kernels, initrd and rootfs for
the Firecracker micro VMM.
Not sure if there is a dedicated layer for firecracker, but you can
start with QEMU/KVM which is supported and then extend/customise it

Conseq