Home
last modified time | relevance | path

Searched refs:guest_fpu (Results 1 – 6 of 6) sorted by relevance

/linux/arch/x86/kernel/fpu/
H A Dcore.c281 int fpu_enable_guest_xfd_features(struct fpu_guest *guest_fpu, u64 xfeatures) in fpu_enable_guest_xfd_features() argument
286 xfeatures &= ~guest_fpu->xfeatures; in fpu_enable_guest_xfd_features()
290 return __xfd_enable_feature(xfeatures, guest_fpu); in fpu_enable_guest_xfd_features()
295 void fpu_update_guest_xfd(struct fpu_guest *guest_fpu, u64 xfd) in fpu_update_guest_xfd() argument
298 guest_fpu->fpstate->xfd = xfd; in fpu_update_guest_xfd()
299 if (guest_fpu->fpstate->in_use) in fpu_update_guest_xfd()
300 xfd_update_state(guest_fpu->fpstate); in fpu_update_guest_xfd()
330 int fpu_swap_kvm_fpstate(struct fpu_guest *guest_fpu, bool enter_guest) in fpu_swap_kvm_fpstate() argument
332 struct fpstate *guest_fps = guest_fpu->fpstate; in fpu_swap_kvm_fpstate()
H A Dxstate.c1520 unsigned int usize, struct fpu_guest *guest_fpu) in fpstate_realloc() argument
1540 curfps = guest_fpu ? guest_fpu->fpstate : fpu->fpstate; in fpstate_realloc()
1545 if (guest_fpu) { in fpstate_realloc()
1549 guest_fpu->xfeatures |= xfeatures; in fpstate_realloc()
1550 guest_fpu->uabi_size = usize; in fpstate_realloc()
1569 if (guest_fpu) { in fpstate_realloc()
1570 guest_fpu->fpstate = newfps; in fpstate_realloc()
1696 int __xfd_enable_feature(u64 xfd_err, struct fpu_guest *guest_fpu) in __xfd_enable_feature() argument
1704 if (!guest_fpu) in __xfd_enable_feature()
1713 if ((xstate_get_group_perm(!!guest_fpu) & xfd_event) != xfd_event) { in __xfd_enable_feature()
[all …]
H A Dxstate.h185 extern int __xfd_enable_feature(u64 which, struct fpu_guest *guest_fpu);
191 static inline int __xfd_enable_feature(u64 which, struct fpu_guest *guest_fpu) { in __xfd_enable_feature() argument
/linux/arch/x86/include/asm/fpu/
H A Dapi.h153 extern int fpu_enable_guest_xfd_features(struct fpu_guest *guest_fpu, u64 xfeatures);
156 extern void fpu_update_guest_xfd(struct fpu_guest *guest_fpu, u64 xfd);
159 static inline void fpu_update_guest_xfd(struct fpu_guest *guest_fpu, u64 xfd) { } in fpu_update_guest_xfd() argument
/linux/arch/x86/kvm/
H A Dx86.c4110 fpu_update_guest_xfd(&vcpu->arch.guest_fpu, data); in kvm_set_msr_common()
4120 vcpu->arch.guest_fpu.xfd_err = data; in kvm_set_msr_common()
4462 msr_info->data = vcpu->arch.guest_fpu.fpstate->xfd; in kvm_get_msr_common()
4469 msr_info->data = vcpu->arch.guest_fpu.xfd_err; in kvm_get_msr_common()
5586 if (fpstate_is_confidential(&vcpu->arch.guest_fpu)) in kvm_vcpu_ioctl_x86_get_xsave2()
5589 fpu_copy_guest_fpstate_to_uabi(&vcpu->arch.guest_fpu, state, size, in kvm_vcpu_ioctl_x86_get_xsave2()
5604 if (fpstate_is_confidential(&vcpu->arch.guest_fpu)) in kvm_vcpu_ioctl_x86_set_xsave()
5607 return fpu_copy_uabi_to_guest_fpstate(&vcpu->arch.guest_fpu, in kvm_vcpu_ioctl_x86_set_xsave()
6048 if (vcpu->arch.guest_fpu.uabi_size > sizeof(struct kvm_xsave)) in kvm_arch_vcpu_ioctl()
6067 int size = vcpu->arch.guest_fpu.uabi_size; in kvm_arch_vcpu_ioctl()
[all …]
H A Dcpuid.c187 return fpu_enable_guest_xfd_features(&vcpu->arch.guest_fpu, xfeatures); in kvm_check_cpuid()