aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/powerpc/kvm/book3s_64_mmu_hv.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/powerpc/kvm/book3s_64_mmu_hv.c b/arch/powerpc/kvm/book3s_64_mmu_hv.c
index d40770248b6a..41f96c51dfca 100644
--- a/arch/powerpc/kvm/book3s_64_mmu_hv.c
+++ b/arch/powerpc/kvm/book3s_64_mmu_hv.c
@@ -1117,8 +1117,11 @@ static int kvm_test_clear_dirty_npages(struct kvm *kvm, unsigned long *rmapp)
1117 } 1117 }
1118 1118
1119 /* Now check and modify the HPTE */ 1119 /* Now check and modify the HPTE */
1120 if (!(hptep[0] & cpu_to_be64(HPTE_V_VALID))) 1120 if (!(hptep[0] & cpu_to_be64(HPTE_V_VALID))) {
1121 /* unlock and continue */
1122 hptep[0] &= ~cpu_to_be64(HPTE_V_HVLOCK);
1121 continue; 1123 continue;
1124 }
1122 1125
1123 /* need to make it temporarily absent so C is stable */ 1126 /* need to make it temporarily absent so C is stable */
1124 hptep[0] |= cpu_to_be64(HPTE_V_ABSENT); 1127 hptep[0] |= cpu_to_be64(HPTE_V_ABSENT);