]> Pileus Git - ~andy/linux/commit
KVM: PPC: E500: Propagate errors when shadow mapping
authorAlexander Graf <agraf@suse.de>
Fri, 18 Jan 2013 01:31:01 +0000 (02:31 +0100)
committerAlexander Graf <agraf@suse.de>
Thu, 24 Jan 2013 18:23:30 +0000 (19:23 +0100)
commit2c378fd779d2b37aed64cb44caa607707edc51d3
tree2a981a6a3366c31f1dc39257615031566368a2e8
parent523f0e5421c12610527c620b983b443f329e3a32
KVM: PPC: E500: Propagate errors when shadow mapping

When shadow mapping a page, mapping this page can fail. In that case we
don't have a shadow map.

Take this case into account, otherwise we might end up writing bogus TLB
entries into the host TLB.

While at it, also move the write_stlbe() calls into the respective TLBn
handlers.

Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/kvm/e500_tlb.c