Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/tools/testing/selftests/kvm/include/
Devmcs.h222 extern struct hv_enlightened_vmcs *current_evmcs;
246 current_evmcs = vmcs; in evmcs_vmptrld()
263 *value = current_evmcs->guest_rip; in evmcs_vmread()
266 *value = current_evmcs->guest_rsp; in evmcs_vmread()
269 *value = current_evmcs->guest_rflags; in evmcs_vmread()
272 *value = current_evmcs->host_ia32_pat; in evmcs_vmread()
275 *value = current_evmcs->host_ia32_efer; in evmcs_vmread()
278 *value = current_evmcs->host_cr0; in evmcs_vmread()
281 *value = current_evmcs->host_cr3; in evmcs_vmread()
284 *value = current_evmcs->host_cr4; in evmcs_vmread()
[all …]
/kernel/linux/linux-5.10/arch/x86/kvm/vmx/
Devmcs.h19 #define current_evmcs ((struct hv_enlightened_vmcs *)this_cpu_read(current_vmcs)) macro
110 *(u64 *)((char *)current_evmcs + offset) = value; in evmcs_write64()
112 current_evmcs->hv_clean_fields &= ~clean_field; in evmcs_write64()
123 *(u32 *)((char *)current_evmcs + offset) = value; in evmcs_write32()
124 current_evmcs->hv_clean_fields &= ~clean_field; in evmcs_write32()
135 *(u16 *)((char *)current_evmcs + offset) = value; in evmcs_write16()
136 current_evmcs->hv_clean_fields &= ~clean_field; in evmcs_write16()
146 return *(u64 *)((char *)current_evmcs + offset); in evmcs_read64()
156 return *(u32 *)((char *)current_evmcs + offset); in evmcs_read32()
166 return *(u16 *)((char *)current_evmcs + offset); in evmcs_read16()
[all …]
Dvmx.c6888 current_evmcs->hv_clean_fields |= in vmx_vcpu_run()
6892 current_evmcs->hv_vp_id = vcpu->arch.hyperv.vp_index; in vmx_vcpu_run()
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/x86_64/
Devmcs_test.c53 current_evmcs->revision_id = -1u; in l1_guest_code()
55 current_evmcs->revision_id = EVMCS_VERSION; in l1_guest_code()
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/lib/x86_64/
Dvmx.c20 struct hv_enlightened_vmcs *current_evmcs; variable
197 current_evmcs->revision_id = EVMCS_VERSION; in load_vmcs()