]> Gentwo Git Trees - linux/.git/commit
KVM: x86: Zero XSTATE components on INIT by iterating over supported features
authorChao Gao <chao.gao@intel.com>
Tue, 12 Aug 2025 02:55:13 +0000 (19:55 -0700)
committerSean Christopherson <seanjc@google.com>
Tue, 19 Aug 2025 18:59:51 +0000 (11:59 -0700)
commitc26675447faff8c4ddc1dc5d2cd28326b8181aaf
treef6e20989f503d7051968d2c438675cbd3b8ffb90
parent41f6710f99f4337924e3929e8e7a51c74f800b91
KVM: x86: Zero XSTATE components on INIT by iterating over supported features

Tweak the code a bit to facilitate resetting more xstate components in
the future, e.g., CET's xstate-managed MSRs.

No functional change intended.

Suggested-by: Sean Christopherson <seanjc@google.com>
Tested-by: Mathias Krause <minipli@grsecurity.net>
Tested-by: John Allen <john.allen@amd.com>
Signed-off-by: Chao Gao <chao.gao@intel.com>
Tested-by: Rick Edgecombe <rick.p.edgecombe@intel.com>
Link: https://lore.kernel.org/r/20250812025606.74625-6-chao.gao@intel.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/x86.c