diff options
Diffstat (limited to 'arch/powerpc/kvm/book3s_pr.c')
-rw-r--r-- | arch/powerpc/kvm/book3s_pr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kvm/book3s_pr.c b/arch/powerpc/kvm/book3s_pr.c index e2cfb9e1e20e..220fcdf26978 100644 --- a/arch/powerpc/kvm/book3s_pr.c +++ b/arch/powerpc/kvm/book3s_pr.c | |||
@@ -227,14 +227,14 @@ static void kvmppc_patch_dcbz(struct kvm_vcpu *vcpu, struct kvmppc_pte *pte) | |||
227 | hpage_offset /= 4; | 227 | hpage_offset /= 4; |
228 | 228 | ||
229 | get_page(hpage); | 229 | get_page(hpage); |
230 | page = kmap_atomic(hpage, KM_USER0); | 230 | page = kmap_atomic(hpage); |
231 | 231 | ||
232 | /* patch dcbz into reserved instruction, so we trap */ | 232 | /* patch dcbz into reserved instruction, so we trap */ |
233 | for (i=hpage_offset; i < hpage_offset + (HW_PAGE_SIZE / 4); i++) | 233 | for (i=hpage_offset; i < hpage_offset + (HW_PAGE_SIZE / 4); i++) |
234 | if ((page[i] & 0xff0007ff) == INS_DCBZ) | 234 | if ((page[i] & 0xff0007ff) == INS_DCBZ) |
235 | page[i] &= 0xfffffff7; | 235 | page[i] &= 0xfffffff7; |
236 | 236 | ||
237 | kunmap_atomic(page, KM_USER0); | 237 | kunmap_atomic(page); |
238 | put_page(hpage); | 238 | put_page(hpage); |
239 | } | 239 | } |
240 | 240 | ||