/kvm-unit-tests/lib/s390x/ |
H A D | sie.c | 32 if (vm->sblk->icptcode != ICPT_VALIDITY) in sie_get_validity() 35 return vm->sblk->ipb >> 16; in sie_get_validity() 47 if (vm->sblk->icptcode != ICPT_VALIDITY) in sie_handle_validity() 63 memcpy(vm->sblk->pv_grregs, vm->save_area.guest.grs, in sie() 67 vm->sblk->icptcode = 0; in sie() 88 while (vm->sblk->icptcode == 0 && !read_pgm_int_code()) { in sie() 89 sie64a(vm->sblk, &vm->save_area); in sie() 92 vm->save_area.guest.grs[14] = vm->sblk->gg14; in sie() 93 vm->save_area.guest.grs[15] = vm->sblk->gg15; in sie() 102 memcpy(vm->save_area.guest.grs, vm->sblk->pv_grregs, in sie() [all …]
|
H A D | uv.c | 142 .state_origin = (uint64_t)vm->sblk, in uv_create_guest() 148 uvcb_cgc.guest_stor_origin = vm->sblk->mso; in uv_create_guest() 149 uvcb_cgc.guest_stor_len = vm->sblk->msl - vm->sblk->mso + SZ_1M; in uv_create_guest() 188 vm->sblk->sdf = 2; in uv_create_guest() 189 vm->sblk->sidad = (uint64_t)alloc_page(); in uv_create_guest() 190 vm->sblk->pv_handle_cpu = uvcb_csc.cpu_handle; in uv_create_guest() 191 vm->sblk->pv_handle_config = uvcb_cgc.guest_handle; in uv_create_guest() 199 cc = uv_cmd_nodata(vm->sblk->pv_handle_cpu, in uv_destroy_guest() 202 free_page((void *)vm->sblk->sidad); in uv_destroy_guest() 205 cc = uv_cmd_nodata(vm->sblk->pv_handle_config, in uv_destroy_guest() [all …]
|
H A D | sie-icpt.c | 10 struct diag_itext sblk_ip_as_diag(struct kvm_s390_sie_block *sblk) in sblk_ip_as_diag() argument 19 } instr = { .ipa = sblk->ipa, .ipb = sblk->ipb }; in sblk_ip_as_diag() 26 struct diag_itext instr = sblk_ip_as_diag(vm->sblk); in sie_is_diag_icpt() 53 if (vm->sblk->icptcode != icptcode) in sie_is_diag_icpt()
|
H A D | sie.h | 35 struct kvm_s390_sie_block *sblk; member 49 extern void sie64a(struct kvm_s390_sie_block *sblk, struct vm_save_area *save_area); 58 return vm->sblk->sdf == 2; in sie_is_pv()
|
H A D | snippet.h | 71 uint64_t mso = vm->sblk->mso; in snippet_init() 77 vm->sblk->gpsw = snippet_psw; in snippet_init() 83 vm->sblk->ictl = ICTL_OPEREXC | ICTL_PINT; in snippet_init() 103 uint64_t mso = vm->sblk->mso; in snippet_pv_init()
|
H A D | sie-icpt.h | 24 struct diag_itext sblk_ip_as_diag(struct kvm_s390_sie_block *sblk);
|
H A D | interrupt.c | 230 struct kvm_s390_sie_block *sblk; in print_int_regs() local 243 sblk = (struct kvm_s390_sie_block *)stack->grs0[12]; in print_int_regs() 245 stack->grs0[10], stack->grs0[11], sblk->gg14, sblk->gg15); in print_int_regs()
|
H A D | uv.h | 44 return vm->sblk->icptcode == ICPT_VALIDITY && (vir & 0xff00) == 0x2000; in uv_validity_check()
|
/kvm-unit-tests/s390x/ |
H A D | sie.c | 29 vm.sblk->gpsw.addr = PAGE_SIZE * 2; in test_diag() 30 vm.sblk->gpsw.mask = PSW_MASK_64; in test_diag() 35 report(vm.sblk->icptcode == ICPT_INST && in test_diag() 36 vm.sblk->ipa == instr >> 16 && vm.sblk->ipb == instr << 16, in test_diag() 76 vm.sblk->gpsw.addr = PAGE_SIZE * 2; in test_epoch_ext() 77 vm.sblk->gpsw.mask = PSW_MASK_64; in test_epoch_ext() 79 vm.sblk->ecd |= ECD_MEF; in test_epoch_ext() 80 vm.sblk->epdx = 0x47; /* Setting the epoch extension here ... */ in test_epoch_ext()
|
H A D | pv-diags.c | 45 vm.sblk->iictl = IICTL_CODE_OPERAND; in test_diag_500() 56 vm.sblk->iictl = IICTL_CODE_SPECIFICATION; in test_diag_500() 86 report(vm.sblk->icptcode == ICPT_PV_INSTR && vm.sblk->ipa == 0x8302 && in test_diag_288() 87 vm.sblk->ipb == 0x50000000 && vm.save_area.guest.grs[5] == 0x288, in test_diag_288() 98 vm.sblk->iictl = IICTL_CODE_SPECIFICATION; in test_diag_288() 100 report(vm.sblk->icptcode == ICPT_PV_NOTIFY && vm.sblk->ipa == 0x8302 && in test_diag_288() 101 vm.sblk->ipb == 0x50000000 && vm.save_area.guest.grs[5] == 0x9c in test_diag_288() 129 report(vm.sblk->icptcode == ICPT_PV_NOTIFY && vm.sblk->ipa == 0x8302 && in test_diag_yield() 130 vm.sblk->ipb == 0x50000000 && vm.save_area.guest.grs[5] == 0x44, in test_diag_yield() 137 report(vm.sblk->icptcode == ICPT_PV_NOTIFY && vm.sblk->ipa == 0x8302 && in test_diag_yield() [all …]
|
H A D | spec_ex-sie.c | 36 vm.sblk->gpsw = snippet_psw; in reset_guest() 37 vm.sblk->icptcode = 0; in reset_guest() 51 report(vm.sblk->icptcode == ICPT_PROGI in test_spec_ex_sie() 52 && vm.sblk->iprcc == PGM_INT_CODE_SPECIFICATION in test_spec_ex_sie() 53 && vm.sblk->gpsw.addr != 0xdeadbeee, in test_spec_ex_sie() 58 vm.sblk->ecb |= ECB_SPECI; in test_spec_ex_sie() 64 report(vm.sblk->icptcode == ICPT_PROGI in test_spec_ex_sie() 65 && vm.sblk->iprcc == PGM_INT_CODE_SPECIFICATION, in test_spec_ex_sie() 69 report(vm.sblk->gpsw.addr == 0xdeadbeee, "%s", msg); in test_spec_ex_sie() 70 else if (vm.sblk->gpsw.addr == 0xdeadbeee) in test_spec_ex_sie()
|
H A D | pv-icptcode.c | 52 tmp = vm.sblk->cputm; in test_validity_timing() 56 vm.sblk->cputm += S390_CLOCK_SHIFT_US * 1000; in test_validity_timing() 60 vm.sblk->cputm = tmp; in test_validity_timing() 67 vm.sblk->cputm -= (time_entry - time_exit) + S390_CLOCK_SHIFT_US * 1000; in test_validity_timing() 71 vm.sblk->cputm = tmp; in test_validity_timing() 109 while (vm.sblk->icptcode != ICPT_VALIDITY) { in test_validity_already_running() 153 vm.sblk->pv_handle_cpu = vm2.sblk->pv_handle_cpu; in test_validity_handle_not_in_config() 157 vm.sblk->pv_handle_cpu = vm.uv.vcpu_handle; in test_validity_handle_not_in_config() 159 vm.sblk->pv_handle_config = vm2.uv.vm_handle; in test_validity_handle_not_in_config() 163 vm.sblk->pv_handle_config = vm.uv.vm_handle; in test_validity_handle_not_in_config() [all …]
|
H A D | mvpg-sie.c | 34 uint64_t **pei_dst = (uint64_t **)((uintptr_t) vm.sblk + 0xc0); in test_mvpg_pei() 35 uint64_t **pei_src = (uint64_t **)((uintptr_t) vm.sblk + 0xc8); in test_mvpg_pei() 43 report(vm.sblk->icptcode == ICPT_PARTEXEC, "Partial execution"); in test_mvpg_pei() 55 assert(vm.sblk->icptcode == ICPT_INST && in test_mvpg_pei() 56 vm.sblk->ipa == 0x8300 && vm.sblk->ipb == 0x440000); in test_mvpg_pei() 61 memset((uint64_t *)((uintptr_t) vm.sblk + 0xc0), 0, 16); in test_mvpg_pei() 65 report(vm.sblk->icptcode == ICPT_PARTEXEC, "Partial execution"); in test_mvpg_pei() 98 vm.sblk->eca = ECA_MVPGI; in setup_guest() 100 src = (uint8_t *) vm.sblk->mso + PAGE_SIZE * 6; in setup_guest() 101 dst = (uint8_t *) vm.sblk->mso + PAGE_SIZE * 5; in setup_guest()
|
H A D | pv-ipl.c | 67 cc = uv_set_cpu_state(vm.sblk->pv_handle_cpu, PV_CPU_STATE_STP); in test_diag_308() 75 cc = uv_cmd_nodata(vm.sblk->pv_handle_config, in test_diag_308() 84 cc = uv_cmd_nodata(vm.sblk->pv_handle_config, in test_diag_308() 99 cc = uv_cmd_nodata(vm.sblk->pv_handle_cpu, in test_diag_308() 103 cc = uv_cmd_nodata(vm.sblk->pv_handle_cpu, in test_diag_308() 113 cc = uv_set_cpu_state(vm.sblk->pv_handle_cpu, PV_CPU_STATE_OPR_LOAD); in test_diag_308()
|
H A D | sie-dat.c | 85 vm.sblk->cpuflags |= CPUSTAT_SM; in setup_guest()
|
H A D | stfle-sie.c | 62 vm.sblk->fac = (uint32_t)(uint64_t)fac; in test_stfle_format_0()
|