diff options
author | Mihai Caraman <mihai.caraman@freescale.com> | 2014-04-25 20:21:42 (GMT) |
---|---|---|
committer | Jose Rivera <German.Rivera@freescale.com> | 2014-04-30 02:05:50 (GMT) |
commit | 2c5a79c9380f82c3b17fd95b052618050f2cbc1d (patch) | |
tree | 705fa2217be6914cd22675a4dbbbbec3b93f5f3d | |
parent | 59573742388442aef7f74a30bf606a955b4cad0d (diff) | |
download | linux-fsl-qoriq-2c5a79c9380f82c3b17fd95b052618050f2cbc1d.tar.xz |
KVM: PPC: e500mc: Advertise E.PT to support HTW guests
Enable E.PT for vcpus with MMU MAV 2.0 to support Hardware Page Tablewalk
(HTW) in guests.
Signed-off-by: Mihai Caraman <mihai.caraman@freescale.com>
(cherry picked and merged from sdk1.5 commit 815866e615d1452083c7f379391926aa42eddcf0)
Change-Id: Ia73322e2d4eaff2acc62afb6e3b36f27d751dc29
Reviewed-on: http://git.am.freescale.net:8181/11563
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
Reviewed-by: Stuart Yoder <stuart.yoder@freescale.com>
Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
-rw-r--r-- | arch/powerpc/kvm/e500_mmu.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/powerpc/kvm/e500_mmu.c b/arch/powerpc/kvm/e500_mmu.c index 4a027cb..efc3d4e 100644 --- a/arch/powerpc/kvm/e500_mmu.c +++ b/arch/powerpc/kvm/e500_mmu.c @@ -945,11 +945,7 @@ static int vcpu_mmu_init(struct kvm_vcpu *vcpu, vcpu->arch.tlbps[1] = mfspr(SPRN_TLB1PS); vcpu->arch.mmucfg &= ~MMUCFG_LRAT; - - /* Guest mmu emulation currently doesn't handle E.PT */ - vcpu->arch.eptcfg = 0; - vcpu->arch.tlbcfg[0] &= ~TLBnCFG_PT; - vcpu->arch.tlbcfg[1] &= ~TLBnCFG_IND; + vcpu->arch.eptcfg = mfspr(SPRN_EPTCFG); } return 0; |