mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
CPU profiles will describe a list of MSRs they require when applying the profile we want to check that the host has all the required MSRs otherwise we have an incompatibility issue. In order to check which MSRs the host supports we start by exposing the hypervisor's get_msr_index_list method. The MSRs required by a chosen CPU profile will be checked against the output of the get_msr_index_list and get_feature_msrs on the hypervisor in a follow up commit. The get_msr_index_list method does not have an obvious implementation for MSHV, because in that case one needs to obtain MSR indices from the VM fd, after the VM has been initialized. Since CPU profiles are only intended for the KVM hypervisor to begin with, we leave the MSHV implementation as unimplemented for now. A proper solution for MSHV should rather be found if/when CPU profiles are also desired in that context. Signed-off-by: Oliver Anderson <oliver.anderson@cyberus-technology.de> On-behalf-of: SAP oliver.anderson@sap.com