mirror of
https://github.com/copy/v86
synced 2025-10-14 01:54:07 +08:00
add some stub MSRs
This commit is contained in:
@@ -208,7 +208,10 @@ pub const MSR_TEST_CTRL: i32 = 0x33;
|
||||
pub const MSR_SMI_COUNT: i32 = 0x34;
|
||||
pub const IA32_FEAT_CTL: i32 = 0x3A;
|
||||
pub const IA32_SPEC_CTRL: i32 = 0x48;
|
||||
pub const IA32_BIOS_UPDT_TRIG: i32 = 0x79;
|
||||
pub const IA32_BIOS_SIGN_ID: i32 = 0x8B;
|
||||
pub const IA32_PMC0: i32 = 0xC1;
|
||||
pub const IA32_PMC1: i32 = 0xC2;
|
||||
pub const MSR_PLATFORM_INFO: i32 = 0xCE;
|
||||
pub const MSR_TSX_FORCE_ABORT: i32 = 0x10F;
|
||||
pub const IA32_TSX_CTRL: i32 = 0x122;
|
||||
@@ -218,6 +221,8 @@ pub const IA32_SYSENTER_CS: i32 = 0x174;
|
||||
pub const IA32_SYSENTER_ESP: i32 = 0x175;
|
||||
pub const IA32_SYSENTER_EIP: i32 = 0x176;
|
||||
pub const IA32_MCG_CAP: i32 = 0x179;
|
||||
pub const IA32_PERFEVTSEL0: i32 = 0x186;
|
||||
pub const IA32_PERFEVTSEL1: i32 = 0x187;
|
||||
pub const IA32_MISC_ENABLE: i32 = 0x1A0;
|
||||
pub const IA32_PAT: i32 = 0x277;
|
||||
pub const IA32_RTIT_CTL: i32 = 0x570;
|
||||
|
@@ -1214,6 +1214,7 @@ pub unsafe fn instr_0F30() {
|
||||
*apic_enabled = low & IA32_APIC_BASE_EN == IA32_APIC_BASE_EN
|
||||
},
|
||||
IA32_TIME_STAMP_COUNTER => set_tsc(low as u32, high as u32),
|
||||
IA32_BIOS_UPDT_TRIG => {}, // windows xp
|
||||
IA32_BIOS_SIGN_ID => {},
|
||||
MISC_FEATURE_ENABLES => {
|
||||
// Linux 4, see: https://patchwork.kernel.org/patch/9528279/
|
||||
@@ -1226,6 +1227,7 @@ pub unsafe fn instr_0F30() {
|
||||
// Only used in 64 bit mode (by SWAPGS), but set by kvm-unit-test
|
||||
dbg_log!("GS Base written");
|
||||
},
|
||||
IA32_PMC0 | IA32_PMC1 => {}, // linux
|
||||
IA32_PAT => {},
|
||||
IA32_SPEC_CTRL => {}, // linux 5.19
|
||||
IA32_TSX_CTRL => {}, // linux 5.19
|
||||
@@ -1296,13 +1298,11 @@ pub unsafe fn instr_0F32() {
|
||||
// Enable Misc. Processor Features
|
||||
low = 1 << 0; // fast string
|
||||
},
|
||||
IA32_RTIT_CTL => {
|
||||
// linux4
|
||||
},
|
||||
IA32_RTIT_CTL => {}, // linux4
|
||||
MSR_SMI_COUNT => {},
|
||||
IA32_MCG_CAP => {
|
||||
// netbsd
|
||||
},
|
||||
IA32_MCG_CAP => {}, // netbsd
|
||||
IA32_PERFEVTSEL0 | IA32_PERFEVTSEL1 => {}, // linux
|
||||
IA32_PMC0 | IA32_PMC1 => {}, // linux
|
||||
IA32_PAT => {},
|
||||
MSR_PKG_C2_RESIDENCY => {},
|
||||
IA32_SPEC_CTRL => {}, // linux 5.19
|
||||
|
Reference in New Issue
Block a user