mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Introduce a method on `CpuProfile` that is used to adjust the given CPUID entries according to the chosen CPU profile. This will be used in a later commit to apply the user chosen CPU profile. This commit also introduces a few unit tests using relatively simple, somewhat contrived input values. We will introduce snapshot tests with realistic adjustments and CPUID entries in our planned follow up PR bringing in our pregenerated CPU profiles. Signed-off-by: Oliver Anderson <oliver.anderson@cyberus-technology.de> On-behalf-of: SAP oliver.anderson@sap.com