diff options
author | Bharat Bhushan <r65777@freescale.com> | 2013-11-18 11:18:54 +0530 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2014-01-09 10:15:08 +0100 |
commit | 08c9a188d0d0fc0f0c5e17d89a06bb59c493110f (patch) | |
tree | 01aca3b21723345995672898c0dc88294f3338ab /arch/powerpc/include/asm/kvm_host.h | |
parent | f5e3fe091f5238459752a81b478398b7cb22e575 (diff) | |
download | lwn-08c9a188d0d0fc0f0c5e17d89a06bb59c493110f.tar.gz lwn-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/include/asm/kvm_host.h')
-rw-r--r-- | arch/powerpc/include/asm/kvm_host.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/kvm_host.h b/arch/powerpc/include/asm/kvm_host.h index 3ca0b430eaee..2c2ca5faf7f2 100644 --- a/arch/powerpc/include/asm/kvm_host.h +++ b/arch/powerpc/include/asm/kvm_host.h @@ -540,6 +540,7 @@ struct kvm_vcpu_arch { #endif gpa_t paddr_accessed; gva_t vaddr_accessed; + pgd_t *pgdir; u8 io_gpr; /* GPR used as IO source/target */ u8 mmio_is_bigendian; @@ -597,7 +598,6 @@ struct kvm_vcpu_arch { struct list_head run_list; struct task_struct *run_task; struct kvm_run *kvm_run; - pgd_t *pgdir; spinlock_t vpa_update_lock; struct kvmppc_vpa vpa; |