]> git.baikalelectronics.ru Git - kernel.git/commit
x86/fpu: Add uabi_size to guest_fpu
authorThomas Gleixner <tglx@linutronix.de>
Wed, 5 Jan 2022 12:35:28 +0000 (04:35 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Jan 2022 18:44:40 +0000 (13:44 -0500)
commitfd2c936f36d01c76d60787f5555ffb678dfa14b3
tree5555b7cc1f8a3e5946015a0262d478f5566e59d0
parentde227e62fde106ebc9e40b778bfad05a60eca0cb
x86/fpu: Add uabi_size to guest_fpu

Userspace needs to inquire KVM about the buffer size to work
with the new KVM_SET_XSAVE and KVM_GET_XSAVE2. Add the size info
to guest_fpu for KVM to access.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Wei Wang <wei.w.wang@intel.com>
Signed-off-by: Jing Liu <jing2.liu@intel.com>
Signed-off-by: Yang Zhong <yang.zhong@intel.com>
Message-Id: <20220105123532.12586-18-yang.zhong@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/fpu/types.h
arch/x86/kernel/fpu/core.c
arch/x86/kernel/fpu/xstate.c