Commit 8060b2b
KVM: nVMX: Add consistency checks for CR0.WP and CR4.CET
Add consistency checks for CR4.CET and CR0.WP in guest-state or host-state
area in the VMCS12. This ensures that configurations with CR4.CET set and
CR0.WP not set result in VM-entry failure, aligning with architectural
behavior.
Tested-by: Mathias Krause <minipli@grsecurity.net>
Tested-by: John Allen <john.allen@amd.com>
Tested-by: Rick Edgecombe <rick.p.edgecombe@intel.com>
Signed-off-by: Chao Gao <chao.gao@intel.com>
Reviewed-by: Binbin Wu <binbin.wu@linux.intel.com>
Link: https://lore.kernel.org/r/20250919223258.1604852-33-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>1 parent 6258849 commit 8060b2b
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3110 | 3110 | | |
3111 | 3111 | | |
3112 | 3112 | | |
| 3113 | + | |
| 3114 | + | |
| 3115 | + | |
3113 | 3116 | | |
3114 | 3117 | | |
3115 | 3118 | | |
| |||
3224 | 3227 | | |
3225 | 3228 | | |
3226 | 3229 | | |
| 3230 | + | |
| 3231 | + | |
| 3232 | + | |
3227 | 3233 | | |
3228 | 3234 | | |
3229 | 3235 | | |
| |||
0 commit comments