Skip to content

Commit 31c5d6f

Browse files
committed
test(tool): Exclude perfmon and debug related MSRs
The following MSR indices are added into `msrs_to_save_all[]` in kernel version 6.1. - MSR_IA32_PEBS_ENABLE (0x3F1) added in c59a1f106f5c ("KVM: x86/pmu: Add IA32_PEBS_ENABLE MSR emulation for extended PEBS") - MSR_IA32_DS_AREA (0x600) added in 8183a538cd95 ("KVM: x86/pmu: Add IA32_DS_AREA MSR emulation to support guest DS") - MSR_PEBS_DATA_CFG (0x3F2) added in 902caeb6841a ("KVM: x86/pmu: Add PEBS_DATA_CFG MSR emulation to support adaptive PEBS") Exclude them from guest CPU config dump, because Firecracker disables performance monitor and debug features in CPUID normalization. Signed-off-by: Takahiro Itazuri <[email protected]>
1 parent 2a155c2 commit 31c5d6f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/vmm/src/arch/x86_64/msr.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,11 @@ static UNDUMPABLE_MSR_RANGES: &[MsrRange] = &[
321321
// MSR_CORE_PERF_GLOBAL_CTRL
322322
// MSR_CORE_PERF_GLOBAL_OVF_CTRL
323323
MSR_RANGE!(MSR_CORE_PERF_FIXED_CTR_CTRL, 4),
324+
// MSR_IA32_PEBS_ENABLE
325+
// MSR_PEBS_DATA_CFG
326+
MSR_RANGE!(MSR_IA32_PEBS_ENABLE, 2),
327+
// MSR_IA32_DS_AREA
328+
MSR_RANGE!(MSR_IA32_DS_AREA),
324329
// MSR_IA32_PERF_CAPABILITIES
325330
MSR_RANGE!(MSR_IA32_PERF_CAPABILITIES),
326331
// MSR_K7_EVNTSELn

0 commit comments

Comments
 (0)