Commit 5f31147
committed
fix(vmm): Change T2A to set EferLmsleUnsupported to 1
(cherry picked from commit fa1e2ab)
CPUID.0x80000008:EBX[20] (EferLmsleUnsupported) indicates that
EFER[LMSLE] is not supported. As described in AMD64 APM vol.2,
EFER[LMSLE] has already been deprecated and is not suported by all
processor implementations (including m6a.metal).
KVM allows nested virtualization guests to write EFER[LMSLE] only for
very specific software (SLES11 version of Xen 4.0 to boot nested SVM).
On non-nested virtualized guests, writing to EFER[LMSLE] generates #GP
which is identical to behavior on CPUs where the EferLmsleUnsupported
bit is set to 1. As T2A template disables SVM, it is safer and better to
let guests know that writing to EFER[LMSLE] is not supported.
As a side note, to revert the upstream commit allowing it on nested
virtualized guests, some discussions were made but was cut off in the
middle.
Signed-off-by: Takahiro Itazuri <[email protected]>1 parent b3129c7 commit 5f31147
File tree
3 files changed
+5
-3
lines changed- resources/tests/static_cpu_templates
- src/vmm/src/cpu_config/x86_64/static_cpu_templates
3 files changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
125 | | - | |
| 124 | + | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| |||
0 commit comments