diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2026-05-11 06:58:40 -0400 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2026-06-25 11:31:59 +0200 |
| commit | 72f734a435b24122e30e6f5a20f8fafdc21b2a3a (patch) | |
| tree | 2d0609b5bbfa31430a53664f72fdb875326ab054 /include/linux/timerqueue.h | |
| parent | 7ccb75f2bfeb0d1040eb25d9ab4329c825549b2a (diff) | |
KVM: x86/mmu: pull page format to a new struct
Structs kvm_mmu ("build page tables") and kvm_pagewalk ("walk page
tables") share a piece of common functionality, namely "looking at PTEs".
Both of them have code to check is a specific access (described by
PFERR_* constants) is allowed by a PTE, and both of them also validate
that reserved bits are zero on the respective page tables page tables;
for SPTEs the code is only there to check internal consistency, but in
this case it is indeed shared via struct rsvd_bits_validate.
In preparation for sharing more PTE parsing code between struct
kvm_pagewalk and struct kvm_mmu, create a new struct that contains all
precalculated tables, including the data that is extracted from the
CPU role. For now only struct kvm_pagewalk uses it.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
