/kvm-unit-tests/x86/ |
H A D | lam.c | 24 int vector; in test_cr4_lam_set_clear() local 27 vector = write_cr4_safe(read_cr4() | X86_CR4_LAM_SUP); in test_cr4_lam_set_clear() 28 report(has_lam ? !vector : vector == GP_VECTOR, in test_cr4_lam_set_clear() 31 vector = write_cr4_safe(read_cr4() & ~X86_CR4_LAM_SUP); in test_cr4_lam_set_clear() 32 report(!vector, "Expected CR4.LAM_SUP=0 to succeed"); in test_cr4_lam_set_clear() 139 int vector; in test_invpcid() local 153 vector = invpcid_safe(0, desc_ptr); in test_invpcid() 154 report(!vector, in test_invpcid() 155 "Expected INVPCID with untagged pointer + untagged addr to succeed, got vector %u", in test_invpcid() 156 vector); in test_invpcid() [all …]
|
H A D | msr.c | 90 unsigned char vector = wrmsr_safe(msr, val); in test_wrmsr() local 92 report(!vector, in test_wrmsr() 93 "Expected success on WRMSR(%s, 0x%llx), got vector %d", in test_wrmsr() 94 name, val, vector); in test_wrmsr() 99 unsigned char vector = wrmsr_safe(msr, val); in test_wrmsr_fault() local 101 report(vector == GP_VECTOR, in test_wrmsr_fault() 102 "Expected #GP on WRMSR(%s, 0x%llx), got vector %d", in test_wrmsr_fault() 103 name, val, vector); in test_wrmsr_fault() 109 unsigned char vector = rdmsr_safe(msr, &ignored); in test_rdmsr_fault() local 111 report(vector == GP_VECTOR, in test_rdmsr_fault() [all …]
|
H A D | apic.c | 682 static int test_fixed_ipi(u32 dest_mode, u8 dest, u8 vector, in test_fixed_ipi() argument 700 apic_icr_write(dest_mode | APIC_DM_FIXED | vector, dest); in test_fixed_ipi() 718 u8 vector) in test_logical_ipi_single_target() argument 727 return test_fixed_ipi(APIC_DEST_LOGICAL, dest, vector, 1, in test_logical_ipi_single_target() 732 bool cluster, u8 dest, u8 vector) in test_logical_ipi_multi_target() argument 741 return test_fixed_ipi(APIC_DEST_LOGICAL, dest, vector, 2, in test_logical_ipi_multi_target() 748 u8 vector = 0xf1; in test_logical_ipi_xapic() local 760 handle_irq(vector, handle_ipi); in test_logical_ipi_xapic() 780 BIT(i) | k, vector); in test_logical_ipi_xapic() 795 c << 4 | BIT(i) | k, vector); in test_logical_ipi_xapic() [all …]
|
/kvm-unit-tests/powerpc/ |
H A D | cstart64.S | 71 /* relocate vector table to base address 0x0 (MSR_IP = 0) */ 298 /* [H]VECTOR must not be more than 8 instructions to fit in 0x20 vectors */ 299 .macro VECTOR vec macro 337 VECTOR(0x100) 338 VECTOR(0x200) 339 VECTOR(0x300) 340 VECTOR(0x380) 341 VECTOR(0x400) 342 VECTOR(0x480) 343 VECTOR(0x500) [all …]
|
/kvm-unit-tests/s390x/ |
H A D | vector.c | 3 * Tests vector instruction support 18 /* Fills all vector registers with data from addr */ 53 /* z14 vector extension test */ 62 report_skip("Vector extensions 1 is not available"); in test_ext1_nand() 88 report_skip("Vector BCD extensions is not available"); in test_bcd_add() 108 /* Enable vector instructions */ in init() 111 /* Preset vector registers to 0xff */ in init() 120 report_prefix_push("vector"); in main() 122 report_skip("Basic vector facility is not available"); in main()
|
H A D | migration.c | 13 #include <asm/vector.h> 89 * It is important loading the vector/floating point registers and in test_func() 99 /* load vector registers: vlm handles at most 16 registers at a time */ in test_func() 108 * store vector register contents in actual_vec_reg: vstm in test_func() 136 report(vec_result, "vector contents match"); in test_func() 138 report(stctg(0) & BIT(CTL0_VECTOR), "ctl0 vector bit set"); in test_func()
|
H A D | adtl-status.c | 16 #include <asm/vector.h> 84 report_skip("no guarded-storage or vector facility installed"); in test_store_adtl_status() 137 report_skip("guarded-storage or vector facility installed"); in test_store_adtl_status_unavail() 179 /* load vector registers */ in restart_write_vector() 182 /* turn off vector instructions */ in restart_write_vector() 191 * registers and hence destroy vector register contents in restart_write_vector() 265 * To avoid the floating point/vector registers being cleaned up, we in __store_adtl_status_vector_lc() 279 report_prefix_push("store additional status vector"); in test_store_adtl_status_vector() 282 report_skip("vector facility not installed"); in test_store_adtl_status_vector()
|
/kvm-unit-tests/lib/x86/ |
H A D | intel-iommu.c | 64 uint32_t vector:8; /* Interrupt Vector */ member 246 int vector, int dest_id, trigger_mode_t trigger) in vtd_setup_irte() argument 255 irte->vector = vector; in vtd_setup_irte() 281 uint64_t vector:8; member 299 * @vector: interrupt vector 302 bool vtd_setup_msi(struct pci_dev *dev, int vector, int dest_id) in vtd_setup_msi() argument 313 vtd_setup_irte(dev, irte + index, vector, in vtd_setup_msi() 330 void vtd_setup_ioapic_irq(struct pci_dev *dev, int vector, in vtd_setup_ioapic_irq() argument 342 vtd_setup_irte(dev, irte + index, vector, in vtd_setup_ioapic_irq() 345 entry.vector = vector; in vtd_setup_ioapic_irq()
|
H A D | apic.h | 13 uint8_t vector; member 65 void apic_setup_timer(int vector, u32 mode); 86 static inline u8 task_priority_class(u8 vector) in task_priority_class() argument 88 return vector >> 4; in task_priority_class()
|
H A D | desc.h | 87 unsigned long vector; member 258 const char* exception_mnemonic(int vector); 335 int vector = asm_safe(insn, inputs); \ 337 report(vector == want, "Expected %s on '%s', got %s", \ 340 vector ? exception_mnemonic(vector) : "SUCCESS"); \
|
H A D | processor.h | 465 int vector; \ 467 vector = __asm_safe_out2(fep, insn, "=a"(a), "=d"(d), "c"(index));\ 469 if (vector) \ 473 vector; \ 517 int vector = rdpmc_safe(index, &val); in rdpmc() local 519 assert_msg(!vector, "Unexpected %s on RDPMC(%" PRId32 ")", in rdpmc() 520 exception_mnemonic(vector), index); in rdpmc() 541 int vector = write_cr0_safe(val); in write_cr0() local 543 assert_msg(!vector, "Unexpected fault '%d' writing CR0 = %lx", in write_cr0() 544 vector, val); in write_cr0() [all …]
|
H A D | desc.c | 110 const char* exception_mnemonic(int vector) in exception_mnemonic() argument 112 switch(vector) { in exception_mnemonic() 145 cpu ? "cpu " : "", regs->vector, in unhandled_exception() 146 exception_mnemonic(regs->vector), regs->rip); in unhandled_exception() 147 if (regs->vector == 14) in unhandled_exception() 182 this_cpu_write_exception_vector(regs->vector); in check_exception_table() 212 if (regs->vector < 32 && exception_handlers[regs->vector]) { in do_handle_exception() 213 exception_handlers[regs->vector](regs); in do_handle_exception()
|
H A D | apic.c | 217 .vector = vec, in ioapic_set_redir() 260 void apic_setup_timer(int vector, u32 mode) in apic_setup_timer() argument 267 apic_write(APIC_LVTT, vector | mode); in apic_setup_timer() 291 /* Mask the timer interrupt in the local vector table. */ in apic_cleanup_timer()
|
H A D | isr.h | 13 void handle_external_interrupt(int vector);
|
H A D | usermode.h | 21 * fault_vector: exception vector that might get thrown during the function.
|
H A D | isr.c | 95 void handle_external_interrupt(int vector) in handle_external_interrupt() argument 97 idt_entry_t *idt = &boot_idt[vector]; in handle_external_interrupt()
|
H A D | smp.c | 182 * On i386, place the gdt descriptor to be loaded from SIPI vector right after in setup_rm_gdt() 183 * the vector code. in setup_rm_gdt() 228 * to be reachable from the SIPI vector. in setup_rm_gdt()
|
H A D | intel-iommu.h | 144 bool vtd_setup_msi(struct pci_dev *dev, int vector, int dest_id); 145 void vtd_setup_ioapic_irq(struct pci_dev *dev, int vector,
|
/kvm-unit-tests/lib/arm64/asm/ |
H A D | processor.h | 15 enum vector { enum 37 typedef void (*vector_fn)(enum vector v, struct pt_regs *regs, 41 extern void install_vector_handler(enum vector v, vector_fn fn); 42 extern void install_exception_handler(enum vector v, unsigned int ec, 44 extern void install_irq_handler(enum vector v, irq_handler_fn fn); 45 extern void default_vector_sync_handler(enum vector v, struct pt_regs *regs, 47 extern void default_vector_irq_handler(enum vector v, struct pt_regs *regs,
|
/kvm-unit-tests/lib/arm64/ |
H A D | processor.c | 105 static void bad_exception(enum vector v, struct pt_regs *regs, 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() 131 printf("Vector: %d (%s)\n", v, vector_names[v]); in bad_exception() 140 void install_exception_handler(enum vector v, unsigned int ec, exception_fn fn) in install_exception_handler() 148 void install_irq_handler(enum vector v, irq_handler_fn fn) in install_irq_handler() 156 void default_vector_sync_handler(enum vector v, struct pt_regs *regs, in default_vector_sync_handler() 176 void default_vector_irq_handler(enum vector v, struct pt_regs *regs, in default_vector_irq_handler() 207 void do_handle_exception(enum vector v, struct pt_regs *regs, unsigned int esr); 209 void do_handle_exception(enum vector v, struct pt_regs *regs, unsigned int esr) in do_handle_exception() [all …]
|
/kvm-unit-tests/lib/arm/ |
H A D | processor.c | 68 void install_exception_handler(enum vector v, exception_fn fn) in install_exception_handler() 77 void do_handle_exception(enum vector v, struct pt_regs *regs); 79 void do_handle_exception(enum vector v, struct pt_regs *regs) in do_handle_exception() 99 printf("%s called with vector=%d\n", __func__, v); in do_handle_exception()
|
/kvm-unit-tests/lib/arm/asm/ |
H A D | processor.h | 12 enum vector { enum 27 extern void install_exception_handler(enum vector v, exception_fn fn);
|
/kvm-unit-tests/lib/s390x/asm/ |
H A D | vector.h | 3 * Vector facility related defines and functions
|
/kvm-unit-tests/arm/ |
H A D | cstart.S | 74 /* set up vector table, mode stacks, and enable the VFP */ 181 * Set the stack, and set up vector table 300 * Vector stubs 363 * r0 := 2 is the svc vector number. 408 /* Call the handler. r0 is the vector number, r1 := pt_regs */
|
/kvm-unit-tests/lib/ppc64/ |
H A D | stack.c | 38 /* Represent interrupt frame with vector number */ in arch_backtrace_frame()
|