mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-05 23:57:10 +00:00
hv: nested: support for INVEPT and INVVPID emulation
invvpid and invept instructions cause VM exits unconditionally. For initial support, we pass all the instruction operands as is to the pCPU. Tracked-On: #5923 Signed-off-by: Sainath Grandhi <sainath.grandhi@intel.com> Signed-off-by: Zide Chen <zide.chen@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -93,6 +93,7 @@ union value_64 {
|
||||
#define VMXERR_UNSUPPORTED_COMPONENT (12)
|
||||
#define VMXERR_VMWRITE_RO_COMPONENT (13)
|
||||
#define VMXERR_VMXON_IN_VMX_ROOT_OPERATION (15)
|
||||
#define VMXERR_INVEPT_INVVPID_INVALID_OPERAND (28)
|
||||
|
||||
/*
|
||||
* This VMCS12 revision id is chosen arbitrarily.
|
||||
@@ -314,6 +315,8 @@ enum VMXResult {
|
||||
VMfailInvalid,
|
||||
};
|
||||
void nested_vmx_result(enum VMXResult, int error_number);
|
||||
int64_t get_invvpid_ept_operands(struct acrn_vcpu *vcpu, void *desc, size_t size);
|
||||
bool check_vmx_permission(struct acrn_vcpu *vcpu);
|
||||
int32_t vmxon_vmexit_handler(struct acrn_vcpu *vcpu);
|
||||
int32_t vmxoff_vmexit_handler(struct acrn_vcpu *vcpu);
|
||||
int32_t vmptrld_vmexit_handler(struct acrn_vcpu *vcpu);
|
||||
@@ -322,6 +325,7 @@ int32_t vmread_vmexit_handler(struct acrn_vcpu *vcpu);
|
||||
int32_t vmwrite_vmexit_handler(struct acrn_vcpu *vcpu);
|
||||
int32_t vmresume_vmexit_handler(struct acrn_vcpu *vcpu);
|
||||
int32_t vmlaunch_vmexit_handler(struct acrn_vcpu *vcpu);
|
||||
int32_t invvpid_vmexit_handler(struct acrn_vcpu *vcpu);
|
||||
|
||||
#ifdef CONFIG_NVMX_ENABLED
|
||||
struct acrn_nested {
|
||||
|
||||
Reference in New Issue
Block a user