diff options
author | 2021-02-12 16:50:07 -0800 | |
---|---|---|
committer | 2021-02-19 03:08:32 -0500 | |
commit | c3bb9a20834ffe72d3031afe460ff03d3b3b6e90 (patch) | |
tree | be142b09834d49462fde1ffa10d942fa181ace6c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | KVM: x86/mmu: Consult max mapping level when zapping collapsible SPTEs (diff) | |
download | wireguard-linux-c3bb9a20834ffe72d3031afe460ff03d3b3b6e90.tar.xz wireguard-linux-c3bb9a20834ffe72d3031afe460ff03d3b3b6e90.zip |
KVM: nVMX: Disable PML in hardware when running L2
Unconditionally disable PML in vmcs02, KVM emulates PML purely in the
MMU, e.g. vmx_flush_pml_buffer() doesn't even try to copy the L2 GPAs
from vmcs02's buffer to vmcs12. At best, enabling PML is a nop. At
worst, it will cause vmx_flush_pml_buffer() to record bogus GFNs in the
dirty logs.
Initialize vmcs02.GUEST_PML_INDEX such that PML writes would trigger
VM-Exit if PML was somehow enabled, skip flushing the buffer for guest
mode since the index is bogus, and freak out if a PML full exit occurs
when L2 is active.
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210213005015.1651772-7-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions