Lines Matching refs:wvmcs
68 static inline void wvmcs(hv_vcpuid_t vcpu, uint32_t field, uint64_t v) in wvmcs() function
96 wvmcs(vcpu, VMCS_GUEST_IA32_EFER, efer); in enter_long_mode()
98 wvmcs(vcpu, VMCS_ENTRY_CTLS, entry_ctls | VM_ENTRY_GUEST_LMA); in enter_long_mode()
103 wvmcs(vcpu, VMCS_GUEST_TR_ACCESS_RIGHTS, in enter_long_mode()
113 wvmcs(vcpu, VMCS_ENTRY_CTLS, entry_ctls & ~VM_ENTRY_GUEST_LMA); in exit_long_mode()
116 wvmcs(vcpu, VMCS_GUEST_IA32_EFER, efer); in exit_long_mode()
137 wvmcs(vcpu, VMCS_GUEST_PDPTE0 + i * 2, pdpte[i]); in macvm_set_cr0()
141 wvmcs(vcpu, VMCS_CR0_MASK, mask); in macvm_set_cr0()
142 wvmcs(vcpu, VMCS_CR0_SHADOW, cr0); in macvm_set_cr0()
154 wvmcs(vcpu, VMCS_ENTRY_CTLS, entry_ctls & ~VM_ENTRY_GUEST_LMA); in macvm_set_cr0()
159 wvmcs(vcpu, VMCS_GUEST_CR0, cr0 | CR0_NE_MASK | CR0_ET_MASK); in macvm_set_cr0()
168 wvmcs(vcpu, VMCS_GUEST_CR4, guest_cr4); in macvm_set_cr4()
169 wvmcs(vcpu, VMCS_CR4_SHADOW, cr4); in macvm_set_cr4()
170 wvmcs(vcpu, VMCS_CR4_MASK, CR4_VMXE_MASK); in macvm_set_cr4()
190 wvmcs(cpu->accel->fd, VMCS_GUEST_INTERRUPTIBILITY, in macvm_set_rip()
204 wvmcs(cpu->accel->fd, VMCS_GUEST_INTERRUPTIBILITY, gi); in vmx_clear_nmi_blocking()
215 wvmcs(cpu->accel->fd, VMCS_GUEST_INTERRUPTIBILITY, gi); in vmx_set_nmi_blocking()
222 wvmcs(cpu->accel->fd, VMCS_PRI_PROC_BASED_CTLS, val | in vmx_set_nmi_window_exiting()
232 wvmcs(cpu->accel->fd, VMCS_PRI_PROC_BASED_CTLS, val & in vmx_clear_nmi_window_exiting()