]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV: Make H_REMOVE return correct HPTE value for absent HPTEs
authorPaul Mackerras <paulus@samba.org>
Mon, 18 May 2015 04:10:54 +0000 (14:10 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 21 Oct 2015 05:25:06 +0000 (16:25 +1100)
commit5bf8551441c1fbc3ec8f2eef4de76c0e5ff2f732
treead79c4a9cbc5a61eae174b11eb5efa77598044dd
parent0028bd5356485b5e811edd38f70d5a4747ef2871
KVM: PPC: Book3S HV: Make H_REMOVE return correct HPTE value for absent HPTEs

This fixes a bug where the old HPTE value returned by H_REMOVE has
the valid bit clear if the HPTE was an absent HPTE, as happens for
HPTEs for emulated MMIO pages and for RAM pages that have been paged
out by the host.  If the absent bit is set, we clear it and set the
valid bit, because from the guest's point of view, the HPTE is valid.

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