Searched refs:vmcs12 (Results 1 – 11 of 11) sorted by relevance
| /Linux-v5.4/arch/x86/kvm/vmx/ |
| D | nested.c | 57 #define SHADOW_FIELD_RO(x, y) { x, offsetof(struct vmcs12, y) }, 64 #define SHADOW_FIELD_RW(x, y) { x, offsetof(struct vmcs12, y) }, 328 struct vmcs12 *vmcs12 = get_vmcs12(vcpu); in nested_ept_inject_page_fault() local 343 vmcs12->guest_physical_address = fault->address; in nested_ept_inject_page_fault() 370 static bool nested_vmx_is_page_fault_vmexit(struct vmcs12 *vmcs12, in nested_vmx_is_page_fault_vmexit() argument 375 bit = (vmcs12->exception_bitmap & (1u << PF_VECTOR)) != 0; in nested_vmx_is_page_fault_vmexit() 377 (error_code & vmcs12->page_fault_error_code_mask) != in nested_vmx_is_page_fault_vmexit() 378 vmcs12->page_fault_error_code_match; in nested_vmx_is_page_fault_vmexit() 389 struct vmcs12 *vmcs12 = get_vmcs12(vcpu); in nested_vmx_check_exception() local 399 if (nested_vmx_is_page_fault_vmexit(vmcs12, in nested_vmx_check_exception() [all …]
|
| D | nested.h | 37 static inline struct vmcs12 *get_vmcs12(struct kvm_vcpu *vcpu) in get_vmcs12() 42 static inline struct vmcs12 *get_shadow_vmcs12(struct kvm_vcpu *vcpu) in get_shadow_vmcs12() 89 struct vmcs12 *vmcs12 = get_vmcs12(vcpu); in nested_vmx_reflect_vmexit() local 91 vmcs12->vm_exit_intr_error_code = in nested_vmx_reflect_vmexit() 105 static inline unsigned long nested_read_cr0(struct vmcs12 *fields) in nested_read_cr0() 110 static inline unsigned long nested_read_cr4(struct vmcs12 *fields) in nested_read_cr4() 149 static inline bool nested_cpu_has(struct vmcs12 *vmcs12, u32 bit) in nested_cpu_has() argument 151 return vmcs12->cpu_based_vm_exec_control & bit; in nested_cpu_has() 154 static inline bool nested_cpu_has2(struct vmcs12 *vmcs12, u32 bit) in nested_cpu_has2() argument 156 return (vmcs12->cpu_based_vm_exec_control & in nested_cpu_has2() [all …]
|
| D | vmcs12.h | 27 struct __packed vmcs12 { struct 219 BUILD_BUG_ON_MSG(offsetof(struct vmcs12, field) != (loc), \ 398 static inline u64 vmcs12_read_any(struct vmcs12 *vmcs12, unsigned long field, in vmcs12_read_any() argument 401 char *p = (char *)vmcs12 + offset; in vmcs12_read_any() 418 static inline void vmcs12_write_any(struct vmcs12 *vmcs12, unsigned long field, in vmcs12_write_any() argument 421 char *p = (char *)vmcs12 + offset; in vmcs12_write_any()
|
| D | vmx.c | 1696 struct vmcs12 *vmcs12 = get_vmcs12(vcpu); in vmx_read_l1_tsc_offset() local 1699 (vmcs12->cpu_based_vm_exec_control & CPU_BASED_USE_TSC_OFFSETING)) in vmx_read_l1_tsc_offset() 1700 return vcpu->arch.tsc_offset - vmcs12->tsc_offset; in vmx_read_l1_tsc_offset() 1707 struct vmcs12 *vmcs12 = get_vmcs12(vcpu); in vmx_write_l1_tsc_offset() local 1717 (vmcs12->cpu_based_vm_exec_control & CPU_BASED_USE_TSC_OFFSETING)) in vmx_write_l1_tsc_offset() 1718 g_tsc_offset = vmcs12->tsc_offset; in vmx_write_l1_tsc_offset() 4759 struct vmcs12 *vmcs12 = get_vmcs12(vcpu); in handle_set_cr0() local 4770 val = (val & ~vmcs12->cr0_guest_host_mask) | in handle_set_cr0() 4771 (vmcs12->guest_cr0 & vmcs12->cr0_guest_host_mask); in handle_set_cr0() 4792 struct vmcs12 *vmcs12 = get_vmcs12(vcpu); in handle_set_cr4() local [all …]
|
| D | vmx.h | 107 struct vmcs12 *cached_vmcs12; 113 struct vmcs12 *cached_shadow_vmcs12;
|
| D | vmcs12.c | 6 #define VMCS12_OFFSET(x) offsetof(struct vmcs12, x)
|
| /Linux-v5.4/Documentation/virt/kvm/ |
| D | nested-vmx.txt | 66 internals of this structure; This is struct vmcs12 from arch/x86/kvm/vmx.c. 68 The name "vmcs12" refers to the VMCS that L1 builds for L2. In the code we 73 For convenience, we repeat the content of struct vmcs12 here. If the internals 75 VMCS12_REVISION (from vmx.c) should be changed if struct vmcs12 or its inner 79 struct __packed vmcs12 {
|
| D | api.txt | 3919 __u8 vmcs12[KVM_STATE_NESTED_VMX_VMCS_SIZE];
|
| /Linux-v5.4/arch/x86/kvm/ |
| D | Makefile | 15 kvm-intel-y += vmx/vmx.o vmx/vmenter.o vmx/pmu_intel.o vmx/vmcs12.o vmx/evmcs.o vmx/nested.o
|
| /Linux-v5.4/arch/x86/include/uapi/asm/ |
| D | kvm.h | 400 __u8 vmcs12[KVM_STATE_NESTED_VMX_VMCS_SIZE]; member
|
| /Linux-v5.4/tools/arch/x86/include/uapi/asm/ |
| D | kvm.h | 400 __u8 vmcs12[KVM_STATE_NESTED_VMX_VMCS_SIZE]; member
|