Lines Matching +full:0 +full:xf005

24         spapr->nested.api = 0;  in spapr_nested_reset()
40 assert(lpid != 0); in spapr_get_pate_nested_hv()
46 if (patb & MAKE_64BIT_MASK(0, pats + 12)) { in spapr_get_pate_nested_hv()
77 assert(lpid != 0); in spapr_get_pate_nested_papr()
83 entry->dw0 = guest->parttbl[0]; in spapr_get_pate_nested_papr()
88 #define PRTS_MASK 0x1f
95 target_ulong ptcr = args[0]; in h_set_ptbl()
334 target_ulong hv_ptr = args[0]; in h_enter_nested()
343 if (spapr->nested.ptcr == 0) { in h_enter_nested()
351 address_space_unmap(CPU(cpu)->as, hvstate, len, 0, false); in h_enter_nested()
367 if (hv_state.lpid == 0) { in h_enter_nested()
376 assert(env->spr[SPR_LPIDR] == 0); in h_enter_nested()
377 assert(env->spr[SPR_DPDES] == 0); in h_enter_nested()
384 address_space_unmap(CPU(cpu)->as, regs, len, 0, false); in h_enter_nested()
418 l2_state.sprg0 = hv_state.sprg[0]; in h_enter_nested()
482 assert(env->spr[SPR_LPIDR] != 0); in spapr_exit_nested_hv()
498 address_space_unmap(CPU(cpu)->as, hvstate, len, 0, true); in spapr_exit_nested_hv()
520 hvstate->sprg[0] = l2_state.sprg0; in spapr_exit_nested_hv()
534 address_space_unmap(CPU(cpu)->as, regs, len, 0, true); in spapr_exit_nested_hv()
618 * set=0 means the L1 is trying to get some state
648 dst[1] = be64_to_cpu(src[0]); in copy_state_16to16()
649 dst[0] = be64_to_cpu(src[1]); in copy_state_16to16()
654 dst[1] = cpu_to_be64(src[0]); in copy_state_16to16()
655 dst[0] = cpu_to_be64(src[1]); in copy_state_16to16()
679 *pagetbl = be64_to_cpu(buf[0]); in copy_state_pagetbl()
687 *pagetbl |= ((rts & 0x7) << 5); /* RTS2 is bit 56:58 */ in copy_state_pagetbl()
688 *pagetbl |= (((rts >> 3) & 0x3) << 61); /* RTS1 is bit 1:2 */ in copy_state_pagetbl()
704 *proctbl = be64_to_cpu(buf[0]); in copy_state_proctbl()
707 *proctbl |= 0; in copy_state_proctbl()
725 runbuf->addr = be64_to_cpu(buf[0]); in copy_state_runbuf()
749 buf[0] = cpu_to_be64(VCPU_OUT_BUF_MIN_SZ); in out_buf_min_size()
758 target_ulong pcr = 0; in copy_logical_pvr()
764 buf[0] = cpu_to_be32(*pvr_logical_ptr); in copy_logical_pvr()
768 pvr_logical = be32_to_cpu(buf[0]); in copy_logical_pvr()
783 "Could not set PCR for LPVR=0x%08x\n", in copy_logical_pvr()
792 for (int i = 0; i < guest->nr_vcpus; i++) { in copy_logical_pvr()
808 buf[0] = cpu_to_be64(*tb_offset_ptr); in copy_tb_offset()
812 tb_offset = be64_to_cpu(buf[0]); in copy_tb_offset()
817 for (int i = 0; i < guest->nr_vcpus; i++) { in copy_tb_offset()
831 buf[0] = cpu_to_be64(*hdecr_expiry_tb); in copy_state_hdecr()
835 *hdecr_expiry_tb = be64_to_cpu(buf[0]); in copy_state_hdecr()
839 GUEST_STATE_ELEMENT_NOP(GSB_HV_VCPU_IGNORED_ID, 0),
840 GUEST_STATE_ELEMENT_ENV_DW(GSB_VCPU_GPR0, gpr[0]),
911 GUEST_STATE_ELEMENT_ENV_QW(GSB_VCPU_SPR_VSR0, vsr[0]),
1006 GSBE_NESTED(GSB_PART_SCOPED_PAGETBL, 0x18, parttbl[0], copy_state_pagetbl),
1007 GSBE_NESTED(GSB_PROCESS_TBL, 0x10, parttbl[1], copy_state_proctbl),
1008 GSBE_NESTED(GSB_VCPU_LPVR, 0x4, pvr_logical, copy_logical_pvr),
1009 GSBE_NESTED_MSK(GSB_TB_OFFSET, 0x8, tb_offset, copy_tb_offset,
1011 GSBE_NESTED_VCPU(GSB_VCPU_IN_BUFFER, 0x10, runbufin, copy_state_runbuf),
1012 GSBE_NESTED_VCPU(GSB_VCPU_OUT_BUFFER, 0x10, runbufout, copy_state_runbuf),
1013 GSBE_NESTED_VCPU(GSB_VCPU_OUT_BUF_MIN_SZ, 0x8, runbufout, out_buf_min_size),
1014 GSBE_NESTED_VCPU(GSB_VCPU_HDEC_EXPIRY_TB, 0x8, hdecr_expiry_tb,
1023 for (int i = 0; i < ARRAY_SIZE(guest_state_element_types); i++) { in spapr_nested_gsb_init()
1028 /* 0xf000 - 0xf005 Thread + RO */ in spapr_nested_gsb_init()
1031 /* 0x0c00 - 0xf000 Thread + RW */ in spapr_nested_gsb_init()
1032 type->flags = 0; in spapr_nested_gsb_init()
1034 /* 0x0003 - 0x0bff Guest + RW */ in spapr_nested_gsb_init()
1037 /* 0x0001 - 0x0002 Guest + RO */ in spapr_nested_gsb_init()
1069 for (i = 0; i < ARRAY_SIZE(guest_state_element_types); i++) in guest_state_element_type_find()
1080 qemu_log_mask(LOG_GUEST_ERROR, "h_guest_%s_state id:0x%04x size:0x%04x", in log_element()
1083 qemu_log_mask(LOG_GUEST_ERROR, "buf:0x%016"PRIx64" ...\n", in log_element()
1095 /* gsb->num_elements = 0 == 32 bits long */ in guest_state_request_check()
1112 if (len < 0) { in guest_state_request_check()
1171 "(allowed mask: 0x%08"PRIx64")\n", type->mask); in is_gsr_invalid()
1183 target_ulong flags = args[0]; in h_guest_get_capabilities()
1190 if (ppc_check_compat(cpu, CPU_POWERPC_LOGICAL_3_10_P11, 0, in h_guest_get_capabilities()
1196 if (ppc_check_compat(cpu, CPU_POWERPC_LOGICAL_3_10, 0, in h_guest_get_capabilities()
1202 if (ppc_check_compat(cpu, CPU_POWERPC_LOGICAL_3_00, 0, in h_guest_get_capabilities()
1216 target_ulong flags = args[0]; in h_guest_set_capabilities()
1218 env->gpr[4] = 0; in h_guest_set_capabilities()
1237 if (ppc_check_compat(cpu, CPU_POWERPC_LOGICAL_3_10_P11, 0, in h_guest_set_capabilities()
1240 } else if (ppc_check_compat(cpu, CPU_POWERPC_LOGICAL_3_10, 0, in h_guest_set_capabilities()
1243 } else if (ppc_check_compat(cpu, CPU_POWERPC_LOGICAL_3_00, 0, in h_guest_set_capabilities()
1287 target_ulong flags = args[0]; in h_guest_create()
1290 int nguests = 0; in h_guest_create()
1347 target_ulong flags = args[0]; in h_guest_delete()
1378 target_ulong flags = args[0]; in h_guest_create_vcpu()
1413 memset(curr_vcpu, 0, sizeof(SpaprMachineStateNestedGuestVcpu)); in h_guest_create_vcpu()
1506 target_ulong flags = args[0]; in h_guest_getset_state()
1521 gsr.flags = 0; in h_guest_getset_state()
1595 case 0xc00: in get_exit_ids()
1597 ids[0] = GSB_VCPU_GPR3; in get_exit_ids()
1608 case 0xe00: in get_exit_ids()
1610 ids[0] = GSB_VCPU_SPR_HDAR; in get_exit_ids()
1616 case 0xe20: in get_exit_ids()
1618 ids[0] = GSB_VCPU_SPR_HDAR; in get_exit_ids()
1623 case 0xe40: in get_exit_ids()
1625 ids[0] = GSB_VCPU_SPR_HEIR; in get_exit_ids()
1629 case 0xf80: in get_exit_ids()
1631 ids[0] = GSB_VCPU_SPR_HFSCR; in get_exit_ids()
1636 nr = 0; in get_exit_ids()
1653 int exit_id_count = 0; in exit_process_output_buffer()
1671 for (int i = 0; i < exit_id_count; i++) { in exit_process_output_buffer()
1680 gsr.flags = 0; /* get + never guest wide */ in exit_process_output_buffer()
1694 target_ulong lpid = 0, vcpuid = 0; in spapr_exit_nested_papr()
1709 assert(env->spr[SPR_LPIDR] != 0); in spapr_exit_nested_papr()
1773 assert(env->spr[SPR_LPIDR] == 0); in nested_papr_run_vcpu()
1792 target_ulong flags = args[0]; in h_guest_run_vcpu()
1811 if (guest->parttbl[0] == 0) { in h_guest_run_vcpu()