diff options
author | Christoffer Dall <christoffer.dall@arm.com> | 2016-05-01 22:29:58 +0200 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2019-02-19 21:05:45 +0000 |
commit | 64cf98fa5544aee6c547786ee32f92b796b30635 (patch) | |
tree | 019e045370167fb30e982ad16891fd94905dea56 /virt | |
parent | bee038a67487598ebbe995f85bf60c3a5b2e9099 (diff) | |
download | linux-64cf98fa5544aee6c547786ee32f92b796b30635.tar.gz linux-64cf98fa5544aee6c547786ee32f92b796b30635.tar.bz2 linux-64cf98fa5544aee6c547786ee32f92b796b30635.zip |
KVM: arm/arm64: Move kvm_is_write_fault to header file
Move this little function to the header files for arm/arm64 so other
code can make use of it directly.
Signed-off-by: Christoffer Dall <christoffer.dall@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'virt')
-rw-r--r-- | virt/kvm/arm/mmu.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/virt/kvm/arm/mmu.c b/virt/kvm/arm/mmu.c index f8dda452ea24..e3e5a26b4845 100644 --- a/virt/kvm/arm/mmu.c +++ b/virt/kvm/arm/mmu.c @@ -1403,14 +1403,6 @@ static bool transparent_hugepage_adjust(kvm_pfn_t *pfnp, phys_addr_t *ipap) return false; } -static bool kvm_is_write_fault(struct kvm_vcpu *vcpu) -{ - if (kvm_vcpu_trap_is_iabt(vcpu)) - return false; - - return kvm_vcpu_dabt_iswrite(vcpu); -} - /** * stage2_wp_ptes - write protect PMD range * @pmd: pointer to pmd entry |