Home
last modified time | relevance | path

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

/tools/testing/selftests/kvm/x86_64/
Dset_sregs_test.c29 struct kvm_sregs sregs; in main() local
39 vcpu_sregs_get(vm, VCPU_ID, &sregs); in main()
40 sregs.apic_base = 1 << 10; in main()
41 rc = _vcpu_sregs_set(vm, VCPU_ID, &sregs); in main()
43 sregs.apic_base); in main()
44 sregs.apic_base = 1 << 11; in main()
45 rc = _vcpu_sregs_set(vm, VCPU_ID, &sregs); in main()
47 sregs.apic_base); in main()
Dsync_regs_test.c85 struct kvm_sregs sregs; in main() local
149 vcpu_sregs_get(vm, VCPU_ID, &sregs); in main()
150 compare_sregs(&sregs, &run->s.regs.sregs); in main()
157 run->s.regs.sregs.apic_base = 1 << 11; in main()
170 TEST_ASSERT(run->s.regs.sregs.apic_base == 1 << 11, in main()
172 run->s.regs.sregs.apic_base); in main()
177 vcpu_sregs_get(vm, VCPU_ID, &sregs); in main()
178 compare_sregs(&sregs, &run->s.regs.sregs); in main()
Dcr4_cpuid_sync_test.c68 struct kvm_sregs sregs; in main() local
99 vcpu_sregs_get(vm, VCPU_ID, &sregs); in main()
100 sregs.cr4 &= ~X86_CR4_OSXSAVE; in main()
101 vcpu_sregs_set(vm, VCPU_ID, &sregs); in main()
/tools/testing/selftests/kvm/lib/x86_64/
Dprocessor.c186 void sregs_dump(FILE *stream, struct kvm_sregs *sregs, in sregs_dump() argument
192 segment_dump(stream, &sregs->cs, indent + 2); in sregs_dump()
194 segment_dump(stream, &sregs->ds, indent + 2); in sregs_dump()
196 segment_dump(stream, &sregs->es, indent + 2); in sregs_dump()
198 segment_dump(stream, &sregs->fs, indent + 2); in sregs_dump()
200 segment_dump(stream, &sregs->gs, indent + 2); in sregs_dump()
202 segment_dump(stream, &sregs->ss, indent + 2); in sregs_dump()
204 segment_dump(stream, &sregs->tr, indent + 2); in sregs_dump()
206 segment_dump(stream, &sregs->ldt, indent + 2); in sregs_dump()
209 dtable_dump(stream, &sregs->gdt, indent + 2); in sregs_dump()
[all …]
/tools/testing/selftests/kvm/s390x/
Dsync_regs_test.c71 struct kvm_sregs sregs; in main() local
136 vcpu_sregs_get(vm, VCPU_ID, &sregs); in main()
137 compare_sregs(&sregs, &run->s.regs); in main()
161 vcpu_sregs_get(vm, VCPU_ID, &sregs); in main()
162 compare_sregs(&sregs, &run->s.regs); in main()
/tools/testing/selftests/kvm/lib/s390x/
Dprocessor.c246 struct kvm_sregs sregs; in vm_vcpu_add_default() local
262 vcpu_sregs_get(vm, vcpuid, &sregs); in vm_vcpu_add_default()
263 sregs.crs[0] |= 0x00040000; /* Enable floating point regs */ in vm_vcpu_add_default()
264 sregs.crs[1] = vm->pgd | 0xf; /* Primary region table */ in vm_vcpu_add_default()
265 vcpu_sregs_set(vm, vcpuid, &sregs); in vm_vcpu_add_default()
/tools/testing/selftests/kvm/include/
Dkvm_util.h123 struct kvm_sregs *sregs);
125 struct kvm_sregs *sregs);
127 struct kvm_sregs *sregs);
/tools/testing/selftests/kvm/lib/
Dkvm_util_internal.h69 void sregs_dump(FILE *stream, struct kvm_sregs *sregs, uint8_t indent);
Dkvm_util.c1333 void vcpu_sregs_get(struct kvm_vm *vm, uint32_t vcpuid, struct kvm_sregs *sregs) in vcpu_sregs_get() argument
1340 ret = ioctl(vcpu->fd, KVM_GET_SREGS, sregs); in vcpu_sregs_get()
1360 void vcpu_sregs_set(struct kvm_vm *vm, uint32_t vcpuid, struct kvm_sregs *sregs) in vcpu_sregs_set() argument
1362 int ret = _vcpu_sregs_set(vm, vcpuid, sregs); in vcpu_sregs_set()
1367 int _vcpu_sregs_set(struct kvm_vm *vm, uint32_t vcpuid, struct kvm_sregs *sregs) in _vcpu_sregs_set() argument
1373 return ioctl(vcpu->fd, KVM_SET_SREGS, sregs); in _vcpu_sregs_set()
/tools/arch/x86/include/uapi/asm/
Dkvm.h377 struct kvm_sregs sregs; member