]> git.baikalelectronics.ru Git - kernel.git/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)
commit18e5d80eca3938a346c77196d9fcae5808025a97
tree2a981a6a3366c31f1dc39257615031566368a2e8
parent5f8bc19bdebc88851b0e5d5725c57bb5c9de8066
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