diff options
author | Sean Christopherson <seanjc@google.com> | 2025-08-12 05:55:12 +0300 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2025-08-19 21:59:50 +0300 |
commit | 41f6710f99f4337924e3929e8e7a51c74f800b91 (patch) | |
tree | ea796f4ce15a349c83c95dd245ea52625825aa23 /tools/docs/parse-headers.py | |
parent | c2aa58b226abf5ac6d355fb1f3b7c4284a7b5cab (diff) | |
download | linux-41f6710f99f4337924e3929e8e7a51c74f800b91.tar.xz |
KVM: x86: Manually clear MPX state only on INIT
Don't manually clear/zero MPX state on RESET, as the guest FPU state is
zero allocated and KVM only does RESET during vCPU creation, i.e. the
relevant state is guaranteed to be all zeroes.
Opportunistically move the relevant code into a helper in anticipation of
adding support for CET shadow stacks, which also has state that is zeroed
on INIT.
Signed-off-by: Yang Weijiang <weijiang.yang@intel.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-5-chao.gao@intel.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/docs/parse-headers.py')
0 files changed, 0 insertions, 0 deletions