x86/fpu: Drop @perm from guest pseudo FPU container
authorChao Gao <chao.gao@intel.com>
Tue, 6 May 2025 09:36:07 +0000 (17:36 +0800)
committerIngo Molnar <mingo@kernel.org>
Tue, 6 May 2025 09:52:22 +0000 (11:52 +0200)
commit32d5fa804dc9bd7cf6651a1378ba616d332e7444
tree59421418a59b80f5e6a5cb43ece2777516456a33
parentd8414603b29f25191fcceafb72e74b67ac2e92b1
x86/fpu: Drop @perm from guest pseudo FPU container

Remove @perm from the guest pseudo FPU container. The field is
initialized during allocation and never used later.

Rename fpu_init_guest_permissions() to show that its sole purpose is to
lock down guest permissions.

Suggested-by: Maxim Levitsky <mlevitsk@redhat.com>
Signed-off-by: Chao Gao <chao.gao@intel.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Chang S. Bae <chang.seok.bae@intel.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Eric Biggers <ebiggers@google.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Kees Cook <kees@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mitchell Levy <levymitchell0@gmail.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Samuel Holland <samuel.holland@sifive.com>
Cc: Sean Christopherson <seanjc@google.com>
Cc: Vitaly Kuznetsov <vkuznets@redhat.com>
Link: https://lore.kernel.org/kvm/af972fe5981b9e7101b64de43c7be0a8cc165323.camel@redhat.com/
Link: https://lore.kernel.org/r/20250506093740.2864458-3-chao.gao@intel.com
arch/x86/include/asm/fpu/types.h
arch/x86/kernel/fpu/core.c