KVM: PPC E500: fix tlbcfg emulation
authorLiu Yu <yu.liu@freescale.com>
Fri, 22 Jan 2010 11:36:53 +0000 (19:36 +0800)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 1 Mar 2010 15:36:06 +0000 (12:36 -0300)
commitda15bf436bc9586603b47b39244157431fa38b56
tree2131a64e8265649d0d7b27a3c357dc9058b0490c
parenta9040f274285c3c962a08b177ac5764b4a93df07
KVM: PPC E500: fix tlbcfg emulation

commit 55fb1027c1cf9797dbdeab48180da530e81b1c39 doesn't update tlbcfg correctly.
Fix it.

And since guest OS likes 'fixed' hardware,
initialize tlbcfg everytime when guest access is useless.
So move this part to init code.

Signed-off-by: Liu Yu <yu.liu@freescale.com>
Acked-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/powerpc/include/asm/kvm_e500.h
arch/powerpc/kvm/e500_emulate.c
arch/powerpc/kvm/e500_tlb.c