Home
last modified time | relevance | path

Searched refs:new_msr (Results 1 - 20 of 20) sorted by relevance

/kernel/linux/linux-6.6/arch/powerpc/kvm/
H A Dbook3s_hv_builtin.c521 unsigned long msr, pc, new_msr, new_pc; in inject_interrupt() local
525 new_msr = vcpu->arch.intr_msr; in inject_interrupt()
530 new_msr |= MSR_TS_S; in inject_interrupt()
532 new_msr |= msr & MSR_TS_MASK; in inject_interrupt()
545 new_msr |= MSR_IR | MSR_DR; in inject_interrupt()
552 __kvmppc_set_msr_hv(vcpu, new_msr); in inject_interrupt()
H A Dbooke.h65 void kvmppc_set_msr(struct kvm_vcpu *vcpu, u32 new_msr);
H A Dbook3s_emulate.c301 ulong new_msr = kvmppc_get_msr(vcpu); in kvmppc_core_emulate_op_pr() local
302 new_msr &= ~(MSR_RI | MSR_EE); in kvmppc_core_emulate_op_pr()
303 new_msr |= rs_val & (MSR_RI | MSR_EE); in kvmppc_core_emulate_op_pr()
304 kvmppc_set_msr_fast(vcpu, new_msr); in kvmppc_core_emulate_op_pr()
H A Dbooke.c255 void kvmppc_set_msr(struct kvm_vcpu *vcpu, u32 new_msr) in kvmppc_set_msr() argument
260 new_msr |= MSR_GS; in kvmppc_set_msr()
263 vcpu->arch.shared->msr = new_msr; in kvmppc_set_msr()
426 ulong new_msr = vcpu->arch.shared->msr; in kvmppc_booke_irqprio_deliver() local
545 new_msr &= msr_mask; in kvmppc_booke_irqprio_deliver()
548 new_msr |= MSR_CM; in kvmppc_booke_irqprio_deliver()
550 kvmppc_set_msr(vcpu, new_msr); in kvmppc_booke_irqprio_deliver()
H A Dbook3s_pr.c109 unsigned long msr, pc, new_msr, new_pc; in kvmppc_inject_interrupt_pr() local
115 new_msr = vcpu->arch.intr_msr; in kvmppc_inject_interrupt_pr()
121 new_msr |= MSR_TS_S; in kvmppc_inject_interrupt_pr()
123 new_msr |= msr & MSR_TS_MASK; in kvmppc_inject_interrupt_pr()
129 kvmppc_set_msr(vcpu, new_msr); in kvmppc_inject_interrupt_pr()
/kernel/linux/linux-5.10/arch/powerpc/kernel/
H A Dsignal_32.c918 unsigned long new_msr = 0; in COMPAT_SYSCALL_DEFINE3() local
932 if (__get_user(new_msr, &mcp->mc_gregs[PT_MSR])) in COMPAT_SYSCALL_DEFINE3()
946 (new_msr & MSR_VSX)) in COMPAT_SYSCALL_DEFINE3()
1113 unsigned long new_msr = regs->msr; in SYSCALL_DEFINE3() local
1125 new_msr |= MSR_DE; in SYSCALL_DEFINE3()
1131 new_msr &= ~MSR_DE; in SYSCALL_DEFINE3()
1137 new_msr |= MSR_SE; in SYSCALL_DEFINE3()
1139 new_msr &= ~MSR_SE; in SYSCALL_DEFINE3()
1147 new_msr |= MSR_BE; in SYSCALL_DEFINE3()
1149 new_msr in SYSCALL_DEFINE3()
[all...]
H A Dprocess.c521 unsigned long new_msr = 0; in restore_math() local
526 * new_msr tracks the facilities that are to be restored. Only reload in restore_math()
531 new_msr |= MSR_FP; in restore_math()
534 new_msr |= MSR_VEC; in restore_math()
537 if (((msr | new_msr) & (MSR_FP | MSR_VEC)) == (MSR_FP | MSR_VEC)) in restore_math()
538 new_msr |= MSR_VSX; in restore_math()
541 if (new_msr) { in restore_math()
544 msr_check_and_set(new_msr); in restore_math()
546 if (new_msr & MSR_FP) { in restore_math()
553 if (new_msr in restore_math()
[all...]
H A Dsignal_64.c639 unsigned long new_msr = 0; in SYSCALL_DEFINE3() local
643 get_user(new_msr, &new_ctx->uc_mcontext.gp_regs[PT_MSR])) in SYSCALL_DEFINE3()
656 (new_msr & MSR_VSX)) in SYSCALL_DEFINE3()
/kernel/linux/linux-6.6/arch/powerpc/kernel/
H A Dsignal_32.c1001 unsigned long new_msr = 0; in COMPAT_SYSCALL_DEFINE3() local
1015 if (__get_user(new_msr, &mcp->mc_gregs[PT_MSR])) in COMPAT_SYSCALL_DEFINE3()
1029 (new_msr & MSR_VSX)) in COMPAT_SYSCALL_DEFINE3()
1199 unsigned long new_msr = regs->msr; in SYSCALL_DEFINE3() local
1211 new_msr |= MSR_DE; in SYSCALL_DEFINE3()
1217 new_msr &= ~MSR_DE; in SYSCALL_DEFINE3()
1223 new_msr |= MSR_SE; in SYSCALL_DEFINE3()
1225 new_msr &= ~MSR_SE; in SYSCALL_DEFINE3()
1233 new_msr |= MSR_BE; in SYSCALL_DEFINE3()
1235 new_msr in SYSCALL_DEFINE3()
[all...]
H A Dprocess.c520 unsigned long new_msr = 0; in restore_math() local
525 * new_msr tracks the facilities that are to be restored. Only reload in restore_math()
530 new_msr |= MSR_FP; in restore_math()
533 new_msr |= MSR_VEC; in restore_math()
536 if (((msr | new_msr) & (MSR_FP | MSR_VEC)) == (MSR_FP | MSR_VEC)) in restore_math()
537 new_msr |= MSR_VSX; in restore_math()
540 if (new_msr) { in restore_math()
543 msr_check_and_set(new_msr); in restore_math()
545 if (new_msr & MSR_FP) { in restore_math()
552 if (new_msr in restore_math()
[all...]
H A Dsignal_64.c661 unsigned long new_msr = 0; in SYSCALL_DEFINE3() local
665 get_user(new_msr, &new_ctx->uc_mcontext.gp_regs[PT_MSR])) in SYSCALL_DEFINE3()
678 (new_msr & MSR_VSX)) in SYSCALL_DEFINE3()
/kernel/linux/linux-5.10/arch/powerpc/kvm/
H A Dbook3s_hv_builtin.c774 unsigned long msr, pc, new_msr, new_pc; in inject_interrupt() local
778 new_msr = vcpu->arch.intr_msr; in inject_interrupt()
783 new_msr |= MSR_TS_S; in inject_interrupt()
785 new_msr |= msr & MSR_TS_MASK; in inject_interrupt()
798 new_msr |= MSR_IR | MSR_DR; in inject_interrupt()
805 vcpu->arch.shregs.msr = new_msr; in inject_interrupt()
H A Dbooke.h65 void kvmppc_set_msr(struct kvm_vcpu *vcpu, u32 new_msr);
H A Dbook3s_emulate.c305 ulong new_msr = kvmppc_get_msr(vcpu); in kvmppc_core_emulate_op_pr() local
306 new_msr &= ~(MSR_RI | MSR_EE); in kvmppc_core_emulate_op_pr()
307 new_msr |= rs_val & (MSR_RI | MSR_EE); in kvmppc_core_emulate_op_pr()
308 kvmppc_set_msr_fast(vcpu, new_msr); in kvmppc_core_emulate_op_pr()
H A Dbooke.c229 void kvmppc_set_msr(struct kvm_vcpu *vcpu, u32 new_msr) in kvmppc_set_msr() argument
234 new_msr |= MSR_GS; in kvmppc_set_msr()
237 vcpu->arch.shared->msr = new_msr; in kvmppc_set_msr()
397 ulong new_msr = vcpu->arch.shared->msr; in kvmppc_booke_irqprio_deliver() local
516 new_msr &= msr_mask; in kvmppc_booke_irqprio_deliver()
519 new_msr |= MSR_CM; in kvmppc_booke_irqprio_deliver()
521 kvmppc_set_msr(vcpu, new_msr); in kvmppc_booke_irqprio_deliver()
H A Dbook3s_pr.c108 unsigned long msr, pc, new_msr, new_pc; in kvmppc_inject_interrupt_pr() local
114 new_msr = vcpu->arch.intr_msr; in kvmppc_inject_interrupt_pr()
120 new_msr |= MSR_TS_S; in kvmppc_inject_interrupt_pr()
122 new_msr |= msr & MSR_TS_MASK; in kvmppc_inject_interrupt_pr()
128 kvmppc_set_msr(vcpu, new_msr); in kvmppc_inject_interrupt_pr()
/kernel/linux/linux-5.10/tools/power/x86/x86_energy_perf_policy/
H A Dx86_energy_perf_policy.c701 int put_msr(int cpu, int offset, unsigned long long new_msr) in put_msr() argument
712 retval = pwrite(fd, &new_msr, sizeof(new_msr), offset); in put_msr()
713 if (retval != sizeof(new_msr)) in put_msr()
714 err(-2, "pwrite(cpu%d, offset 0x%x, 0x%llx) = %d", cpu, offset, new_msr, retval); in put_msr()
719 fprintf(stderr, "put_msr(cpu%d, 0x%X, 0x%llX)\n", cpu, offset, new_msr); in put_msr()
/kernel/linux/linux-6.6/tools/power/x86/x86_energy_perf_policy/
H A Dx86_energy_perf_policy.c704 int put_msr(int cpu, int offset, unsigned long long new_msr) in put_msr() argument
715 retval = pwrite(fd, &new_msr, sizeof(new_msr), offset); in put_msr()
716 if (retval != sizeof(new_msr)) in put_msr()
717 err(-2, "pwrite(cpu%d, offset 0x%x, 0x%llx) = %d", cpu, offset, new_msr, retval); in put_msr()
722 fprintf(stderr, "put_msr(cpu%d, 0x%X, 0x%llX)\n", cpu, offset, new_msr); in put_msr()
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
H A Dkvm_book3s.h148 extern void kvmppc_set_msr(struct kvm_vcpu *vcpu, u64 new_msr);
/kernel/linux/linux-6.6/arch/powerpc/include/asm/
H A Dkvm_book3s.h148 extern void kvmppc_set_msr(struct kvm_vcpu *vcpu, u64 new_msr);

Completed in 29 milliseconds