Skip to content

Commit 6d1e9e3

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 02a6fbd commit 6d1e9e3

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
@@ -233,4 +233,4 @@ impl CpuidOutputRegisterAdjustments {
233233

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

0 commit comments

Comments
 (0)