Searched refs:gfpu (Results 1 – 2 of 2) sorted by relevance
138 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() argument156 gfpu->fpstate->is_confidential = true; in fpstate_set_confidential()159 static inline bool fpstate_is_confidential(struct fpu_guest *gfpu) in fpstate_is_confidential() argument161 return gfpu->fpstate->is_confidential; in fpstate_is_confidential()
198 static void fpu_init_guest_permissions(struct fpu_guest *gfpu) in fpu_init_guest_permissions() argument215 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() argument234 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 …]