Home
last modified time | relevance | path

Searched full:vector (Results 1 – 25 of 47) sorted by relevance

12

/kvm-unit-tests/x86/
H A Dlam.c24 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 Dmsr.c90 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 Dapic.c682 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 Dcstart64.S71 /* 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 Dvector.c3 * 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 Dmigration.c13 #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 Dadtl-status.c16 #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 Dintel-iommu.c64 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 Dapic.h13 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 Ddesc.h87 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 Dprocessor.h465 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 Ddesc.c110 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 Dapic.c217 .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 Disr.h13 void handle_external_interrupt(int vector);
H A Dusermode.h21 * fault_vector: exception vector that might get thrown during the function.
H A Disr.c95 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 Dsmp.c182 * 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 Dintel-iommu.h144 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 Dprocessor.h15 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 Dprocessor.c105 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 Dprocessor.c68 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 Dprocessor.h12 enum vector { enum
27 extern void install_exception_handler(enum vector v, exception_fn fn);
/kvm-unit-tests/lib/s390x/asm/
H A Dvector.h3 * Vector facility related defines and functions
/kvm-unit-tests/arm/
H A Dcstart.S74 /* 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 Dstack.c38 /* Represent interrupt frame with vector number */ in arch_backtrace_frame()

12