diff options
| author | Sean Christopherson <seanjc@google.com> | 2022-06-14 23:33:27 +0000 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-06-20 06:21:29 -0400 |
| commit | f7384b8866b0b07f249130aa8b63135687626c5c (patch) | |
| tree | 96e7168a2f9df8bd8e5214e025749fb06d077f60 /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
| parent | f6b8ea6d43640ebfd1aeaa1faf1016d0bff7b8a0 (diff) | |
| download | linux-f7384b8866b0b07f249130aa8b63135687626c5c.tar.gz linux-f7384b8866b0b07f249130aa8b63135687626c5c.zip | |
KVM: x86/mmu: Truncate paging32's PT_BASE_ADDR_MASK to 32 bits
Truncate paging32's PT_BASE_ADDR_MASK to a pt_element_t, i.e. to 32 bits.
Ignoring PSE huge pages, the mask is only used in conjunction with gPTEs,
which are 32 bits, and so the address is limited to bits 31:12.
PSE huge pages encoded PA bits 39:32 in PTE bits 20:13, i.e. need custom
logic to handle their funky encoding regardless of PT_BASE_ADDR_MASK.
Note, PT_LVL_OFFSET_MASK is somewhat confusing in that it computes the
offset of the _gfn_, not of the gpa, i.e. not having bits 63:32 set in
PT_BASE_ADDR_MASK is again correct.
No functional change intended.
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20220614233328.3896033-8-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions
