Lines Matching refs:spapr_cpu
332 SpaprCpuState *spapr_cpu = spapr_cpu_state(cpu); in h_enter_nested() local
371 spapr_cpu->nested_host_state = g_try_new(struct nested_ppc_state, 1); in h_enter_nested()
372 if (!spapr_cpu->nested_host_state) { in h_enter_nested()
378 nested_save_state(spapr_cpu->nested_host_state, cpu); in h_enter_nested()
385 g_free(spapr_cpu->nested_host_state); in h_enter_nested()
448 spapr_cpu->in_nested = true; in h_enter_nested()
463 SpaprCpuState *spapr_cpu = spapr_cpu_state(cpu); in spapr_exit_nested_hv() local
465 target_ulong hv_ptr = spapr_cpu->nested_host_state->gpr[4]; in spapr_exit_nested_hv()
466 target_ulong regs_ptr = spapr_cpu->nested_host_state->gpr[5]; in spapr_exit_nested_hv()
483 nested_load_state(cpu, spapr_cpu->nested_host_state); in spapr_exit_nested_hv()
489 spapr_cpu->in_nested = false; in spapr_exit_nested_hv()
491 g_free(spapr_cpu->nested_host_state); in spapr_exit_nested_hv()
492 spapr_cpu->nested_host_state = NULL; in spapr_exit_nested_hv()
1608 SpaprCpuState *spapr_cpu = spapr_cpu_state(cpu); in exit_nested_store_l2() local
1616 cpu_ppc_store_decr(env, spapr_cpu->nested_host_state->dec_expiry_tb - now); in exit_nested_store_l2()
1745 SpaprCpuState *spapr_cpu = spapr_cpu_state(cpu); in spapr_exit_nested_papr() local
1751 lpid = spapr_cpu->nested_host_state->gpr[5]; in spapr_exit_nested_papr()
1752 vcpuid = spapr_cpu->nested_host_state->gpr[6]; in spapr_exit_nested_papr()
1763 nested_load_state(cpu, spapr_cpu->nested_host_state); in spapr_exit_nested_papr()
1770 spapr_cpu->in_nested = false; in spapr_exit_nested_papr()
1771 g_free(spapr_cpu->nested_host_state); in spapr_exit_nested_papr()
1772 spapr_cpu->nested_host_state = NULL; in spapr_exit_nested_papr()
1778 SpaprCpuState *spapr_cpu = spapr_cpu_state(cpu); in spapr_exit_nested() local
1780 assert(spapr_cpu->in_nested); in spapr_exit_nested()
1823 SpaprCpuState *spapr_cpu = spapr_cpu_state(cpu); in nested_papr_run_vcpu() local
1828 spapr_cpu->nested_host_state = g_try_new(struct nested_ppc_state, 1); in nested_papr_run_vcpu()
1829 assert(spapr_cpu->nested_host_state); in nested_papr_run_vcpu()
1830 nested_save_state(spapr_cpu->nested_host_state, cpu); in nested_papr_run_vcpu()
1831 spapr_cpu->nested_host_state->dec_expiry_tb = now - cpu_ppc_load_decr(env); in nested_papr_run_vcpu()
1835 spapr_cpu->in_nested = true; in nested_papr_run_vcpu()