/kvm-unit-tests/lib/x86/ |
H A D | smp.h | 47 asm("movb %%gs:%c1, %0" : "=q" (val) : "i" (offsetof_percpu(name))); \ 50 asm("movw %%gs:%c1, %0" : "=r" (val) : "i" (offsetof_percpu(name))); \ 53 asm("movl %%gs:%c1, %0" : "=r" (val) : "i" (offsetof_percpu(name))); \ 56 asm("movq %%gs:%c1, %0" : "=r" (val) : "i" (offsetof_percpu(name))); \ 67 asm("movb %0, %%gs:%c1" :: "q" (val), "i" (offsetof_percpu(name))); \ 70 asm("movw %0, %%gs:%c1" :: "r" (val), "i" (offsetof_percpu(name))); \ 73 asm("movl %0, %%gs:%c1" :: "r" (val), "i" (offsetof_percpu(name))); \ 76 asm("movq %0, %%gs:%c1" :: "r" (val), "i" (offsetof_percpu(name))); \
|
H A D | desc.h | 126 u16 gs; member 154 "movl $0, %%gs:4\n\t" \
|
H A D | setup.c | 350 * Load GS.base with the per-vCPU data. This must be done after in setup_efi() 357 * done after loading GS.base with the per-vCPU data. in setup_efi()
|
H A D | msr.h | 13 #define MSR_GS_BASE 0xc0000101 /* 64bit GS base */ 14 #define MSR_KERNEL_GS_BASE 0xc0000102 /* SwapGS GS shadow */
|
H A D | processor.h | 395 asm volatile ("mov %%gs, %0" : "=mr"(val)); in read_gs() 428 asm volatile ("mov %0, %%gs" : : "rm"(val) : "memory"); in write_gs() 445 * infrastructure uses per-CPU data and thus consumes GS.base. Various tests
|
H A D | desc.c | 420 tss_intr.gs = read_gs(); in setup_tss32()
|
/kvm-unit-tests/s390x/ |
H A D | gs.c | 17 #include <gs.h> 80 /* Test gs instructions without enablement resulting in an exception */ 83 report_prefix_push("disabled gs"); in test_special() 84 report_prefix_push("load gs"); in test_special() 90 report_prefix_push("store gs"); in test_special() 101 /* Enable control bit for gs */ in init() 104 /* Setup gs registers to guard the gs_area */ in init() 120 report_prefix_push("gs"); in main()
|
H A D | unittests.cfg | 67 [gs] 68 file = gs.elf 164 qemu_params = -cpu host,gs=on,vx=on 166 [adtl-status-no-vec-no-gs-kvm] 170 qemu_params = -cpu host,gs=off,vx=off 179 [adtl-status-no-vec-no-gs-tcg] 183 qemu_params = -cpu qemu,gs=off,vx=off
|
H A D | migration.c | 16 #include <gs.h>
|
H A D | adtl-status.c | 19 #include <gs.h>
|
H A D | Makefile | 15 tests += $(TEST_DIR)/gs.elf
|
/kvm-unit-tests/x86/ |
H A D | cstart.S | 45 mov %ax, %gs 53 mov %ax, %gs
|
H A D | umip.c | 136 "mov %%dx, %%gs\n\t" in do_ring3() 176 "mov %%cx, %%gs\n\t" in do_ring3()
|
H A D | trampolines.S | 79 mov %bx, %gs
|
H A D | emulator64.c | 434 asm volatile("mov %%gs:(%1), %0" : "=r"(ret) : "r"(dummy_ptr)); in usr_gs_mov() 444 /* Update GS base to 4MiB */ in test_iret() 449 * outer privilege level, for segment registers (ES, FS, GS, and DS) in test_iret() 452 * In our test case, GS becomes null. in test_iret()
|
H A D | realmode.c | 201 "mov %[bigseg], %%gs \n\t" in exec_in_big_real_mode() 240 "mov %[tmp], %%gs \n\t" in exec_in_big_real_mode() 1388 MK_INSN(lgs, "pushl %gs\n\t" in test_lds_lss() 1390 "mov %gs, %ebx\n\t" in test_lds_lss() 1391 "popl %gs\n\t"); in test_lds_lss() 1850 "mov %ax, %gs \n\t" 1864 "mov %ax, %gs \n\t"
|
H A D | taskswitch2.c | 276 tss_intr.ds = tss_intr.gs = tss_intr.es = tss_intr.fs = tss_intr.ss; in test_conforming_switch()
|
H A D | la57.c | 142 * breaks the wrmsr_safe macro (it uses GS for per-CPU data). in test_register_write()
|
H A D | svm.h | 173 struct vmcb_seg gs; member
|
H A D | svm_tests.c | 2467 TEST_CANONICAL_VMLOAD(vmcb->save.gs.base, "GS"); in test_canonicalization() 2470 TEST_CANONICAL_VMLOAD(vmcb->save.kernel_gs_base, "KERNEL GS"); in test_canonicalization()
|
H A D | vmx_tests.c | 7643 * 1. In the selector field for each of CS, SS, DS, ES, FS, GS and TR, the 7649 * fields for FS, GS and TR must contain canonical addresses. 7689 * Base address for FS, GS and TR must be canonical in test_host_segment_regs() 8024 * - TR, FS, GS : The address must be canonical. 8040 * The address of TR, FS, GS and LDTR must be canonical. in test_guest_segment_base_addr_fields() 10878 /* TODO: _safe variants assume per-cpu gs base*/ in set_host_value()
|
/kvm-unit-tests/ |
H A D | .gitlab-ci.yml | 277 adtl-status-no-vec-no-gs-tcg 512 gs
|
/kvm-unit-tests/lib/s390x/ |
H A D | sclp-console.c | 33 /*18 CAN EM SUB ESC FS GS RS US */
|
/kvm-unit-tests/scripts/ |
H A D | kernel-doc | 2369 $dohighlight .= "\$contents =~ s:$pattern:$result:gs;\n";
|
H A D | checkpatch.pl | 4392 my @newlines = ($c =~ /\n/gs); 4398 $s =~ s/\n./\n/gs; 5744 my @newlines = ($c =~ /\n/gs);
|