Skip to content

Commit

Permalink
Add stub for MSR_AMD64_DE_CFG
Browse files Browse the repository at this point in the history
Linux commit 2632daebafd0 ("x86/cpu: Restore AMD's DE_CFG MSR after
resume")
  • Loading branch information
vvvv-vvvv authored and copy committed Dec 3, 2023
1 parent ba4b2ec commit a8eb761
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/rust/cpu/cpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ pub const IA32_RTIT_CTL: i32 = 0x570;
pub const MSR_PKG_C2_RESIDENCY: i32 = 0x60D;
pub const IA32_KERNEL_GS_BASE: i32 = 0xC0000101u32 as i32;
pub const MSR_AMD64_LS_CFG: i32 = 0xC0011020u32 as i32;
pub const MSR_AMD64_DE_CFG: i32 = 0xC0011029u32 as i32;

pub const IA32_APIC_BASE_BSP: i32 = 1 << 8;
pub const IA32_APIC_BASE_EXTD: i32 = 1 << 10;
Expand Down
3 changes: 3 additions & 0 deletions src/rust/cpu/instructions_0f.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1230,6 +1230,8 @@ pub unsafe fn instr_0F30() {
IA32_TSX_CTRL => {}, // linux 5.19
MSR_TSX_FORCE_ABORT => {}, // linux 5.19
IA32_MCU_OPT_CTRL => {}, // linux 5.19
MSR_AMD64_LS_CFG => {}, // linux 5.19
MSR_AMD64_DE_CFG => {}, // linux 6.1
_ => {
dbg_log!("Unknown msr: {:x}", index);
dbg_assert!(false);
Expand Down Expand Up @@ -1307,6 +1309,7 @@ pub unsafe fn instr_0F32() {
MSR_TSX_FORCE_ABORT => {}, // linux 5.19
IA32_MCU_OPT_CTRL => {}, // linux 5.19
MSR_AMD64_LS_CFG => {}, // linux 5.19
MSR_AMD64_DE_CFG => {}, // linux 6.1
_ => {
dbg_log!("Unknown msr: {:x}", index);
dbg_assert!(false);
Expand Down

0 comments on commit a8eb761

Please sign in to comment.