/kvm-unit-tests/x86/ |
H A D | eventinj.c | 59 printf("PF running\n"); in do_pf_tss() 87 printf("OF isr running\n"); in of_isr() 94 printf("NP isr running %lx err=%lx\n", r->rip, r->error_code); in np_isr() 101 printf("DE isr running divider is %d\n", test_divider); in de_isr() 107 printf("BP isr running\n"); in bp_isr() 113 printf("Nested NMI isr running rip=%lx\n", r->rip); in nested_nmi_isr() 120 printf("NMI isr running %p\n", &isr_iret_ip); in nmi_isr() 123 printf("Sending nested NMI to self\n"); in nmi_isr() 126 printf("After nested NMI to self\n"); in nmi_isr() 133 printf("Nested NMI isr running rip=%lx\n", r->rip); in nested_nmi_iret_isr() [all …]
|
H A D | taskswitch2.c | 26 printf("NMI task is running\n"); in nmi_tss() 36 printf("DE task is running\n"); in de_tss() 47 printf("OF task is running\n"); in of_tss() 57 printf("BP task is running\n"); in bp_tss() 66 printf("PF task is running %p %lx\n", error_code, *error_code); in do_pf_tss() 88 printf("JMP to task succeeded\n"); in jmp_tss() 98 printf("IRQ task is running\n"); in irq_tss() 103 printf("IRQ task restarts after iret.\n"); in irq_tss() 110 printf("Conforming task is running\n"); in user_tss() 124 printf("Triggering nmi 2\n"); in test_kernel_mode_int() [all …]
|
H A D | amd_sev.c | 30 printf("SEV activation test is loaded.\n"); in test_sev_activation() 34 printf("CPUID Fn8000_0000[EAX]: 0x%08x\n", cpuid_out.a); in test_sev_activation() 36 printf("CPUID does not support FN%08x\n", in test_sev_activation() 43 printf("CPUID Fn8000_001F[EAX]: 0x%08x\n", cpuid_out.a); in test_sev_activation() 44 printf("CPUID Fn8000_001F[EBX]: 0x%08x\n", cpuid_out.b); in test_sev_activation() 46 printf("SEV is not supported.\n"); in test_sev_activation() 49 printf("SEV is supported\n"); in test_sev_activation() 53 printf("MSR C001_0131[EAX]: 0x%08lx\n", msr_out & 0xffffffff); in test_sev_activation() 55 printf("SEV is not enabled.\n"); in test_sev_activation() 58 printf("SEV is enabled\n"); in test_sev_activation() [all …]
|
H A D | kvmclock_test.c | 35 … printf("Raw nanoseconds value from kvmclock: %" PRIu64 " (cpu %d)\n", kvm_clock_read(), smp_id()); in wallclock_test() 36 printf("Seconds get from kvmclock: %ld (cpu %d, offset: %ld)\n", ksec, smp_id(), offset); in wallclock_test() 39 printf("offset too large!\n"); in wallclock_test() 70 printf("Worst warp %lld\n", hv_test_info->worst); in kvm_clock_test() 93 printf("Total vcpus: %d\n", cpu_count()); in cycle_test() 94 printf("Test loops: %ld\n", loops); in cycle_test() 96 printf("Total warps: %" PRId64 "\n", ti->warps); in cycle_test() 97 printf("Total stalls: %" PRId64 "\n", ti->stalls); in cycle_test() 98 printf("Worst warp: %lld\n", ti->worst); in cycle_test() 100 printf("TSC cycles: %lld\n", end - begin); in cycle_test() [all …]
|
H A D | init.c | 60 printf("Uh, resume vector visited %d times?\n", resumed); in main() 68 printf("Uh, hard reset!\n"); in main() 77 printf("testing port 92 init... "); in main() 83 printf("testing kbd controller reset... "); in main() 88 printf("testing kbd controller init... "); in main() 93 printf("testing 0xcf9h init... "); in main() 99 printf("testing init to BSP... "); in main()
|
H A D | xsave.c | 15 printf("eax %x, ebx %x, ecx %x, edx %x\n", in get_supported_xcr0() 34 printf("Legal instruction testing:\n"); in test_xsave() 37 printf("Supported XCR0 bits: %#lx\n", supported_xcr0); in test_xsave() 48 printf("\tLegal tests\n"); in test_xsave() 59 printf("\tIllegal tests\n"); in test_xsave() 91 printf("\tIllegal tests:\n"); in test_xsave() 100 printf("\tIllegal tests:\n"); in test_xsave() 113 printf("Illegal instruction testing:\n"); in test_no_xsave() 129 printf("CPU has XSAVE feature\n"); in main() 132 printf("CPU don't has XSAVE feature\n"); in main()
|
H A D | cet.c | 22 printf("The return-address in shadow-stack = 0x%lx, in normal stack = 0x%lx\n", in cet_shstk_func() 31 printf("Try to temper the return-address, this causes #CP on returning...\n"); in cet_shstk_func() 44 printf("No endbr64 instruction at jmp target, this triggers #CP...\n"); in cet_ibt_func() 60 printf("In #CP exception handler, error_code = 0x%lx\n", in handle_cp() 76 printf("SHSTK not enabled\n"); in main() 81 printf("IBT not enabled\n"); in main() 114 printf("Unit test for CET user mode...\n"); in main()
|
H A D | tscdeadline_latency.c | 36 printf("apic version: %x\n", lvr); in test_lapic_existence() 96 printf("tsc deadline timer enabled\n"); in test_tsc_deadline_timer() 98 printf("tsc deadline timer not detected, aborting\n"); in test_tsc_deadline_timer() 116 printf("breakmax=%d\n", breakmax); in main() 126 printf("hit max: %d < ", breakmax); in main() 127 printf("latency: %" PRId64 "\n", table[i]); in main()
|
H A D | tsc.c | 10 printf("rdtsc after wrtsc(%" PRId64 "): %" PRId64 "\n", t1, t2); in test_wrtsc() 37 printf("rdtsc latency %u\n", (unsigned)(t2 - t1)); in main() 47 printf("rdtscp not supported\n"); in main() 54 printf("rdpid not supported\n"); in main()
|
H A D | smptest.c | 11 printf("ipi called, cpu %d\n", n); in ipi_test() 13 printf("but wrong cpu %d\n", smp_id()); in ipi_test() 24 printf("found %d cpus\n", ncpus); in main()
|
H A D | s3.c | 40 printf("FACS is at %p\n", facs); in main() 41 printf("resume vector addr is %p\n", &facs->firmware_waking_vector); in main() 44 printf("copy resume code from %p\n", &resume_start); in main() 46 printf("PM1a event registers at %" PRIx32 "\n", fadt->pm1a_evt_blk); in main()
|
H A D | rmap_chain.c | 28 printf("created %d mappings\n", nr_pages); in main() 37 printf("instantiated mappings\n"); in main() 44 printf("PASS\n"); in main()
|
/kvm-unit-tests/lib/s390x/ |
H A D | fault.c | 22 printf("Type: ?\n"); /* modern/relevant machines have ESOP */ in print_decode_pgm_prot() 27 printf("Type: ACC\n"); in print_decode_pgm_prot() 29 printf("Type: DAT\n"); in print_decode_pgm_prot() 31 printf("Type: KEY or LAP\n"); in print_decode_pgm_prot() 46 printf("Type: %s\n", prot_str[prot_code]); in print_decode_pgm_prot() 56 printf("Memory exception information:\n"); in print_decode_teid() 57 printf("DAT: %s\n", dat ? "on" : "off"); in print_decode_teid() 59 printf("AS: "); in print_decode_teid() 62 printf("Primary\n"); in print_decode_teid() 65 printf("Access Register\n"); in print_decode_teid() [all …]
|
H A D | css_dump.c | 81 printf("scsw->flags: %s\n", scsw_line); in dump_scsw() 82 printf("scsw->addr : %08x\n", s->ccw_addr); in dump_scsw() 83 printf("scsw->devs : %02x\n", s->dev_stat); in dump_scsw() 84 printf("scsw->schs : %02x\n", s->sch_stat); in dump_scsw() 85 printf("scsw->count: %04x\n", s->count); in dump_scsw() 95 printf("irb[%02x] : %08x\n", i, *p); in dump_irb() 102 printf("pmcw->intparm : %08x\n", p->intparm); in dump_pmcw() 103 printf("pmcw->flags : %04x\n", p->flags); in dump_pmcw() 105 printf("pmcw->devnum : %04x\n", p->devnum); in dump_pmcw() 106 printf("pmcw->lpm : %02x\n", p->lpm); in dump_pmcw() [all …]
|
H A D | interrupt.c | 232 printf("\n"); in print_int_regs() 233 printf("%s\n", sie ? "Guest registers:" : "Host registers:"); in print_int_regs() 234 printf("GPRS:\n"); in print_int_regs() 235 printf("%016lx %016lx %016lx %016lx\n", in print_int_regs() 237 printf("%016lx %016lx %016lx %016lx\n", in print_int_regs() 239 printf("%016lx %016lx %016lx %016lx\n", in print_int_regs() 244 printf("%016lx %016lx %016lx %016lx\n", in print_int_regs() 247 printf("%016lx %016lx %016lx %016lx\n", in print_int_regs() 251 printf("\n"); in print_int_regs() 265 printf("\n"); in print_pgm_info() [all …]
|
/kvm-unit-tests/powerpc/ |
H A D | spapr_vpa.c | 23 printf("VPA\n"); in print_vpa() 24 printf("descriptor: 0x%08x\n", be32_to_cpu(vpa->descriptor)); in print_vpa() 25 printf("size: 0x%04x\n", be16_to_cpu(vpa->size)); in print_vpa() 26 printf("status: 0x%02x\n", vpa->status); in print_vpa() 27 printf("fru_node_id: 0x%08x\n", be32_to_cpu(vpa->fru_node_id)); in print_vpa() 28 printf("fru_proc_id: 0x%08x\n", be32_to_cpu(vpa->fru_proc_id)); in print_vpa() 29 …printf("vhpn_change_counters: 0x%02x %02x %02x %02x %02x %02x %02x %02x\n", vpa->vhpn_change_coun… in print_vpa() 30 printf("vp_dispatch_count: 0x%08x\n", be32_to_cpu(vpa->vp_dispatch_count)); in print_vpa() 31 printf("vp_dispatch_dispersion: 0x%08x\n", be32_to_cpu(vpa->vp_dispatch_dispersion)); in print_vpa() 32 printf("vp_fault_count: 0x%08lx\n", be64_to_cpu(vpa->vp_fault_count)); in print_vpa() [all …]
|
H A D | sieve.c | 27 printf("%s:", msg); in test_sieve() 29 printf("%d out of %d\n", r, size); in test_sieve() 41 printf("starting sieve\n"); in main()
|
/kvm-unit-tests/lib/ |
H A D | libcflat.h | 86 extern int printf(const char *fmt, ...) 87 __attribute__((format(printf, 1, 2))); 89 __attribute__((format(printf, 3, 4))); 91 __attribute__((format(printf, 3, 0))); 93 __attribute__((format(printf, 1, 0))); 96 __attribute__((format(printf, 1, 2))); 101 __attribute__((format(printf, 2, 3), nonnull(2))); 103 __attribute__((format(printf, 3, 4), nonnull(3))); 105 __attribute__((format(printf, 3, 4), nonnull(3))); 107 __attribute__((format(printf, 1, 2))) [all …]
|
H A D | pci.c | 52 printf("MSI: dev %#x does not support MSI.\n", dev->bdf); in pci_setup_msi() 248 printf("BAR#%d,%d [%" PRIx64 "-%" PRIx64 " ", in pci_bar_print() 251 printf("BAR#%d [%02" PRIx32 "-%02" PRIx32 " ", in pci_bar_print() 256 printf("PIO"); in pci_bar_print() 258 printf("MEM"); in pci_bar_print() 261 printf("32"); in pci_bar_print() 264 printf("1M"); in pci_bar_print() 267 printf("64"); in pci_bar_print() 275 printf("/p"); in pci_bar_print() 277 printf("]"); in pci_bar_print() [all …]
|
H A D | stack.c | 43 printf("\tSTACK:"); in print_stack() 49 printf(" @%lx", addr); in print_stack() 55 printf(" %lx", addr); in print_stack() 57 printf("\n"); in print_stack() 87 printf("RECURSIVE STACK WALK!!!\n"); in backtrace()
|
/kvm-unit-tests/lib/riscv/ |
H A D | processor.c | 21 printf("Load address: %" PRIxPTR "\n", loadaddr); in show_regs() 22 printf("CPU%3d : hartid=%lx\n", info->cpu, info->hartid); in show_regs() 23 printf("status : %.*lx\n", w, regs->status); in show_regs() 24 printf("cause : %.*lx\n", w, regs->cause); in show_regs() 25 printf("badaddr: %.*lx\n", w, regs->badaddr); in show_regs() 26 …printf("pc: %.*lx (%lx) ra: %.*lx (%lx)\n", w, regs->epc, regs->epc - loadaddr, w, regs->ra, regs-… in show_regs() 27 printf("sp: %.*lx gp: %.*lx tp : %.*lx\n", w, regs->sp, w, regs->gp, w, regs->tp); in show_regs() 28 …printf("a0: %.*lx a1: %.*lx a2 : %.*lx a3 : %.*lx\n", w, regs->a0, w, regs->a1, w, regs->a2, w, re… in show_regs() 29 …printf("a4: %.*lx a5: %.*lx a6 : %.*lx a7 : %.*lx\n", w, regs->a4, w, regs->a5, w, regs->a6, w, re… in show_regs() 30 …printf("t0: %.*lx t1: %.*lx t2 : %.*lx t3 : %.*lx\n", w, regs->t0, w, regs->t1, w, regs->t2, w, re… in show_regs() [all …]
|
/kvm-unit-tests/lib/arm/ |
H A D | processor.c | 33 printf("pc : [<%08lx>] lr : [<%08lx>] psr: %08lx\n" in show_regs() 37 printf("r10: %08lx r9 : %08lx r8 : %08lx\n", in show_regs() 39 printf("r7 : %08lx r6 : %08lx r5 : %08lx r4 : %08lx\n", in show_regs() 41 printf("r3 : %08lx r2 : %08lx r1 : %08lx r0 : %08lx\n", in show_regs() 51 printf("Flags: %s IRQs o%s FIQs o%s Mode %s\n", in show_regs() 63 printf("Control: %08x Table: %08x DAC: %08x\n", in show_regs() 97 printf("Unhandled exception %d (%s)\n", v, vector_names[v]); in do_handle_exception() 99 printf("%s called with vector=%d\n", __func__, v); in do_handle_exception() 101 printf("Exception frame registers:\n"); in do_handle_exception() 107 printf("DFAR: %08lx DFSR: %08lx\n", far, fsr); in do_handle_exception() [all …]
|
/kvm-unit-tests/lib/arm64/ |
H A D | processor.c | 70 printf("pc : [<%016lx>] lr : [<%016lx>] pstate: %08lx\n", in show_regs() 72 printf("sp : %016lx\n", regs->sp); in show_regs() 75 printf("x%-2d: %016lx ", i, regs->regs[i]); in show_regs() 77 printf("\n"); in show_regs() 79 printf("\n"); in show_regs() 113 printf("Load address: %" PRIxPTR "\n", text); in bad_exception() 114 printf("PC: %" PRIxPTR " PC offset: %" PRIxPTR "\n", in bad_exception() 119 printf("Unhandled vector %d (%s)\n", v, in bad_exception() 122 printf("Got bad vector=%d\n", v); in bad_exception() 125 printf("Unhandled exception ec=%#x (%s)\n", ec, in bad_exception() [all …]
|
/kvm-unit-tests/lib/powerpc/ |
H A D | smp.c | 31 printf("OPAL_RETURN_CPU failed\n"); in stop_self() 37 printf("failed to stop cpu %d\n", cpu_id); in stop_self() 167 printf("OPAL_QUERY_CPU_STATUS failed for cpu %d\n", cpu_id); in cpu_is_running() 177 printf("rtas token query-cpu-stopped-state failed\n"); in cpu_is_running() 183 printf("query-cpu-stopped-state failed for cpu %d\n", cpu_id); in cpu_is_running() 216 printf("Unable to start running CPU:%d\n", cpu_id); in start_thread() 229 printf("failed to start cpu %d\n", cpu_id); in start_thread() 241 printf("failed to start cpu %d\n", cpu_id); in start_thread() 300 printf("failed to start all secondaries\n"); in start_all_cpus() 327 printf("Timeout waiting to stop CPU:%d\n", cpu_id); in wait_thread()
|
/kvm-unit-tests/common/ |
H A D | sieve.c | 27 printf("%s:", msg); in test_sieve() 29 printf("%d out of %d\n", r, size); in test_sieve() 41 printf("starting sieve\n"); in main()
|