]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV: Fix bug leading to deadlock in guest HPT updates
authorPaul Mackerras <paulus@samba.org>
Wed, 9 May 2012 23:49:24 +0000 (23:49 +0000)
committerAlexander Graf <agraf@suse.de>
Wed, 16 May 2012 13:02:12 +0000 (15:02 +0200)
commit793bfe3b5db82ae6b0e0bf94ad917ba0f5c1a283
treec323aefd210110cfd65162f9c2a5d53f494ee8e1
parent675dffcb1faa720e850fca002dd8468f9f38f7e8
KVM: PPC: Book3S HV: Fix bug leading to deadlock in guest HPT updates

When handling the H_BULK_REMOVE hypercall, we were forgetting to
invalidate and unlock the hashed page table entry (HPTE) in the case
where the page had been paged out.  This fixes it by clearing the
first doubleword of the HPTE in that case.

This fixes a regression introduced in commit 8698247851 ("KVM: PPC:
Book3S HV: Keep HPTE locked when invalidating").  The effect of the
regression is that the host kernel will sometimes hang when under
memory pressure.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/kvm/book3s_hv_rm_mmu.c