Home
last modified time | relevance | path

Searched refs:gfpu (Results 1 – 2 of 2) sorted by relevance

/Linux-v6.6/arch/x86/include/asm/fpu/
Dapi.h147 extern bool fpu_alloc_guest_fpstate(struct fpu_guest *gfpu);
148 extern void fpu_free_guest_fpstate(struct fpu_guest *gfpu);
149 extern int fpu_swap_kvm_fpstate(struct fpu_guest *gfpu, bool enter_guest);
160 extern void fpu_copy_guest_fpstate_to_uabi(struct fpu_guest *gfpu, void *buf,
162 extern int fpu_copy_uabi_to_guest_fpstate(struct fpu_guest *gfpu, const void *buf, u64 xcr0, u32 *v…
164 static inline void fpstate_set_confidential(struct fpu_guest *gfpu) in fpstate_set_confidential() argument
166 gfpu->fpstate->is_confidential = true; in fpstate_set_confidential()
169 static inline bool fpstate_is_confidential(struct fpu_guest *gfpu) in fpstate_is_confidential() argument
171 return gfpu->fpstate->is_confidential; in fpstate_is_confidential()
/Linux-v6.6/arch/x86/kernel/fpu/
Dcore.c198 static void fpu_init_guest_permissions(struct fpu_guest *gfpu) in fpu_init_guest_permissions() argument
215 gfpu->perm = perm & ~FPU_GUEST_PERM_LOCKED; in fpu_init_guest_permissions()
218 bool fpu_alloc_guest_fpstate(struct fpu_guest *gfpu) in fpu_alloc_guest_fpstate() argument
234 gfpu->fpstate = fpstate; in fpu_alloc_guest_fpstate()
235 gfpu->xfeatures = fpu_user_cfg.default_features; in fpu_alloc_guest_fpstate()
236 gfpu->perm = fpu_user_cfg.default_features; in fpu_alloc_guest_fpstate()
247 gfpu->uabi_size = sizeof(struct kvm_xsave); in fpu_alloc_guest_fpstate()
248 if (WARN_ON_ONCE(fpu_user_cfg.default_size > gfpu->uabi_size)) in fpu_alloc_guest_fpstate()
249 gfpu->uabi_size = fpu_user_cfg.default_size; in fpu_alloc_guest_fpstate()
251 fpu_init_guest_permissions(gfpu); in fpu_alloc_guest_fpstate()
[all …]