Home
last modified time | relevance | path

Searched refs:vmcs12 (Results 1 – 8 of 8) sorted by relevance

/arch/x86/kvm/vmx/
Dnested.h38 static inline struct vmcs12 *get_vmcs12(struct kvm_vcpu *vcpu) in get_vmcs12()
43 static inline struct vmcs12 *get_shadow_vmcs12(struct kvm_vcpu *vcpu) in get_shadow_vmcs12()
90 struct vmcs12 *vmcs12 = get_vmcs12(vcpu); in nested_vmx_reflect_vmexit() local
92 vmcs12->vm_exit_intr_error_code = in nested_vmx_reflect_vmexit()
106 static inline unsigned long nested_read_cr0(struct vmcs12 *fields) in nested_read_cr0()
111 static inline unsigned long nested_read_cr4(struct vmcs12 *fields) in nested_read_cr4()
150 static inline bool nested_cpu_has(struct vmcs12 *vmcs12, u32 bit) in nested_cpu_has() argument
152 return vmcs12->cpu_based_vm_exec_control & bit; in nested_cpu_has()
155 static inline bool nested_cpu_has2(struct vmcs12 *vmcs12, u32 bit) in nested_cpu_has2() argument
157 return (vmcs12->cpu_based_vm_exec_control & in nested_cpu_has2()
[all …]
Dnested.c58 #define SHADOW_FIELD_RO(x, y) { x, offsetof(struct vmcs12, y) },
65 #define SHADOW_FIELD_RW(x, y) { x, offsetof(struct vmcs12, y) },
329 struct vmcs12 *vmcs12 = get_vmcs12(vcpu); in nested_ept_inject_page_fault() local
344 vmcs12->guest_physical_address = fault->address; in nested_ept_inject_page_fault()
371 static bool nested_vmx_is_page_fault_vmexit(struct vmcs12 *vmcs12, in nested_vmx_is_page_fault_vmexit() argument
376 bit = (vmcs12->exception_bitmap & (1u << PF_VECTOR)) != 0; in nested_vmx_is_page_fault_vmexit()
378 (error_code & vmcs12->page_fault_error_code_mask) != in nested_vmx_is_page_fault_vmexit()
379 vmcs12->page_fault_error_code_match; in nested_vmx_is_page_fault_vmexit()
390 struct vmcs12 *vmcs12 = get_vmcs12(vcpu); in nested_vmx_check_exception() local
400 if (nested_vmx_is_page_fault_vmexit(vmcs12, in nested_vmx_check_exception()
[all …]
Dvmcs12.h27 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()
Dvmx.c1782 struct vmcs12 *vmcs12 = get_vmcs12(vcpu); in vmx_read_l1_tsc_offset() local
1785 (vmcs12->cpu_based_vm_exec_control & CPU_BASED_USE_TSC_OFFSETTING)) in vmx_read_l1_tsc_offset()
1786 return vcpu->arch.tsc_offset - vmcs12->tsc_offset; in vmx_read_l1_tsc_offset()
1793 struct vmcs12 *vmcs12 = get_vmcs12(vcpu); in vmx_write_l1_tsc_offset() local
1803 (vmcs12->cpu_based_vm_exec_control & CPU_BASED_USE_TSC_OFFSETTING)) in vmx_write_l1_tsc_offset()
1804 g_tsc_offset = vmcs12->tsc_offset; in vmx_write_l1_tsc_offset()
4853 struct vmcs12 *vmcs12 = get_vmcs12(vcpu); in handle_set_cr0() local
4864 val = (val & ~vmcs12->cr0_guest_host_mask) | in handle_set_cr0()
4865 (vmcs12->guest_cr0 & vmcs12->cr0_guest_host_mask); in handle_set_cr0()
4886 struct vmcs12 *vmcs12 = get_vmcs12(vcpu); in handle_set_cr4() local
[all …]
Dvmx.h106 struct vmcs12 *cached_vmcs12;
112 struct vmcs12 *cached_shadow_vmcs12;
Dvmcs12.c6 #define VMCS12_OFFSET(x) offsetof(struct vmcs12, x)
/arch/x86/kvm/
DMakefile15 kvm-intel-y += vmx/vmx.o vmx/vmenter.o vmx/pmu_intel.o vmx/vmcs12.o vmx/evmcs.o vmx/nested.o
/arch/x86/include/uapi/asm/
Dkvm.h400 __u8 vmcs12[KVM_STATE_NESTED_VMX_VMCS_SIZE]; member