Home
last modified time | relevance | path

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

/linux-6.1.9/arch/x86/include/asm/fpu/
Dapi.h138 extern bool fpu_alloc_guest_fpstate(struct fpu_guest *gfpu);
139 extern void fpu_free_guest_fpstate(struct fpu_guest *gfpu);
140 extern int fpu_swap_kvm_fpstate(struct fpu_guest *gfpu, bool enter_guest);
151 extern void fpu_copy_guest_fpstate_to_uabi(struct fpu_guest *gfpu, void *buf, unsigned int size, u3…
152 extern int fpu_copy_uabi_to_guest_fpstate(struct fpu_guest *gfpu, const void *buf, u64 xcr0, u32 *v…
154 static inline void fpstate_set_confidential(struct fpu_guest *gfpu) in fpstate_set_confidential() argument
156 gfpu->fpstate->is_confidential = true; in fpstate_set_confidential()
159 static inline bool fpstate_is_confidential(struct fpu_guest *gfpu) in fpstate_is_confidential() argument
161 return gfpu->fpstate->is_confidential; in fpstate_is_confidential()
/linux-6.1.9/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 …]