Lines Matching refs:msr
119 u64 msr; in init_ia32_feat_ctl() local
121 if (rdmsrl_safe(MSR_IA32_FEAT_CTL, &msr)) { in init_ia32_feat_ctl()
141 if (msr & FEAT_CTL_LOCKED) in init_ia32_feat_ctl()
148 msr = FEAT_CTL_LOCKED; in init_ia32_feat_ctl()
156 msr |= FEAT_CTL_VMX_ENABLED_OUTSIDE_SMX; in init_ia32_feat_ctl()
159 msr |= FEAT_CTL_VMX_ENABLED_INSIDE_SMX; in init_ia32_feat_ctl()
163 msr |= FEAT_CTL_SGX_ENABLED; in init_ia32_feat_ctl()
165 msr |= FEAT_CTL_SGX_LC_ENABLED; in init_ia32_feat_ctl()
168 wrmsrl(MSR_IA32_FEAT_CTL, msr); in init_ia32_feat_ctl()
176 if ( (tboot && !(msr & FEAT_CTL_VMX_ENABLED_INSIDE_SMX)) || in init_ia32_feat_ctl()
177 (!tboot && !(msr & FEAT_CTL_VMX_ENABLED_OUTSIDE_SMX))) { in init_ia32_feat_ctl()
189 if (!(msr & FEAT_CTL_SGX_ENABLED)) { in init_ia32_feat_ctl()
205 if (!(msr & FEAT_CTL_SGX_LC_ENABLED) && enable_sgx_driver) { in init_ia32_feat_ctl()