Skip to content

Commit b8ad4da

Browse files
arch: Apply CPU profile (if any) when generating common CPUID
If a CPU profile is configured it should result in guests seeing a restricted subset of CPUID. This is what we finally achieve in this commit. Signed-off-by: Oliver Anderson <oliver.anderson@cyberus-technology.de> On-behalf-of: SAP oliver.anderson@sap.com
1 parent e2c1411 commit b8ad4da

File tree

2 files changed

+221
-137
lines changed

2 files changed

+221
-137
lines changed

arch/src/x86_64/cpu_profile.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,4 +238,4 @@ impl CpuidOutputRegisterAdjustments {
238238

239239
#[derive(Debug, Error)]
240240
#[error("Required CPUID entries not found")]
241-
pub(in crate::x86_64) struct MissingCpuidEntriesError;
241+
pub struct MissingCpuidEntriesError;

0 commit comments

Comments
 (0)