]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
KVM: arm64: Introduce KVM_PGTABLE_S2_NOFWB stage 2 flag
authorQuentin Perret <qperret@google.com>
Fri, 19 Mar 2021 10:01:40 +0000 (10:01 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 19 Mar 2021 12:01:22 +0000 (12:01 +0000)
commitbc224df155c466178128a2950af16cba37b6f218
tree431ee687c306589253a0edf8b915aaf8c6ef4e67
parent2fcb3a59401d2d12b5337b62c799eeb22cf40a2c
KVM: arm64: Introduce KVM_PGTABLE_S2_NOFWB stage 2 flag

In order to further configure stage 2 page-tables, pass flags to the
init function using a new enum.

The first of these flags allows to disable FWB even if the hardware
supports it as we will need to do so for the host stage 2.

Signed-off-by: Quentin Perret <qperret@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210319100146.1149909-33-qperret@google.com
arch/arm64/include/asm/kvm_pgtable.h
arch/arm64/include/asm/pgtable-prot.h
arch/arm64/kvm/hyp/pgtable.c