diff options
author | Lai Jiangshan <jiangshan.ljs@antgroup.com> | 2023-02-02 21:28:16 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-03-14 17:28:56 +0300 |
commit | 39fda5d873eb1f59613ce49249ee2effea9f8e06 (patch) | |
tree | 997fc47924098d5b22390c6facf6b4ae039cdfd3 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 258d985f6eb360c9c7aacd025d0dbc080a59423f (diff) | |
download | linux-39fda5d873eb1f59613ce49249ee2effea9f8e06.tar.xz |
KVM: x86/mmu: Detect write #PF to shadow pages during FNAME(fetch) walk
Move the detection of write #PF to shadow pages, i.e. a fault on a write
to a page table that is being shadowed by KVM that is used to translate
the write itself, from FNAME(is_self_change_mapping) to FNAME(fetch).
There is no need to detect the self-referential write before
kvm_faultin_pfn() as KVM does not consume EMULTYPE_WRITE_PF_TO_SP for
accesses that resolve to "error or no-slot" pfns, i.e. KVM doesn't allow
retrying MMIO accesses or writes to read-only memslots.
Detecting the EMULTYPE_WRITE_PF_TO_SP scenario in FNAME(fetch) will allow
dropping FNAME(is_self_change_mapping) entirely, as the hugepage
interaction can be deferred to kvm_mmu_hugepage_adjust().
Cc: Huang Hang <hhuang@linux.alibaba.com>
Signed-off-by: Lai Jiangshan <jiangshan.ljs@antgroup.com>
Link: https://lore.kernel.org/r/20221213125538.81209-1-jiangshanlai@gmail.com
[sean: split to separate patch, write changelog]
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20230202182817.407394-3-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions