Home
last modified time | relevance | path

Searched refs:X86_CR4_OSXSAVE (Results 1 – 16 of 16) sorted by relevance

/linux-6.6.21/tools/testing/selftests/kvm/x86_64/
Dcr4_cpuid_sync_test.c26 return (this_cpu_has(X86_FEATURE_OSXSAVE) == !!(cr4 & X86_CR4_OSXSAVE)); in cr4_cpuid_is_sync()
35 cr4 |= X86_CR4_OSXSAVE; in guest_code()
69 sregs.cr4 &= ~X86_CR4_OSXSAVE; in main()
Dset_sregs_test.c65 cr4 |= X86_CR4_OSXSAVE; in calc_supported_cr4_feature_bits()
112 TEST_INVALID_CR_BIT(vcpu, cr4, sregs, X86_CR4_OSXSAVE); in main()
Dxcr0_cpuid_test.c55 set_cr4(get_cr4() | X86_CR4_OSXSAVE); in guest_code()
Dstate_test.c149 set_cr4(get_cr4() | X86_CR4_OSXSAVE); in guest_code()
Damx_test.c135 cr4 |= X86_CR4_OSXSAVE; in init_regs()
/linux-6.6.21/arch/x86/kernel/
Dsev-shared.c290 if (cr4 & X86_CR4_OSXSAVE) in __sev_cpuid_hv_ghcb()
451 if (native_read_cr4() & X86_CR4_OSXSAVE) in snp_cpuid_postprocess()
475 if (native_read_cr4() & X86_CR4_OSXSAVE) in snp_cpuid_postprocess()
962 if (cr4 & X86_CR4_OSXSAVE) in vc_handle_cpuid()
/linux-6.6.21/arch/x86/include/uapi/asm/
Dprocessor-flags.h130 #define X86_CR4_OSXSAVE _BITUL(X86_CR4_OSXSAVE_BIT) macro
/linux-6.6.21/arch/x86/kvm/
Dx86.h515 __reserved_bits |= X86_CR4_OSXSAVE; \
Dcpuid.c275 kvm_is_cr4_bit_set(vcpu, X86_CR4_OSXSAVE)); in __kvm_update_cpuid_runtime()
Dx86.c1023 if (kvm_is_cr4_bit_set(vcpu, X86_CR4_OSXSAVE)) { in kvm_load_guest_xsave_state()
1054 if (kvm_is_cr4_bit_set(vcpu, X86_CR4_OSXSAVE)) { in kvm_load_host_xsave_state()
Demulate.c3833 if (!(ctxt->ops->get_cr(ctxt, 4) & X86_CR4_OSXSAVE)) in em_xsetbv()
/linux-6.6.21/arch/x86/kernel/fpu/
Dxstate.c175 cr4_set_bits(X86_CR4_OSXSAVE); in fpu__init_cpu_xstate()
722 cr4_clear_bits(X86_CR4_OSXSAVE); in fpu__init_disable_system_xstate()
/linux-6.6.21/tools/testing/selftests/kvm/include/x86_64/
Dprocessor.h46 #define X86_CR4_OSXSAVE (1ul << 18) macro
/linux-6.6.21/arch/x86/include/asm/
Dkvm_host.h126 | X86_CR4_OSXSAVE | X86_CR4_SMEP | X86_CR4_FSGSBASE \
/linux-6.6.21/arch/x86/kvm/vmx/
Dvmx.c3496 if ((cr4 ^ old_cr4) & (X86_CR4_OSXSAVE | X86_CR4_PKE)) in vmx_set_cr4()
7682 cr4_fixed1_update(X86_CR4_OSXSAVE, ecx, feature_bit(XSAVE)); in nested_vmx_cr_fixed1_bits_update()
/linux-6.6.21/arch/x86/kvm/svm/
Dsvm.c1950 if ((cr4 ^ old_cr4) & (X86_CR4_OSXSAVE | X86_CR4_PKE)) in svm_set_cr4()