Home
last modified time | relevance | path

Searched refs:sregs (Results 1 – 20 of 20) sorted by relevance

/external/syzkaller/executor/
Dcommon_kvm_amd64.h176 static void setup_32bit_idt(struct kvm_sregs* sregs, char* host_mem, uintptr_t guest_mem) in setup_32bit_idt() argument
178 sregs->idt.base = guest_mem + ADDR_VAR_IDT; in setup_32bit_idt()
179 sregs->idt.limit = 0x1ff; in setup_32bit_idt()
180 uint64* idt = (uint64*)(host_mem + sregs->idt.base); in setup_32bit_idt()
229 static void setup_64bit_idt(struct kvm_sregs* sregs, char* host_mem, uintptr_t guest_mem) in setup_64bit_idt() argument
231 sregs->idt.base = guest_mem + ADDR_VAR_IDT; in setup_64bit_idt()
232 sregs->idt.limit = 0x1ff; in setup_64bit_idt()
233 uint64* idt = (uint64*)(host_mem + sregs->idt.base); in setup_64bit_idt()
317 struct kvm_sregs sregs; in syz_kvm_setup_cpu() local
318 if (ioctl(cpufd, KVM_GET_SREGS, &sregs)) in syz_kvm_setup_cpu()
[all …]
Dtest_linux.h190 struct kvm_sregs sregs; in dump_cpu_state() local
191 if (ioctl(cpufd, KVM_GET_SREGS, &sregs)) { in dump_cpu_state()
203 sregs.cr0, sregs.cr2, sregs.cr4, sregs.efer); in dump_cpu_state()
204 dump_seg("CS", &sregs.cs); in dump_cpu_state()
205 dump_seg("SS", &sregs.ss); in dump_cpu_state()
206 dump_seg("DS", &sregs.ds); in dump_cpu_state()
/external/strace/linux/x86_64/
Darch_kvm.c76 const struct kvm_sregs *const sregs) in arch_print_kvm_sregs() argument
78 PRINT_FIELD_KVM_SREGS_STRUCT("{", sregs, segment, cs); in arch_print_kvm_sregs()
84 PRINT_FIELD_KVM_SREGS_STRUCT(", ", sregs, segment, ds); in arch_print_kvm_sregs()
85 PRINT_FIELD_KVM_SREGS_STRUCT(", ", sregs, segment, es); in arch_print_kvm_sregs()
86 PRINT_FIELD_KVM_SREGS_STRUCT(", ", sregs, segment, fs); in arch_print_kvm_sregs()
87 PRINT_FIELD_KVM_SREGS_STRUCT(", ", sregs, segment, gs); in arch_print_kvm_sregs()
88 PRINT_FIELD_KVM_SREGS_STRUCT(", ", sregs, segment, ss); in arch_print_kvm_sregs()
89 PRINT_FIELD_KVM_SREGS_STRUCT(", ", sregs, segment, tr); in arch_print_kvm_sregs()
90 PRINT_FIELD_KVM_SREGS_STRUCT(", ", sregs, segment, ldt); in arch_print_kvm_sregs()
91 PRINT_FIELD_KVM_SREGS_STRUCT(", ", sregs, dtable, gdt); in arch_print_kvm_sregs()
[all …]
/external/strace/tests/
Dioctl_kvm_run_common.c99 print_kvm_sregs(const struct kvm_sregs *sregs) in print_kvm_sregs() argument
102 print_kvm_segment(&sregs->cs); in print_kvm_sregs()
105 print_kvm_segment(&sregs->ds); in print_kvm_sregs()
107 print_kvm_segment(&sregs->es); in print_kvm_sregs()
109 print_kvm_segment(&sregs->fs); in print_kvm_sregs()
111 print_kvm_segment(&sregs->gs); in print_kvm_sregs()
113 print_kvm_segment(&sregs->ss); in print_kvm_sregs()
115 print_kvm_segment(&sregs->tr); in print_kvm_sregs()
117 print_kvm_segment(&sregs->ldt); in print_kvm_sregs()
120 "apic_base=%#jx", (uintmax_t) sregs->gdt.base, sregs->gdt.limit, in print_kvm_sregs()
[all …]
/external/strace/tests-m32/
Dioctl_kvm_run_common.c99 print_kvm_sregs(const struct kvm_sregs *sregs) in print_kvm_sregs() argument
102 print_kvm_segment(&sregs->cs); in print_kvm_sregs()
105 print_kvm_segment(&sregs->ds); in print_kvm_sregs()
107 print_kvm_segment(&sregs->es); in print_kvm_sregs()
109 print_kvm_segment(&sregs->fs); in print_kvm_sregs()
111 print_kvm_segment(&sregs->gs); in print_kvm_sregs()
113 print_kvm_segment(&sregs->ss); in print_kvm_sregs()
115 print_kvm_segment(&sregs->tr); in print_kvm_sregs()
117 print_kvm_segment(&sregs->ldt); in print_kvm_sregs()
120 "apic_base=%#jx", (uintmax_t) sregs->gdt.base, sregs->gdt.limit, in print_kvm_sregs()
[all …]
/external/strace/tests-mx32/
Dioctl_kvm_run_common.c99 print_kvm_sregs(const struct kvm_sregs *sregs) in print_kvm_sregs() argument
102 print_kvm_segment(&sregs->cs); in print_kvm_sregs()
105 print_kvm_segment(&sregs->ds); in print_kvm_sregs()
107 print_kvm_segment(&sregs->es); in print_kvm_sregs()
109 print_kvm_segment(&sregs->fs); in print_kvm_sregs()
111 print_kvm_segment(&sregs->gs); in print_kvm_sregs()
113 print_kvm_segment(&sregs->ss); in print_kvm_sregs()
115 print_kvm_segment(&sregs->tr); in print_kvm_sregs()
117 print_kvm_segment(&sregs->ldt); in print_kvm_sregs()
120 "apic_base=%#jx", (uintmax_t) sregs->gdt.base, sregs->gdt.limit, in print_kvm_sregs()
[all …]
/external/linux-kselftest/tools/testing/selftests/kvm/x86_64/
Dset_sregs_test.c31 struct kvm_sregs sregs; in main() local
41 vcpu_sregs_get(vm, VCPU_ID, &sregs); in main()
42 sregs.apic_base = 1 << 10; in main()
43 rc = _vcpu_sregs_set(vm, VCPU_ID, &sregs); in main()
45 sregs.apic_base); in main()
46 sregs.apic_base = 1 << 11; in main()
47 rc = _vcpu_sregs_set(vm, VCPU_ID, &sregs); in main()
49 sregs.apic_base); in main()
Dsync_regs_test.c79 struct kvm_sregs sregs; in main() local
143 vcpu_sregs_get(vm, VCPU_ID, &sregs); in main()
144 compare_sregs(&sregs, &run->s.regs.sregs); in main()
151 run->s.regs.sregs.apic_base = 1 << 11; in main()
164 TEST_ASSERT(run->s.regs.sregs.apic_base == 1 << 11, in main()
166 run->s.regs.sregs.apic_base); in main()
171 vcpu_sregs_get(vm, VCPU_ID, &sregs); in main()
172 compare_sregs(&sregs, &run->s.regs.sregs); in main()
Dcr4_cpuid_sync_test.c68 struct kvm_sregs sregs; in main() local
94 vcpu_sregs_get(vm, VCPU_ID, &sregs); in main()
95 sregs.cr4 &= ~X86_CR4_OSXSAVE; in main()
96 vcpu_sregs_set(vm, VCPU_ID, &sregs); in main()
/external/linux-kselftest/tools/testing/selftests/kvm/lib/x86_64/
Dprocessor.c187 void sregs_dump(FILE *stream, struct kvm_sregs *sregs, in sregs_dump() argument
193 segment_dump(stream, &sregs->cs, indent + 2); in sregs_dump()
195 segment_dump(stream, &sregs->ds, indent + 2); in sregs_dump()
197 segment_dump(stream, &sregs->es, indent + 2); in sregs_dump()
199 segment_dump(stream, &sregs->fs, indent + 2); in sregs_dump()
201 segment_dump(stream, &sregs->gs, indent + 2); in sregs_dump()
203 segment_dump(stream, &sregs->ss, indent + 2); in sregs_dump()
205 segment_dump(stream, &sregs->tr, indent + 2); in sregs_dump()
207 segment_dump(stream, &sregs->ldt, indent + 2); in sregs_dump()
210 dtable_dump(stream, &sregs->gdt, indent + 2); in sregs_dump()
[all …]
/external/u-boot/drivers/bios_emulator/
Dbiosemu.c247 void X86API BE_callRealMode(uint seg, uint off, RMREGS * regs, RMSREGS * sregs) in BE_callRealMode() argument
255 M.x86.R_DS = sregs->ds; in BE_callRealMode()
256 M.x86.R_ES = sregs->es; in BE_callRealMode()
257 M.x86.R_FS = sregs->fs; in BE_callRealMode()
258 M.x86.R_GS = sregs->gs; in BE_callRealMode()
281 sregs->ds = M.x86.R_DS; in BE_callRealMode()
282 sregs->es = M.x86.R_ES; in BE_callRealMode()
283 sregs->fs = M.x86.R_FS; in BE_callRealMode()
284 sregs->gs = M.x86.R_GS; in BE_callRealMode()
338 int X86API BE_int86x(int intno, RMREGS * in, RMREGS * out, RMSREGS * sregs) in BE_int86x() argument
[all …]
Datibios.c240 RMSREGS sregs; in PCI_doBIOSPOST() local
250 memset(&sregs, 0, sizeof(sregs)); in PCI_doBIOSPOST()
263 BE_callRealMode(0xC000, 0x0003, &regs, &sregs); in PCI_doBIOSPOST()
/external/syzkaller/pkg/csource/
Dgenerated.go1688 static void setup_32bit_idt(struct kvm_sregs* sregs, char* host_mem, uintptr_t guest_mem)
1690 sregs->idt.base = guest_mem + ADDR_VAR_IDT;
1691 sregs->idt.limit = 0x1ff;
1692 uint64* idt = (uint64*)(host_mem + sregs->idt.base);
1735 static void setup_64bit_idt(struct kvm_sregs* sregs, char* host_mem, uintptr_t guest_mem)
1737 sregs->idt.base = guest_mem + ADDR_VAR_IDT;
1738 sregs->idt.limit = 0x1ff;
1739 uint64* idt = (uint64*)(host_mem + sregs->idt.base);
1820 struct kvm_sregs sregs;
1821 if (ioctl(cpufd, KVM_GET_SREGS, &sregs))
[all …]
/external/u-boot/drivers/bios_emulator/include/
Dbiosemu.h296 RMSREGS * sregs);
299 RMSREGS * sregs);
334 RMSREGS * sregs);
337 RMSREGS * sregs);
/external/linux-kselftest/tools/testing/selftests/kvm/include/
Dkvm_util.h103 struct kvm_sregs *sregs);
105 struct kvm_sregs *sregs);
107 struct kvm_sregs *sregs);
/external/strace/
Dkvm.c313 struct kvm_sregs sregs; in kvm_ioctl_decode_sregs() local
319 if (!umove_or_printaddr(tcp, arg, &sregs)) in kvm_ioctl_decode_sregs()
320 arch_print_kvm_sregs(tcp, arg, &sregs); in kvm_ioctl_decode_sregs()
/external/strace/linux/
Darch_kvm.c15 const struct kvm_sregs *const sregs) in arch_print_kvm_sregs() argument
/external/linux-kselftest/tools/testing/selftests/kvm/lib/
Dkvm_util.c1213 void vcpu_sregs_get(struct kvm_vm *vm, uint32_t vcpuid, struct kvm_sregs *sregs) in vcpu_sregs_get() argument
1220 ret = ioctl(vcpu->fd, KVM_GET_SREGS, sregs); in vcpu_sregs_get()
1240 void vcpu_sregs_set(struct kvm_vm *vm, uint32_t vcpuid, struct kvm_sregs *sregs) in vcpu_sregs_set() argument
1242 int ret = _vcpu_sregs_set(vm, vcpuid, sregs); in vcpu_sregs_set()
1247 int _vcpu_sregs_set(struct kvm_vm *vm, uint32_t vcpuid, struct kvm_sregs *sregs) in _vcpu_sregs_set() argument
1254 return ioctl(vcpu->fd, KVM_SET_SREGS, sregs); in _vcpu_sregs_set()
Dkvm_util_internal.h71 void sregs_dump(FILE *stream, struct kvm_sregs *sregs, uint8_t indent);
/external/kernel-headers/original/uapi/asm-x86/asm/
Dkvm.h377 struct kvm_sregs sregs; member