linux/arch/x86/kvm/mmu
Sean Christopherson 3e1efe2b67 KVM: Wrap kvm_{gfn,hva}_range.pte in a per-action union
Wrap kvm_{gfn,hva}_range.pte in a union so that future notifier events can
pass event specific information up and down the stack without needing to
constantly expand and churn the APIs.  Lockless aging of SPTEs will pass
around a bitmap, and support for memory attributes will pass around the
new attributes for the range.

Add a "KVM_NO_ARG" placeholder to simplify handling events without an
argument (creating a dummy union variable is midly annoying).

Opportunstically drop explicit zero-initialization of the "pte" field, as
omitting the field (now a union) has the same effect.

Cc: Yu Zhao <yuzhao@google.com>
Link: https://lore.kernel.org/all/CAOUHufagkd2Jk3_HrVoFFptRXM=hX2CV8f+M-dka-hJU4bP8kw@mail.gmail.com
Reviewed-by: Oliver Upton <oliver.upton@linux.dev>
Acked-by: Yu Zhao <yuzhao@google.com>
Link: https://lore.kernel.org/r/20230729004144.1054885-1-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
2023-08-17 11:26:53 -07:00
..
mmu_internal.h KVM: x86/mmu: Use gfn_t in kvm_flush_remote_tlbs_range() 2023-03-17 15:36:20 -07:00
mmu.c KVM: Wrap kvm_{gfn,hva}_range.pte in a per-action union 2023-08-17 11:26:53 -07:00
mmutrace.h KVM: x86/mmu: Add RET_PF_CONTINUE to eliminate bool+int* "returns" 2022-05-12 09:51:42 -04:00
page_track.c KVM: x86: Unify pr_fmt to use module name for all KVM modules 2022-12-29 15:47:35 -05:00
paging_tmpl.h KVM: x86/mmu: Avoid indirect call for get_cr3 2023-03-22 07:46:42 -07:00
spte.c KVM: x86/mmu: Fix comment typo 2023-03-22 07:46:53 -07:00
spte.h kvm: x86/mmu: Rename SPTE_TDP_AD_ENABLED_MASK to SPTE_TDP_AD_ENABLED 2023-01-24 10:05:44 -08:00
tdp_iter.c KVM: x86/mmu: Move round_gfn_for_level() helper into mmu_internal.h 2023-01-24 10:05:45 -08:00
tdp_iter.h KVM: x86/mmu: Atomically clear SPTE dirty state in the clear-dirty-log flow 2023-04-04 12:37:30 -07:00
tdp_mmu.c KVM: Wrap kvm_{gfn,hva}_range.pte in a per-action union 2023-08-17 11:26:53 -07:00
tdp_mmu.h KVM: x86/mmu: Pivot on "TDP MMU enabled" to check if active MMU is TDP MMU 2022-12-29 15:33:25 -05:00