Changeset View
Changeset View
Standalone View
Standalone View
sys/amd64/vmm/intel/vmx_msr.h
Show All 23 Lines | |||||
* SUCH DAMAGE. | * SUCH DAMAGE. | ||||
* | * | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#ifndef _VMX_MSR_H_ | #ifndef _VMX_MSR_H_ | ||||
#define _VMX_MSR_H_ | #define _VMX_MSR_H_ | ||||
#define MSR_VMX_BASIC 0x480 | |||||
#define MSR_VMX_EPT_VPID_CAP 0x48C | |||||
#define MSR_VMX_PROCBASED_CTLS 0x482 | |||||
#define MSR_VMX_TRUE_PROCBASED_CTLS 0x48E | |||||
#define MSR_VMX_PINBASED_CTLS 0x481 | |||||
#define MSR_VMX_TRUE_PINBASED_CTLS 0x48D | |||||
#define MSR_VMX_PROCBASED_CTLS2 0x48B | |||||
#define MSR_VMX_EXIT_CTLS 0x483 | |||||
#define MSR_VMX_TRUE_EXIT_CTLS 0x48f | |||||
#define MSR_VMX_ENTRY_CTLS 0x484 | |||||
#define MSR_VMX_TRUE_ENTRY_CTLS 0x490 | |||||
#define MSR_VMX_CR0_FIXED0 0x486 | |||||
#define MSR_VMX_CR0_FIXED1 0x487 | |||||
#define MSR_VMX_CR4_FIXED0 0x488 | |||||
#define MSR_VMX_CR4_FIXED1 0x489 | |||||
uint32_t vmx_revision(void); | uint32_t vmx_revision(void); | ||||
int vmx_set_ctlreg(int ctl_reg, int true_ctl_reg, uint32_t ones_mask, | int vmx_set_ctlreg(int ctl_reg, int true_ctl_reg, uint32_t ones_mask, | ||||
uint32_t zeros_mask, uint32_t *retval); | uint32_t zeros_mask, uint32_t *retval); | ||||
/* | /* | ||||
* According to Section 21.10.4 "Software Access to Related Structures", | * According to Section 21.10.4 "Software Access to Related Structures", | ||||
* changes to data structures pointed to by the VMCS must be made only when | * changes to data structures pointed to by the VMCS must be made only when | ||||
Show All 16 Lines |