mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Whenever a CPU profile is selected there will be feature MSRs that need to be set when the CPU is configured. We thus adapt the boot_msr_entries method to include the feature MSRs that are passed to the vCPU upon construction. Since KVM applies compatibility checks for all feature MSRs (except IA32_ARCH_CAPABILITIES) we can only proceed if all MSR boot entries are successfully set upon vCPU configuration. This new check also applies to the regular boot entries when the host profile is selected (the default), but that is arguably an improvement in terms of correctness. Signed-off-by: Oliver Anderson <oliver.anderson@cyberus-technology.de> On-behalf-of: SAP oliver.anderson@sap.com