Searched refs:guest_fpu (Results 1 – 8 of 8) sorted by relevance
/linux/arch/x86/include/asm/fpu/ |
H A D | api.h | 153 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/kernel/fpu/ |
H A D | core.c | 281 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 D | xstate.c | 1520 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 D | xstate.h | 163 extern int __xfd_enable_feature(u64 which, struct fpu_guest *guest_fpu); 169 static inline int __xfd_enable_feature(u64 which, struct fpu_guest *guest_fpu) { in __xfd_enable_feature() argument
|
/linux/arch/x86/kvm/ |
H A D | x86.c | 4136 fpu_update_guest_xfd(&vcpu->arch.guest_fpu, data); in kvm_set_msr_common() 4146 vcpu->arch.guest_fpu.xfd_err = data; in kvm_set_msr_common() 4490 msr_info->data = vcpu->arch.guest_fpu.fpstate->xfd; in kvm_get_msr_common() 4497 msr_info->data = vcpu->arch.guest_fpu.xfd_err; in kvm_get_msr_common() 5608 if (fpstate_is_confidential(&vcpu->arch.guest_fpu)) in kvm_vcpu_ioctl_x86_get_xsave2() 5611 fpu_copy_guest_fpstate_to_uabi(&vcpu->arch.guest_fpu, state, size, in kvm_vcpu_ioctl_x86_get_xsave2() 5626 if (fpstate_is_confidential(&vcpu->arch.guest_fpu)) in kvm_vcpu_ioctl_x86_set_xsave() 5629 return fpu_copy_uabi_to_guest_fpstate(&vcpu->arch.guest_fpu, in kvm_vcpu_ioctl_x86_set_xsave() 6070 if (vcpu->arch.guest_fpu.uabi_size > sizeof(struct kvm_xsave)) in kvm_arch_vcpu_ioctl() 6089 int size = vcpu->arch.guest_fpu.uabi_size; in kvm_arch_vcpu_ioctl() [all …]
|
H A D | cpuid.c | 166 return fpu_enable_guest_xfd_features(&vcpu->arch.guest_fpu, xfeatures); in kvm_check_cpuid()
|
/linux/arch/x86/include/asm/ |
H A D | kvm_host.h | 827 struct fpu_guest guest_fpu; member
|
/linux/arch/x86/kvm/svm/ |
H A D | sev.c | 860 xsave = &vcpu->arch.guest_fpu.fpstate->regs.xsave; in sev_es_sync_vmsa() 937 fpstate_set_confidential(&vcpu->arch.guest_fpu); in __sev_launch_update_vmsa()
|