mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
We make a slightly more general `check_cpuid_compatibility` function that permits the caller to specify something else than "source VM" and "destination VM" when logging an error. This way we can reuse the existing CPUID compatibility checks to ensure that the host VM is compatibile with the user selected CPU profile. In order to avoid a "refactor the world scenario" we keep the old function with its signature and instead refactor it to call the new more general internal function. Signed-off-by: Oliver Anderson <oliver.anderson@cyberus-technology.de> On-behalf-of: SAP oliver.anderson@sap.com