diff options
author | Isaku Yamahata <[email protected]> | 2024-02-27 18:41:35 -0800 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2024-05-07 11:59:18 -0400 |
commit | c9710130ccae3ac3798a5731d2291eeac3a15e20 (patch) | |
tree | 287744523ff290e8bd1a9081eab505e7622a9d2b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | dee281e4b4355286c76d1788dc8e65ec236d6e04 (diff) |
KVM: x86/mmu: Pass full 64-bit error code when handling page faults
Plumb the full 64-bit error code throughout the page fault handling code
so that KVM can use the upper 32 bits, e.g. SNP's PFERR_GUEST_ENC_MASK
will be used to determine whether or not a fault is private vs. shared.
Note, passing the 64-bit error code to FNAME(walk_addr)() does NOT change
the behavior of permission_fault() when invoked in the page fault path, as
KVM explicitly clears PFERR_IMPLICIT_ACCESS in kvm_mmu_page_fault().
Continue passing '0' from the async #PF worker, as guest_memfd and thus
private memory doesn't support async page faults.
Signed-off-by: Isaku Yamahata <[email protected]>
[mdr: drop references/changes on rebase, update commit message]
Signed-off-by: Michael Roth <[email protected]>
[sean: drop truncation in call to FNAME(walk_addr)(), rewrite changelog]
Signed-off-by: Sean Christopherson <[email protected]>
Reviewed-by: Xiaoyao Li <[email protected]>
Message-ID: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions