Home
last modified time | relevance | path

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

/kvm-unit-tests/lib/x86/
H A Dsmp.h47 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 Ddesc.h126 u16 gs; member
154 "movl $0, %%gs:4\n\t" \
H A Dsetup.c350 * 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 Dmsr.h13 #define MSR_GS_BASE 0xc0000101 /* 64bit GS base */
14 #define MSR_KERNEL_GS_BASE 0xc0000102 /* SwapGS GS shadow */
H A Dprocessor.h395 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 Ddesc.c420 tss_intr.gs = read_gs(); in setup_tss32()
/kvm-unit-tests/s390x/
H A Dgs.c17 #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 Dunittests.cfg67 [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 Dmigration.c16 #include <gs.h>
H A Dadtl-status.c19 #include <gs.h>
H A DMakefile15 tests += $(TEST_DIR)/gs.elf
/kvm-unit-tests/x86/
H A Dcstart.S45 mov %ax, %gs
53 mov %ax, %gs
H A Dumip.c136 "mov %%dx, %%gs\n\t" in do_ring3()
176 "mov %%cx, %%gs\n\t" in do_ring3()
H A Dtrampolines.S79 mov %bx, %gs
H A Demulator64.c434 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 Drealmode.c201 "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 Dtaskswitch2.c276 tss_intr.ds = tss_intr.gs = tss_intr.es = tss_intr.fs = tss_intr.ss; in test_conforming_switch()
H A Dla57.c142 * breaks the wrmsr_safe macro (it uses GS for per-CPU data). in test_register_write()
H A Dsvm.h173 struct vmcb_seg gs; member
H A Dsvm_tests.c2467 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 Dvmx_tests.c7643 * 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.yml277 adtl-status-no-vec-no-gs-tcg
512 gs
/kvm-unit-tests/lib/s390x/
H A Dsclp-console.c33 /*18 CAN EM SUB ESC FS GS RS US */
/kvm-unit-tests/scripts/
H A Dkernel-doc2369 $dohighlight .= "\$contents =~ s:$pattern:$result:gs;\n";
H A Dcheckpatch.pl4392 my @newlines = ($c =~ /\n/gs);
4398 $s =~ s/\n./\n/gs;
5744 my @newlines = ($c =~ /\n/gs);