mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Split the vDPA preparation flow into helper functions for building modules, validating availability, loading modules, and creating devices. Build the vdpa_sim modules only on Ubuntu, where the script installs dependencies and compiles them from the matching kernel source. On other distributions, reuse the installed kernel modules and verify that they are available before continuing. This makes the script easier to follow and supports systems such as Azure Linux, where the modules are provided by the kernel package. Signed-off-by: Muminul Islam <muislam@microsoft.com>