/openbmc/linux/tools/testing/selftests/kvm/x86_64/ |
H A D | amx_test.c | 129 uint64_t cr4, xcr0; in init_regs() local 139 xcr0 = xgetbv(0); in init_regs() 140 xcr0 |= XFEATURE_MASK_XTILE; in init_regs() 141 xsetbv(0x0, xcr0); in init_regs()
|
/openbmc/linux/arch/x86/include/asm/fpu/ |
H A D | api.h | 162 extern int fpu_copy_uabi_to_guest_fpstate(struct fpu_guest *gfpu, const void *buf, u64 xcr0, u32 *v…
|
/openbmc/qemu/linux-user/i386/ |
H A D | signal.c | 231 return (xsave_area_size(env->xcr0, false) in get_fpstate_size() 329 cpu_x86_xsave(env, fxstate, fpend_addr - xstate_addr, env->xcr0); in xsave_sigcontext() 333 __put_user(env->xcr0, &sw->xfeatures); in xsave_sigcontext() 623 max_size = xsave_area_size(env->xcr0, false); in xrstor_sigcontext() 640 xfeatures = tswap64(sw->xfeatures) & env->xcr0; in xrstor_sigcontext()
|
/openbmc/linux/arch/x86/include/asm/ |
H A D | svm.h | 445 u64 xcr0; member 498 u64 xcr0; member 681 DEFINE_GHCB_ACCESSORS(xcr0)
|
H A D | kvm_host.h | 803 u64 xcr0; member
|
/openbmc/qemu/target/i386/whpx/ |
H A D | whpx-all.c | 306 WHV_REGISTER_VALUE xcr0; in whpx_set_xcrs() local 314 xcr0.Reg64 = cpu_env(cpu)->xcr0; in whpx_set_xcrs() 316 whpx->partition, cpu->cpu_index, &xcr0_name, 1, &xcr0); in whpx_set_xcrs() 579 WHV_REGISTER_VALUE xcr0; in whpx_get_xcrs() local 588 whpx->partition, cpu->cpu_index, &xcr0_name, 1, &xcr0); in whpx_get_xcrs() 594 cpu_env(cpu)->xcr0 = xcr0.Reg64; in whpx_get_xcrs()
|
/openbmc/linux/arch/x86/kernel/fpu/ |
H A D | core.c | 391 u64 xcr0, u32 *vpkru) in fpu_copy_uabi_to_guest_fpstate() argument 405 if (ustate->xsave.header.xfeatures & ~xcr0) in fpu_copy_uabi_to_guest_fpstate()
|
/openbmc/linux/arch/x86/kernel/ |
H A D | sev-shared.c | 464 u64 xcr0 = 1, xss = 0; in snp_cpuid_postprocess() local 471 xcr0 = xgetbv(XCR_XFEATURE_ENABLED_MASK); in snp_cpuid_postprocess() 497 xsave_size = snp_cpuid_calc_xsave_size(xcr0 | xss, compacted); in snp_cpuid_postprocess()
|
H A D | sev.c | 1041 vmsa->xcr0 = AP_INIT_XCR0_DEFAULT; in wakeup_cpu_via_vmgexit()
|
/openbmc/qemu/target/i386/ |
H A D | cpu-dump.c | 510 if ((env->xcr0 & avx512_mask) == avx512_mask) { in x86_cpu_dump_state() 532 } else if ((env->xcr0 & avx_mask) == avx_mask) { in x86_cpu_dump_state()
|
H A D | helper.c | 38 && (env->xcr0 & (XSTATE_SSE_MASK | XSTATE_YMM_MASK)) in cpu_sync_avx_hflag() 59 && (env->xcr0 & XSTATE_BNDCSR_MASK) in cpu_sync_bndcs_hflags()
|
H A D | cpu.c | 6763 *ebx = kvm_enabled() ? *ecx : xsave_area_size(env->xcr0, false); in cpu_x86_cpuid() 7197 uint64_t xcr0; in x86_cpu_reset_hold() local 7290 xcr0 = XSTATE_FP_MASK; in x86_cpu_reset_hold() 7295 xcr0 |= XSTATE_SSE_MASK; in x86_cpu_reset_hold() 7303 xcr0 |= 1ull << i; in x86_cpu_reset_hold() 7315 env->xcr0 = xcr0; in x86_cpu_reset_hold()
|
H A D | machine.c | 1742 VMSTATE_UINT64_V(env.xcr0, X86CPU, 12),
|
H A D | cpu.h | 1835 uint64_t xcr0; member
|
/openbmc/qemu/target/i386/hvf/ |
H A D | hvf.c | 597 env->xcr0 = ((uint64_t)edx << 32) | eax; in hvf_vcpu_exec() 598 wreg(cpu->accel->fd, HV_X86_XCR0, env->xcr0 | 1); in hvf_vcpu_exec()
|
H A D | x86hvf.c | 263 wreg(cs->accel->fd, HV_X86_XCR0, env->xcr0); in hvf_put_registers() 309 env->xcr0 = rreg(cs->accel->fd, HV_X86_XCR0); in hvf_get_registers()
|
/openbmc/qemu/target/i386/tcg/ |
H A D | fpu_helper.c | 2769 rfbm &= env->xcr0; in do_xsave() 2969 return (xstate_bv & ~ac->env->xcr0) == 0; in valid_xrstor_header() 3051 rfbm &= env->xcr0; in helper_xrstor() 3121 assert((rfbm & ~env->xcr0) == 0); in cpu_x86_xsave() 3139 assert((rfbm & ~env->xcr0) == 0); in cpu_x86_xrstor() 3160 return env->xcr0; in helper_xgetbv() 3163 return env->xcr0 & get_xinuse(env); in helper_xgetbv() 3203 env->xcr0 = mask; in helper_xsetbv()
|
/openbmc/linux/arch/x86/kvm/ |
H A D | x86.c | 1025 if (vcpu->arch.xcr0 != host_xcr0) in kvm_load_guest_xsave_state() 1056 if (vcpu->arch.xcr0 != host_xcr0) in kvm_load_host_xsave_state() 1076 u64 xcr0 = xcr; in __kvm_set_xcr() local 1077 u64 old_xcr0 = vcpu->arch.xcr0; in __kvm_set_xcr() 1083 if (!(xcr0 & XFEATURE_MASK_FP)) in __kvm_set_xcr() 1085 if ((xcr0 & XFEATURE_MASK_YMM) && !(xcr0 & XFEATURE_MASK_SSE)) in __kvm_set_xcr() 1094 if (xcr0 & ~valid_bits) in __kvm_set_xcr() 1101 if (xcr0 & XFEATURE_MASK_AVX512) { in __kvm_set_xcr() 1102 if (!(xcr0 & XFEATURE_MASK_YMM)) in __kvm_set_xcr() 1108 if ((xcr0 & XFEATURE_MASK_XTILE) && in __kvm_set_xcr() [all …]
|
H A D | cpuid.c | 288 best->ebx = xstate_required_size(vcpu->arch.xcr0, false); in __kvm_update_cpuid_runtime() 293 best->ebx = xstate_required_size(vcpu->arch.xcr0, true); in __kvm_update_cpuid_runtime()
|
/openbmc/linux/arch/x86/hyperv/ |
H A D | ivm.c | 327 vmsa->xcr0 = 1; in hv_snp_boot_ap()
|
/openbmc/qemu/target/i386/nvmm/ |
H A D | nvmm-all.c | 137 state->crs[NVMM_X64_CR_XCR0] = env->xcr0; in nvmm_set_registers() 293 env->xcr0 = state->crs[NVMM_X64_CR_XCR0]; in nvmm_get_registers()
|
/openbmc/linux/arch/x86/kvm/svm/ |
H A D | sev.c | 617 save->xcr0 = svm->vcpu.arch.xcr0; in sev_es_sync_vmsa() 2479 vcpu->arch.xcr0 = ghcb_get_xcr0(ghcb); in sev_es_sync_from_ghcb() 3144 hostsa->xcr0 = xgetbv(XCR_XFEATURE_ENABLED_MASK); in sev_es_prepare_switch_to_guest()
|
H A D | svm.h | 725 DEFINE_KVM_GHCB_ACCESSORS(xcr0)
|
/openbmc/qemu/target/i386/kvm/ |
H A D | kvm.c | 2384 env->xcr0 = 1; in kvm_arch_reset_vcpu() 3463 xcrs.xcrs[0].value = env->xcr0; in kvm_put_xcrs() 4244 env->xcr0 = xcrs.xcrs[i].value; in kvm_get_xcrs()
|