Lines Matching refs:gfpu
198 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()
257 void fpu_free_guest_fpstate(struct fpu_guest *gfpu) in fpu_free_guest_fpstate() argument
259 struct fpstate *fps = gfpu->fpstate; in fpu_free_guest_fpstate()
267 gfpu->fpstate = NULL; in fpu_free_guest_fpstate()
371 void fpu_copy_guest_fpstate_to_uabi(struct fpu_guest *gfpu, void *buf, in fpu_copy_guest_fpstate_to_uabi() argument
374 struct fpstate *kstate = gfpu->fpstate; in fpu_copy_guest_fpstate_to_uabi()
390 int fpu_copy_uabi_to_guest_fpstate(struct fpu_guest *gfpu, const void *buf, in fpu_copy_uabi_to_guest_fpstate() argument
393 struct fpstate *kstate = gfpu->fpstate; in fpu_copy_uabi_to_guest_fpstate()