Searched refs:vmcb (Results 1 – 6 of 6) sorted by relevance
/third_party/ltp/testcases/kernel/kvm/ |
D | lib_x86.c | 326 void kvm_vmcb_set_intercept(struct kvm_vmcb *vmcb, unsigned int id, in kvm_vmcb_set_intercept() argument 335 vmcb->intercepts[addr] |= bit; in kvm_vmcb_set_intercept() 337 vmcb->intercepts[addr] &= ~bit; in kvm_vmcb_set_intercept() 340 void kvm_init_guest_vmcb(struct kvm_vmcb *vmcb, uint32_t asid, uint16_t ss, in kvm_init_guest_vmcb() argument 349 kvm_vmcb_set_intercept(vmcb, SVM_INTERCEPT_VMRUN, 1); in kvm_init_guest_vmcb() 350 kvm_vmcb_set_intercept(vmcb, SVM_INTERCEPT_HLT, 1); in kvm_init_guest_vmcb() 352 kvm_vmcb_copy_gdt_descriptor(&vmcb->es, sregs.es >> 3); in kvm_init_guest_vmcb() 353 kvm_vmcb_copy_gdt_descriptor(&vmcb->cs, sregs.cs >> 3); in kvm_init_guest_vmcb() 354 kvm_vmcb_copy_gdt_descriptor(&vmcb->ss, ss); in kvm_init_guest_vmcb() 355 kvm_vmcb_copy_gdt_descriptor(&vmcb->ds, sregs.ds >> 3); in kvm_init_guest_vmcb() [all …]
|
D | kvm_svm01.c | 61 vcpu->vmcb->virt_intr_ctl |= SVM_INTR_AVIC; in main() 62 vcpu->vmcb->avic_backing_page = 0; in main() 63 vcpu->vmcb->avic_bar = 0; in main() 69 switch (vcpu->vmcb->exitcode) { in main() 71 if (vcpu->vmcb->rax == AVIC_READ_FAIL) { in main() 76 if (vcpu->vmcb->rax) in main() 82 if ((vcpu->vmcb->exitinfo1 & AVIC_INFO_MASK) == AVIC_INFO_EXP) { in main()
|
D | kvm_svm02.c | 95 kvm_vmcb_set_intercept(vcpu->vmcb, SVM_INTERCEPT_VMLOAD, 0); in main() 99 ss = vcpu->vmcb->ss.selector; in main() 100 rsp = vcpu->vmcb->rsp; in main() 105 if (vcpu->vmcb->exitcode != SVM_EXIT_HLT) in main() 108 if (cmp_vmcb(vcpu->vmcb, vmsave_buf)) { in main() 115 kvm_init_guest_vmcb(vcpu->vmcb, 1, ss, (void *)rsp, guest_vmsave); in main() 116 kvm_vmcb_set_intercept(vcpu->vmcb, SVM_INTERCEPT_VMSAVE, 0); in main() 119 if (vcpu->vmcb->exitcode != SVM_EXIT_HLT) in main() 122 if (cmp_vmcb(vcpu->vmcb, vmsave_buf)) { in main()
|
D | kvm_svm03.c | 55 kvm_vmcb_set_intercept(vcpu->vmcb, SVM_INTERCEPT_CLGI, 0); in main() 58 if (vcpu->vmcb->exitcode != SVM_EXIT_HLT) in main()
|
/third_party/ltp/testcases/kernel/kvm/include/ |
D | kvm_x86_svm.h | 144 struct kvm_vmcb *vmcb; member 157 void kvm_vmcb_set_intercept(struct kvm_vmcb *vmcb, unsigned int id, 159 void kvm_init_guest_vmcb(struct kvm_vmcb *vmcb, uint32_t asid, uint16_t ss,
|
/third_party/ltp/doc/ |
D | KVM-Test-API.asciidoc | 442 - `void kvm_vmcb_set_intercept(struct kvm_vmcb *vmcb, unsigned int id, unsigned int state)` - 445 - `void kvm_init_guest_vmcb(struct kvm_vmcb *vmcb, uint32_t asid, uint16_t ss, void *rsp, int (*gue…
|