Lines Matching refs:sregs
99 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()
121 (uintmax_t) sregs->idt.base, sregs->idt.limit, sregs->cr0, in print_kvm_sregs()
122 sregs->cr2, sregs->cr3, sregs->cr4, sregs->cr8, sregs->efer, in print_kvm_sregs()
123 (uintmax_t)sregs->apic_base); in print_kvm_sregs()
125 for (size_t i = 0; i < ARRAY_SIZE(sregs->interrupt_bitmap); i++) { in print_kvm_sregs()
128 printf("%#jx", (uintmax_t) sregs->interrupt_bitmap[i]); in print_kvm_sregs()
175 struct kvm_sregs sregs; in run_kvm() local
176 KVM_IOCTL(vcpu_fd, KVM_GET_SREGS, &sregs); in run_kvm()
178 print_kvm_sregs(&sregs); in run_kvm()
181 sregs.cs.base = 0; in run_kvm()
182 sregs.cs.selector = 0; in run_kvm()
183 KVM_IOCTL(vcpu_fd, KVM_SET_SREGS, &sregs); in run_kvm()
185 print_kvm_sregs(&sregs); in run_kvm()