diff options
| author | Sean Christopherson <seanjc@google.com> | 2026-09-02 16:20:25 -0700 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2026-09-11 15:42:01 -0700 |
| commit | 1c4c84a643b704e473cb171f7b61359ff29b12a4 (patch) | |
| tree | 73df17597b0a0a1925188f07b0530ebf19087487 /tools/perf/scripts/python/task-analyzer.py | |
| parent | 5dc500a354cc8e109df678076ae3488094649468 (diff) | |
KVM: nSVM: Ignore EFER.LMA if EFER.LME=0 when preparing L2 state
Force EFER.LMA=0 if EFER.LME=0 when preparing L2 state for VMRUN, i.e.
mimic real hardware's behavior of ignoring EFER.LMA if EFER.LME=0. VMRUN
unfortunately allows the nonsensical combination, i.e. doesn't fail, but
KVM itself has an invariant EFER.LMA can be set et if and only if EFER.LME
is set. Breaking that invariant can lead to a variety of issue,
particularly in MMU code that keys off EFER.LMA when determining whether to
emulate/virtualization 4/5-level paging versus PAE paging.
Cc: stable@vger.kernel.org
Cc: Yosry Ahmed <yosry@kernel.org>
Link: https://patch.msgid.link/20260902232028.2767071-3-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
