diff options
author | Sean Christopherson <[email protected]> | 2024-10-10 11:23:45 -0700 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2024-10-25 13:00:47 -0400 |
commit | 1c7b627e930624dd64ee906df554c8f2bad628ff (patch) | |
tree | 16fc33288bf4418712f0816df622ba5de9dd4071 /scripts/gdb/linux/stackdepot.py | |
parent | 21dd877060d49f1f57901f929189653fc42ac37a (diff) |
KVM: Add kvm_faultin_pfn() to specifically service guest page faults
Add a new dedicated API, kvm_faultin_pfn(), for servicing guest page
faults, i.e. for getting pages/pfns that will be mapped into the guest via
an mmu_notifier-protected KVM MMU. Keep struct kvm_follow_pfn buried in
internal code, as having __kvm_faultin_pfn() take "out" params is actually
cleaner for several architectures, e.g. it allows the caller to have its
own "page fault" structure without having to marshal data to/from
kvm_follow_pfn.
Long term, common KVM would ideally provide a kvm_page_fault structure, a
la x86's struct of the same name. But all architectures need to be
converted to a common API before that can happen.
Tested-by: Alex Bennée <[email protected]>
Signed-off-by: Sean Christopherson <[email protected]>
Tested-by: Dmitry Osipenko <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Message-ID: <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/stackdepot.py')
0 files changed, 0 insertions, 0 deletions