aboutsummaryrefslogtreecommitdiffstats
path: root/virt/kvm
diff options
context:
space:
mode:
authorChristoffer Dall <christoffer.dall@arm.com>2016-05-01 16:29:58 -0400
committerMarc Zyngier <marc.zyngier@arm.com>2019-02-19 16:05:45 -0500
commit64cf98fa5544aee6c547786ee32f92b796b30635 (patch)
tree019e045370167fb30e982ad16891fd94905dea56 /virt/kvm
parentbee038a67487598ebbe995f85bf60c3a5b2e9099 (diff)
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/kvm')
-rw-r--r--virt/kvm/arm/mmu.c8
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)
1403 return false; 1403 return false;
1404} 1404}
1405 1405
1406static bool kvm_is_write_fault(struct kvm_vcpu *vcpu)
1407{
1408 if (kvm_vcpu_trap_is_iabt(vcpu))
1409 return false;
1410
1411 return kvm_vcpu_dabt_iswrite(vcpu);
1412}
1413
1414/** 1406/**
1415 * stage2_wp_ptes - write protect PMD range 1407 * stage2_wp_ptes - write protect PMD range
1416 * @pmd: pointer to pmd entry 1408 * @pmd: pointer to pmd entry