On 31.01.2013, at 14:24, Alexander Graf wrote: > > On 30.01.2013, at 14:29, Mihai Caraman wrote: > >> Emulate TLBnPS registers which are available in MMU Architecture Version >> (MAV) 2.0. >> >> Signed-off-by: Mihai Caraman <mihai.caraman@xxxxxxxxxxxxx> >> --- >> arch/powerpc/include/asm/kvm_host.h | 1 + >> arch/powerpc/kvm/e500.h | 5 +++++ >> arch/powerpc/kvm/e500_emulate.c | 10 ++++++++++ >> arch/powerpc/kvm/e500_mmu.c | 5 +++++ >> 4 files changed, 21 insertions(+), 0 deletions(-) >> >> diff --git a/arch/powerpc/include/asm/kvm_host.h b/arch/powerpc/include/asm/kvm_host.h >> index 8a72d59..88fcfe6 100644 >> --- a/arch/powerpc/include/asm/kvm_host.h >> +++ b/arch/powerpc/include/asm/kvm_host.h >> @@ -501,6 +501,7 @@ struct kvm_vcpu_arch { >> spinlock_t wdt_lock; >> struct timer_list wdt_timer; >> u32 tlbcfg[4]; >> + u32 tlbps[4]; >> u32 mmucfg; >> u32 epr; >> struct kvmppc_booke_debug_reg dbg_reg; >> diff --git a/arch/powerpc/kvm/e500.h b/arch/powerpc/kvm/e500.h >> index 41cefd4..b9f76d8 100644 >> --- a/arch/powerpc/kvm/e500.h >> +++ b/arch/powerpc/kvm/e500.h >> @@ -303,4 +303,9 @@ static inline unsigned int get_tlbmiss_tid(struct kvm_vcpu *vcpu) >> #define get_tlb_sts(gtlbe) (MAS1_TS) >> #endif /* !BOOKE_HV */ >> >> +static inline unsigned int has_mmu_v2(const struct kvm_vcpu *vcpu) > > bool. Also rename it to "is_..." then. In light of the comment I did in a later patch, this too could be convert to feature flags. Alex -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html