KVM: arm64: Remove S1PTW check from kvm_vcpu_dabt_iswrite()
authorMarc Zyngier <maz@kernel.org>
Tue, 15 Sep 2020 10:42:18 +0000 (11:42 +0100)
committerMarc Zyngier <maz@kernel.org>
Fri, 18 Sep 2020 17:01:48 +0000 (18:01 +0100)
commit620cf45f7a516bf5fe9e5dce675a652e935c8bde
tree891908d846bbfcf26c8e7023b27dd0c2ff86d7db
parentc4ad98e4b72cb5be30ea282fce935248f2300e62
KVM: arm64: Remove S1PTW check from kvm_vcpu_dabt_iswrite()

Now that kvm_vcpu_trap_is_write_fault() checks for S1PTW, there
is no need for kvm_vcpu_dabt_iswrite() to do the same thing, as
we already check for this condition on all existing paths.

Drop the check and add a comment instead.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20200915104218.1284701-3-maz@kernel.org
arch/arm64/include/asm/kvm_emulate.h