]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit763878ee5351d7b90164aa8245af39ec34806acd
tree891908d846bbfcf26c8e7023b27dd0c2ff86d7db
parent2540b1eeaecfd1f3094b39c8e107c86372988260
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