Commit c266754
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>1 parent 41f6710 commit c266754
1 file changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12401 | 12401 | | |
12402 | 12402 | | |
12403 | 12403 | | |
| 12404 | + | |
| 12405 | + | |
12404 | 12406 | | |
12405 | 12407 | | |
12406 | 12408 | | |
| |||
12414 | 12416 | | |
12415 | 12417 | | |
12416 | 12418 | | |
12417 | | - | |
| 12419 | + | |
| 12420 | + | |
| 12421 | + | |
12418 | 12422 | | |
12419 | 12423 | | |
| 12424 | + | |
| 12425 | + | |
12420 | 12426 | | |
12421 | 12427 | | |
12422 | 12428 | | |
12423 | 12429 | | |
12424 | 12430 | | |
12425 | | - | |
12426 | | - | |
| 12431 | + | |
| 12432 | + | |
12427 | 12433 | | |
12428 | 12434 | | |
12429 | 12435 | | |
| |||
0 commit comments