x86/fpu: Prepare guest FPU for dynamically enabled FPU features
authorThomas Gleixner <tglx@linutronix.de>
Wed, 5 Jan 2022 12:35:13 +0000 (04:35 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 7 Jan 2022 18:33:03 +0000 (13:33 -0500)
commit36487e6228c4cb04257c92266a04078a384bc4ec
treecd483a6cc3916cf83f298614aad1507188979952
parent980fe2fddcff21937c93532b4597c8ea450346c1
x86/fpu: Prepare guest FPU for dynamically enabled FPU features

To support dynamically enabled FPU features for guests prepare the guest
pseudo FPU container to keep track of the currently enabled xfeatures and
the guest permissions.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Jing Liu <jing2.liu@intel.com>
Signed-off-by: Yang Zhong <yang.zhong@intel.com>
Message-Id: <20220105123532.12586-3-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