Home
last modified time | relevance | path

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

/linux-6.1.9/tools/testing/selftests/kvm/include/x86_64/
Devmcs.h252 extern struct hv_enlightened_vmcs *current_evmcs;
276 current_evmcs = vmcs; in evmcs_vmptrld()
293 *value = current_evmcs->guest_rip; in evmcs_vmread()
296 *value = current_evmcs->guest_rsp; in evmcs_vmread()
299 *value = current_evmcs->guest_rflags; in evmcs_vmread()
302 *value = current_evmcs->host_ia32_pat; in evmcs_vmread()
305 *value = current_evmcs->host_ia32_efer; in evmcs_vmread()
308 *value = current_evmcs->host_cr0; in evmcs_vmread()
311 *value = current_evmcs->host_cr3; in evmcs_vmread()
314 *value = current_evmcs->host_cr4; in evmcs_vmread()
[all …]
/linux-6.1.9/arch/x86/kvm/vmx/
Devmcs.h19 #define current_evmcs ((struct hv_enlightened_vmcs *)this_cpu_read(current_vmcs)) macro
132 *(u64 *)((char *)current_evmcs + offset) = value; in evmcs_write64()
134 current_evmcs->hv_clean_fields &= ~clean_field; in evmcs_write64()
145 *(u32 *)((char *)current_evmcs + offset) = value; in evmcs_write32()
146 current_evmcs->hv_clean_fields &= ~clean_field; in evmcs_write32()
157 *(u16 *)((char *)current_evmcs + offset) = value; in evmcs_write16()
158 current_evmcs->hv_clean_fields &= ~clean_field; in evmcs_write16()
168 return *(u64 *)((char *)current_evmcs + offset); in evmcs_read64()
178 return *(u32 *)((char *)current_evmcs + offset); in evmcs_read32()
188 return *(u16 *)((char *)current_evmcs + offset); in evmcs_read16()
[all …]
Dvmx.c7190 current_evmcs->hv_clean_fields |= in vmx_vcpu_run()
7193 current_evmcs->hv_vp_id = kvm_hv_get_vpindex(vcpu); in vmx_vcpu_run()
/linux-6.1.9/tools/testing/selftests/kvm/x86_64/
Devmcs_test.c97 current_evmcs->revision_id = -1u; in guest_code()
99 current_evmcs->revision_id = EVMCS_VERSION; in guest_code()
118 current_evmcs->guest_rip += 3; /* vmcall */ in guest_code()
126 current_evmcs->guest_rip += 2; /* rdmsr */ in guest_code()
129 current_evmcs->hv_enlightenments_control.msr_bitmap = 1; in guest_code()
132 current_evmcs->guest_rip += 2; /* rdmsr */ in guest_code()
137 current_evmcs->hv_clean_fields |= HV_VMX_ENLIGHTENED_CLEAN_FIELD_MSR_BITMAP; in guest_code()
141 current_evmcs->guest_rip += 3; /* vmcall */ in guest_code()
144 current_evmcs->hv_clean_fields &= ~HV_VMX_ENLIGHTENED_CLEAN_FIELD_MSR_BITMAP; in guest_code()
147 current_evmcs->guest_rip += 2; /* rdmsr */ in guest_code()
/linux-6.1.9/tools/testing/selftests/kvm/lib/x86_64/
Dvmx.c21 struct hv_enlightened_vmcs *current_evmcs; variable
192 current_evmcs->revision_id = EVMCS_VERSION; in load_vmcs()