summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kvm/booke.c
diff options
context:
space:
mode:
authorBharat Bhushan <r65777@freescale.com>2013-11-18 11:18:54 +0530
committerAlexander Graf <agraf@suse.de>2014-01-09 10:15:08 +0100
commit08c9a188d0d0fc0f0c5e17d89a06bb59c493110f (patch)
tree01aca3b21723345995672898c0dc88294f3338ab /arch/powerpc/kvm/booke.c
parentf5e3fe091f5238459752a81b478398b7cb22e575 (diff)
downloadtalos-op-linux-08c9a188d0d0fc0f0c5e17d89a06bb59c493110f.tar.gz
talos-op-linux-08c9a188d0d0fc0f0c5e17d89a06bb59c493110f.zip
kvm: powerpc: use caching attributes as per linux pte
KVM uses same WIM tlb attributes as the corresponding qemu pte. For this we now search the linux pte for the requested page and get these cache caching/coherency attributes from pte. Signed-off-by: Bharat Bhushan <bharat.bhushan@freescale.com> Reviewed-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc/kvm/booke.c')
-rw-r--r--arch/powerpc/kvm/booke.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/booke.c b/arch/powerpc/kvm/booke.c
index a983ccaf3cce..54ee1c01798f 100644
--- a/arch/powerpc/kvm/booke.c
+++ b/arch/powerpc/kvm/booke.c
@@ -717,6 +717,7 @@ int kvmppc_vcpu_run(struct kvm_run *kvm_run, struct kvm_vcpu *vcpu)
thread.debug = current->thread.debug;
current->thread.debug = vcpu->arch.shadow_dbg_reg;
+ vcpu->arch.pgdir = current->mm->pgd;
kvmppc_fix_ee_before_entry();
ret = __kvmppc_vcpu_run(kvm_run, vcpu);
OpenPOWER on IntegriCloud