Searched refs:vmcb (Results 1 – 7 of 7) sorted by relevance
/tools/testing/selftests/kvm/lib/x86_64/ |
D | svm.c | 36 svm->vmcb = (void *)vm_vaddr_alloc_page(vm); in vcpu_alloc_svm() 37 svm->vmcb_hva = addr_gva2hva(vm, (uintptr_t)svm->vmcb); in vcpu_alloc_svm() 38 svm->vmcb_gpa = addr_gva2gpa(vm, (uintptr_t)svm->vmcb); in vcpu_alloc_svm() 62 static void clear_vmcb(struct vmcb *vmcb) in clear_vmcb() argument 64 int n = sizeof(*vmcb) / sizeof(u32); in clear_vmcb() 66 asm volatile ("rep stosl" : "+c"(n), "+D"(vmcb) : "a"(0) : "memory"); in clear_vmcb() 71 struct vmcb *vmcb = svm->vmcb; in generic_svm_setup() local 73 struct vmcb_save_area *save = &vmcb->save; in generic_svm_setup() 74 struct vmcb_control_area *ctrl = &vmcb->control; in generic_svm_setup() 85 clear_vmcb(vmcb); in generic_svm_setup() [all …]
|
/tools/testing/selftests/kvm/x86_64/ |
D | svm_int_ctl_test.c | 66 struct vmcb *vmcb = svm->vmcb; in l1_guest_code() local 75 vmcb->control.int_ctl &= ~V_INTR_MASKING_MASK; in l1_guest_code() 78 vmcb->control.intercept &= ~(1ULL << INTERCEPT_INTR | INTERCEPT_VINTR); in l1_guest_code() 81 vmcb->control.int_ctl |= V_IRQ_MASK | (0x1 << V_INTR_PRIO_SHIFT); in l1_guest_code() 82 vmcb->control.int_vector = VINTR_IRQ_NUMBER; in l1_guest_code() 84 run_guest(vmcb, svm->vmcb_gpa); in l1_guest_code() 85 GUEST_ASSERT(vmcb->control.exit_code == SVM_EXIT_VMMCALL); in l1_guest_code()
|
D | svm_vmcall_test.c | 28 struct vmcb *vmcb = svm->vmcb; in l1_guest_code() local 34 run_guest(vmcb, svm->vmcb_gpa); in l1_guest_code() 36 GUEST_ASSERT(vmcb->control.exit_code == SVM_EXIT_VMMCALL); in l1_guest_code()
|
D | state_test.c | 39 struct vmcb *vmcb = svm->vmcb; in svm_l1_guest_code() local 47 run_guest(vmcb, svm->vmcb_gpa); in svm_l1_guest_code() 48 GUEST_ASSERT(vmcb->control.exit_code == SVM_EXIT_VMMCALL); in svm_l1_guest_code() 50 vmcb->save.rip += 3; in svm_l1_guest_code() 51 run_guest(vmcb, svm->vmcb_gpa); in svm_l1_guest_code() 52 GUEST_ASSERT(vmcb->control.exit_code == SVM_EXIT_VMMCALL); in svm_l1_guest_code()
|
D | smm_test.c | 107 run_guest(svm->vmcb, svm->vmcb_gpa); in guest_code() 108 run_guest(svm->vmcb, svm->vmcb_gpa); in guest_code()
|
/tools/testing/selftests/kvm/include/x86_64/ |
D | svm_util.h | 23 struct vmcb *vmcb; /* gva */ member 35 void run_guest(struct vmcb *vmcb, uint64_t vmcb_gpa);
|
D | svm.h | 209 struct __attribute__ ((__packed__)) vmcb { struct
|