Lines Matching refs:msr

19 	u64 msr = vcpu->arch.shregs.msr;  in emulate_tx_failure()  local
23 if (MSR_TM_SUSPENDED(vcpu->arch.shregs.msr)) in emulate_tx_failure()
25 if (msr & MSR_PR) { in emulate_tx_failure()
45 u64 msr = vcpu->arch.shregs.msr; in kvmhv_p9_tm_emulation() local
65 WARN_ON_ONCE(!(MSR_TM_SUSPENDED(msr) && in kvmhv_p9_tm_emulation()
69 vcpu->arch.shregs.msr = newmsr; in kvmhv_p9_tm_emulation()
75 if ((msr & MSR_PR) && (vcpu->arch.vcore->pcr & PCR_ARCH_206)) { in kvmhv_p9_tm_emulation()
86 if ((msr & MSR_PR) && !(vcpu->arch.fscr & FSCR_EBB)) { in kvmhv_p9_tm_emulation()
95 WARN_ON_ONCE(!(MSR_TM_SUSPENDED(msr) && in kvmhv_p9_tm_emulation()
101 msr = (msr & ~MSR_TS_MASK) | MSR_TS_T; in kvmhv_p9_tm_emulation()
102 vcpu->arch.shregs.msr = msr; in kvmhv_p9_tm_emulation()
112 WARN_ON_ONCE(!(MSR_TM_SUSPENDED(msr) && in kvmhv_p9_tm_emulation()
116 newmsr = (newmsr & ~MSR_LE) | (msr & MSR_LE); in kvmhv_p9_tm_emulation()
118 vcpu->arch.shregs.msr = newmsr; in kvmhv_p9_tm_emulation()
124 if ((msr & MSR_PR) && (vcpu->arch.vcore->pcr & PCR_ARCH_206)) { in kvmhv_p9_tm_emulation()
135 if (!(msr & MSR_TM)) { in kvmhv_p9_tm_emulation()
145 (((msr & MSR_TS_MASK) >> MSR_TS_S_LG) << 29); in kvmhv_p9_tm_emulation()
148 if (MSR_TM_SUSPENDED(msr)) in kvmhv_p9_tm_emulation()
149 msr = (msr & ~MSR_TS_MASK) | MSR_TS_T; in kvmhv_p9_tm_emulation()
151 if (MSR_TM_TRANSACTIONAL(msr)) in kvmhv_p9_tm_emulation()
152 msr = (msr & ~MSR_TS_MASK) | MSR_TS_S; in kvmhv_p9_tm_emulation()
154 vcpu->arch.shregs.msr = msr; in kvmhv_p9_tm_emulation()
165 if (!(msr & MSR_TM)) { in kvmhv_p9_tm_emulation()
174 if (!MSR_TM_ACTIVE(msr)) { in kvmhv_p9_tm_emulation()
190 (((msr & MSR_TS_MASK) >> MSR_TS_S_LG) << 29); in kvmhv_p9_tm_emulation()
191 vcpu->arch.shregs.msr &= ~MSR_TS_MASK; in kvmhv_p9_tm_emulation()
203 if (!(msr & MSR_TM)) { in kvmhv_p9_tm_emulation()
212 if (MSR_TM_ACTIVE(msr) || !(vcpu->arch.texasr & TEXASR_FS)) { in kvmhv_p9_tm_emulation()
221 (((msr & MSR_TS_MASK) >> MSR_TS_S_LG) << 29); in kvmhv_p9_tm_emulation()
222 vcpu->arch.shregs.msr = msr | MSR_TS_S; in kvmhv_p9_tm_emulation()