Home
last modified time | relevance | path

Searched refs:current_evmcs (Results 1 – 4 of 4) sorted by relevance

/linux/tools/testing/selftests/kvm/include/x86_64/
H A Devmcs.h242 extern struct hv_enlightened_vmcs *current_evmcs;
256 current_evmcs = vmcs; in evmcs_vmptrld()
266 current_evmcs->revision_id = EVMCS_VERSION; in load_evmcs()
283 *value = current_evmcs->guest_rip; in evmcs_vmread()
286 *value = current_evmcs->guest_rsp; in evmcs_vmread()
289 *value = current_evmcs->guest_rflags; in evmcs_vmread()
292 *value = current_evmcs->host_ia32_pat; in evmcs_vmread()
295 *value = current_evmcs->host_ia32_efer; in evmcs_vmread()
298 *value = current_evmcs->host_cr0; in evmcs_vmread()
301 *value = current_evmcs->host_cr3; in evmcs_vmread()
[all …]
/linux/arch/x86/kvm/vmx/
H A Dvmx_onhyperv.h15 #define current_evmcs ((struct hv_enlightened_vmcs *)this_cpu_read(current_vmcs)) macro
43 *(u64 *)((char *)current_evmcs + offset) = value; in evmcs_write64()
45 current_evmcs->hv_clean_fields &= ~clean_field; in evmcs_write64()
56 *(u32 *)((char *)current_evmcs + offset) = value; in evmcs_write32()
57 current_evmcs->hv_clean_fields &= ~clean_field; in evmcs_write32()
68 *(u16 *)((char *)current_evmcs + offset) = value; in evmcs_write16()
69 current_evmcs->hv_clean_fields &= ~clean_field; in evmcs_write16()
79 return *(u64 *)((char *)current_evmcs + offset); in evmcs_read64()
89 return *(u32 *)((char *)current_evmcs + offset); in evmcs_read32()
99 return *(u16 *)((char *)current_evmcs + offset); in evmcs_read16()
[all …]
/linux/tools/testing/selftests/kvm/x86_64/
H A Dhyperv_evmcs.c108 current_evmcs->revision_id = -1u; in guest_code()
110 current_evmcs->revision_id = EVMCS_VERSION; in guest_code()
117 current_evmcs->partition_assist_page = hv_pages->partition_assist_gpa; in guest_code()
118 current_evmcs->hv_enlightenments_control.nested_flush_hypercall = 1; in guest_code()
119 current_evmcs->hv_vm_id = 1; in guest_code()
120 current_evmcs->hv_vp_id = 1; in guest_code()
139 current_evmcs->guest_rip += 3; /* vmcall */ in guest_code()
147 current_evmcs->guest_rip += 2; /* rdmsr */ in guest_code()
150 current_evmcs->hv_enlightenments_control.msr_bitmap = 1; in guest_code()
153 current_evmcs->guest_rip += 2; /* rdmsr */ in guest_code()
[all …]
/linux/tools/testing/selftests/kvm/lib/x86_64/
H A Dvmx.c21 struct hv_enlightened_vmcs *current_evmcs; variable