Home
last modified time | relevance | path

Searched refs:MSR_IA32_MCx_CTL2 (Results 1 – 5 of 5) sorted by relevance

/linux-6.6.21/tools/testing/selftests/kvm/x86_64/
Ducna_injection_test.c88 ctl2 = rdmsr(MSR_IA32_MCx_CTL2(UCNA_BANK)); in ucna_injection_guest_code()
89 wrmsr(MSR_IA32_MCx_CTL2(UCNA_BANK), ctl2 | MCI_CTL2_CMCI_EN); in ucna_injection_guest_code()
100 ctl2 = rdmsr(MSR_IA32_MCx_CTL2(UCNA_BANK)); in ucna_injection_guest_code()
101 wrmsr(MSR_IA32_MCx_CTL2(UCNA_BANK), ctl2 & ~MCI_CTL2_CMCI_EN); in ucna_injection_guest_code()
112 uint64_t ctl2 = rdmsr(MSR_IA32_MCx_CTL2(UCNA_BANK)); in cmci_disabled_guest_code()
113 wrmsr(MSR_IA32_MCx_CTL2(UCNA_BANK), ctl2 | MCI_CTL2_CMCI_EN); in cmci_disabled_guest_code()
120 uint64_t ctl2 = rdmsr(MSR_IA32_MCx_CTL2(UCNA_BANK)); in cmci_enabled_guest_code()
121 wrmsr(MSR_IA32_MCx_CTL2(UCNA_BANK), ctl2 | MCI_CTL2_RESERVED_BIT); in cmci_enabled_guest_code()
/linux-6.6.21/arch/x86/kernel/cpu/mce/
Dintel.c171 rdmsrl(MSR_IA32_MCx_CTL2(bank), val); in cmci_toggle_interrupt_mode()
178 wrmsrl(MSR_IA32_MCx_CTL2(bank), val); in cmci_toggle_interrupt_mode()
293 rdmsrl(MSR_IA32_MCx_CTL2(i), val); in cmci_discover()
316 wrmsrl(MSR_IA32_MCx_CTL2(i), val); in cmci_discover()
317 rdmsrl(MSR_IA32_MCx_CTL2(i), val); in cmci_discover()
369 rdmsrl(MSR_IA32_MCx_CTL2(bank), val); in __cmci_disable_bank()
371 wrmsrl(MSR_IA32_MCx_CTL2(bank), val); in __cmci_disable_bank()
/linux-6.6.21/tools/arch/x86/include/asm/
Dmsr-index.h519 #define MSR_IA32_MCx_CTL2(x) (MSR_IA32_MC0_CTL2 + (x)) macro
/linux-6.6.21/arch/x86/include/asm/
Dmsr-index.h519 #define MSR_IA32_MCx_CTL2(x) (MSR_IA32_MC0_CTL2 + (x)) macro
/linux-6.6.21/arch/x86/kvm/
Dx86.c3343 case MSR_IA32_MC0_CTL2 ... MSR_IA32_MCx_CTL2(KVM_MAX_MCE_BANKS) - 1: in set_msr_mce()
3344 last_msr = MSR_IA32_MCx_CTL2(bank_num) - 1; in set_msr_mce()
3895 case MSR_IA32_MC0_CTL2 ... MSR_IA32_MCx_CTL2(KVM_MAX_MCE_BANKS) - 1: in kvm_set_msr_common()
4023 case MSR_IA32_MC0_CTL2 ... MSR_IA32_MCx_CTL2(KVM_MAX_MCE_BANKS) - 1: in get_msr_mce()
4024 last_msr = MSR_IA32_MCx_CTL2(bank_num) - 1; in get_msr_mce()
4254 case MSR_IA32_MC0_CTL2 ... MSR_IA32_MCx_CTL2(KVM_MAX_MCE_BANKS) - 1: in kvm_get_msr_common()