/kvm-unit-tests/lib/s390x/ |
H A D | asm-offsets.c | 15 OFFSET(GEN_LC_EXT_INT_PARAM, lowcore, ext_int_param); in main() 16 OFFSET(GEN_LC_CPU_ADDR, lowcore, cpu_addr); in main() 17 OFFSET(GEN_LC_EXT_INT_CODE, lowcore, ext_int_code); in main() 18 OFFSET(GEN_LC_SVC_INT_ID, lowcore, svc_int_id); in main() 19 OFFSET(GEN_LC_SVC_INT_CODE, lowcore, svc_int_code); in main() 20 OFFSET(GEN_LC_PGM_INT_ID, lowcore, pgm_int_id); in main() 21 OFFSET(GEN_LC_PGM_INT_CODE, lowcore, pgm_int_code); in main() 22 OFFSET(GEN_LC_DXC_VXC, lowcore, dxc_vxc); in main() 23 OFFSET(GEN_LC_MON_CLASS_NB, lowcore, mon_class_nb); in main() 24 OFFSET(GEN_LC_PER_CODE, lowcore, per_code); in main() [all …]
|
H A D | interrupt.c | 27 lowcore.pgm_int_code = 0; in expect_pgm_int() 28 lowcore.trans_exc_id = 0; in expect_pgm_int() 38 lowcore.ext_int_code = 0; in expect_ext_int() 56 code = lowcore.pgm_int_code; in clear_pgm_int() 57 lowcore.pgm_int_code = 0; in clear_pgm_int() 58 lowcore.trans_exc_id = 0; in clear_pgm_int() 73 report(code == lowcore.pgm_int_code, in check_pgm_int_code() 75 lowcore.pgm_int_code); in check_pgm_int_code() 145 if (lowcore.pgm_old_psw.addr >= (uint64_t)&sie_entry && in fixup_pgm_int() 146 lowcore.pgm_old_psw.addr <= (uint64_t)&sie_exit) { in fixup_pgm_int() [all …]
|
H A D | fault.c | 55 bool dat = lowcore.pgm_old_psw.mask & PSW_MASK_DAT; in print_decode_teid() 76 if (lowcore.pgm_int_code == PGM_INT_CODE_PROTECTION) in print_decode_teid() 83 if ((lowcore.pgm_int_code == PGM_INT_CODE_SECURE_STOR_ACCESS || in print_decode_teid() 84 lowcore.pgm_int_code == PGM_INT_CODE_SECURE_STOR_VIOLATION) && in print_decode_teid()
|
H A D | smp.c | 42 struct lowcore *smp_get_lowcore(uint16_t idx) in smp_get_lowcore() 45 return &lowcore; in smp_get_lowcore() 48 return cpus[idx].lowcore; in smp_get_lowcore() 168 cpus[idx].lowcore->restart_new_psw.mask = psw->mask; in smp_cpu_restart_nolock() 169 cpus[idx].lowcore->restart_new_psw.addr = psw->addr; in smp_cpu_restart_nolock() 241 free_pages(cpus[idx].lowcore); in smp_cpu_destroy() 243 cpus[idx].lowcore = (void *)-1UL; in smp_cpu_destroy() 252 struct lowcore *lc; in smp_cpu_setup_nolock() 260 cpus[idx].lowcore = lc; in smp_cpu_setup_nolock() 264 memcpy(lc, cpus[0].lowcore, 512); in smp_cpu_setup_nolock() [all …]
|
H A D | css_lib.c | 360 sid = lowcore.subsys_id_word; in css_irq_io() 362 if (lowcore.io_int_param != sid) { in css_irq_io() 364 lowcore.io_int_param, sid); in css_irq_io() 390 lowcore.io_old_psw.mask &= ~PSW_MASK_WAIT; in css_irq_io() 435 if (lowcore.io_int_param != schid) { in wait_and_check_io_completion() 437 schid, lowcore.io_int_param); in wait_and_check_io_completion()
|
H A D | smp.h | 48 struct lowcore *smp_get_lowcore(uint16_t idx);
|
/kvm-unit-tests/s390x/ |
H A D | smp.c | 113 struct lowcore *lc = cpu->lowcore; in test_restart() 174 lowcore.prefix_sa = 0; in test_stop_store_status() 175 lowcore.grs_sa[15] = 0; in test_stop_store_status() 179 report(lowcore.prefix_sa == (uint32_t)(uintptr_t)cpu->lowcore, "prefix"); in test_stop_store_status() 180 report(lowcore.grs_sa[15], "stack"); in test_stop_store_status() 184 lowcore.prefix_sa = 0; in test_stop_store_status() 185 lowcore.grs_sa[15] = 0; in test_stop_store_status() 189 report(lowcore.prefix_sa == (uint32_t)(uintptr_t)cpu->lowcore, "prefix"); in test_stop_store_status() 190 report(lowcore.grs_sa[15], "stack"); in test_stop_store_status() 251 struct lowcore *new_lc = alloc_pages_flags(1, AREA_DMA31); in test_set_prefix() [all …]
|
H A D | skrf.c | 124 lowcore.ext_new_psw.mask = PSW_MASK_64; in ecall_cleanup() 125 lowcore.sw_int_crs[0] = BIT_ULL(CTL0_AFP); in ecall_cleanup() 132 lowcore.pgm_old_psw.mask = PSW_MASK_64; in ecall_cleanup() 144 lowcore.ext_new_psw.mask = PSW_MASK_KEY | PSW_MASK_64; in ecall_setup()
|
H A D | flat.lds.S | 5 .lowcore : { 12 lowcore = .; symbol
|
H A D | spec_ex.c | 37 lowcore.pgm_old_psw.mask, lowcore.pgm_old_psw.addr); in fixup_invalid_psw() 40 invalid_psw = lowcore.pgm_old_psw; in fixup_invalid_psw() 41 lowcore.pgm_old_psw = fixup_psw; in fixup_invalid_psw() 107 expected_psw.addr == invalid_psw.addr - lowcore.pgm_int_id) in check_invalid_psw() 325 pgm = lowcore.pgm_int_code; in retry_transaction()
|
H A D | emulator.c | 264 lowcore.dxc_vxc = 0x12345678; in test_dxc() 273 report(lowcore.dxc_vxc == 0xff, "dxc in LC"); in test_dxc() 278 lowcore.dxc_vxc = 0x12345678; in test_dxc() 290 report(lowcore.dxc_vxc == 0xff, "dxc in LC"); in test_dxc()
|
H A D | mvpg.c | 92 return *(uint8_t *)(lowcore.pgm_old_psw.addr - 1) == lowcore.op_acc_id; in check_oai() 221 lowcore.op_acc_id = 0; in test_mmu_prot() 232 lowcore.op_acc_id = 0; in test_mmu_prot()
|
H A D | panic-loop-pgm.c | 27 lowcore.pgm_new_psw.mask = extract_psw_mask() | BIT(63 - 12); in main()
|
H A D | panic-loop-extint.c | 42 lowcore.ext_new_psw.mask |= PSW_MASK_EXT; in main()
|
H A D | diag288.c | 91 lowcore.restart_new_psw.mask = extract_psw_mask() & ~PSW_MASK_EXT; in test_bite()
|
H A D | skey.c | 181 teid.val = lowcore.trans_exc_id; in check_key_prot_exc() 515 lowcore.pgm_new_psw.mask &= ~PSW_MASK_DAT; in test_set_prefix() 553 lowcore.pgm_new_psw.mask |= PSW_MASK_DAT; in test_set_prefix() 666 lowcore.pgm_new_psw.mask &= ~PSW_MASK_DAT; in test_msch() 722 lowcore.pgm_new_psw.mask |= PSW_MASK_DAT; in test_msch()
|
H A D | edat.c | 35 if (lowcore.pgm_int_code != PGM_INT_CODE_PROTECTION) in check_pgm_prot() 38 teid.val = lowcore.trans_exc_id; in check_pgm_prot()
|
H A D | sie-dat.c | 60 …report((lowcore.trans_exc_id & PAGE_MASK) == (GUEST_TOTAL_PAGE_COUNT * PAGE_SIZE), "TEID address m… in test_sie_dat()
|
/kvm-unit-tests/s390x/snippets/c/ |
H A D | spec_ex.c | 16 lowcore.pgm_new_psw.mask = BIT(63 - 12); in main() 17 lowcore.pgm_new_psw.addr = 0xdeadbeee; in main()
|
H A D | flat.lds.S | 11 .lowcore : { 18 lowcore = .; symbol
|
/kvm-unit-tests/lib/s390x/asm/ |
H A D | facility.h | 49 memcpy(stfl_doublewords, &lowcore.stfl, sizeof(lowcore.stfl)); in setup_facilities()
|
H A D | arch_def.h | 77 struct lowcore *lowcore; member 125 struct lowcore { struct 199 static_assert(sizeof(struct lowcore) == 0x1900); argument 201 extern struct lowcore lowcore; 203 #define THIS_CPU (lowcore.this_cpu)
|
H A D | mem.h | 14 #define OPAQUE_PTR(x) ((void *)(((uint64_t)&lowcore) + (x)))
|
H A D | interrupt.h | 106 return lowcore.pgm_int_code; in read_pgm_int_code()
|
/kvm-unit-tests/s390x/snippets/asm/ |
H A D | flat.lds.S | 3 .lowcore : {
|