diff options
| author | Sean Christopherson <seanjc@google.com> | 2021-03-04 17:11:01 -0800 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-03-15 04:42:25 -0400 |
| commit | 73ad160693dc3baf230d76cf44c3207defad6e21 (patch) | |
| tree | f695a81b8403ecff524e06a3ea158bbeae808ff6 /tools/perf/scripts/python | |
| parent | a91f387b4bfedab595a987ad41e75d8839a958bf (diff) | |
| download | linux-73ad160693dc3baf230d76cf44c3207defad6e21.tar.gz linux-73ad160693dc3baf230d76cf44c3207defad6e21.zip | |
KVM: x86/mmu: WARN on NULL pae_root or lm_root, or bad shadow root level
WARN if KVM is about to dereference a NULL pae_root or lm_root when
loading an MMU, and convert the BUG() on a bad shadow_root_level into a
WARN (now that errors are handled cleanly). With nested NPT, botching
the level and sending KVM down the wrong path is all too easy, and the
on-demand allocation of pae_root and lm_root means bugs crash the host.
Obviously, KVM could unconditionally allocate the roots, but that's
arguably a worse failure mode as it would potentially corrupt the guest
instead of crashing it.
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210305011101.3597423-18-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
