KVM: arm64: Introduce two cache maintenance callbacks
authorYanan Wang <wangyanan55@huawei.com>
Thu, 17 Jun 2021 10:58:21 +0000 (18:58 +0800)
committerMarc Zyngier <maz@kernel.org>
Fri, 18 Jun 2021 11:34:52 +0000 (12:34 +0100)
commit6204004de3160900435bdb4b9a2fb8749a9277d2
tree7b96a0b559eb8fce3648330a306f98c5101de6f8
parent8124c8a6b35386f73523d27eacb71b5364a68c4c
KVM: arm64: Introduce two cache maintenance callbacks

To prepare for performing CMOs for guest stage-2 in the fault handlers
in pgtable.c, here introduce two cache maintenance callbacks in struct
kvm_pgtable_mm_ops. We also adjust the comment alignment for the
existing part but make no real content change at all.

Reviewed-by: Fuad Tabba <tabba@google.com>
Signed-off-by: Yanan Wang <wangyanan55@huawei.com>
[maz: fixed up comments and renamed callbacks]
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210617105824.31752-2-wangyanan55@huawei.com
arch/arm64/include/asm/kvm_pgtable.h