mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-18 11:47:30 +00:00
hv: uc-lock: Fix do not trap #GP
If HV enable trigger #GP for uc-lock, and is about to emulate guest uc-lock instructions, should trap guest #GP. Guest uc-lock instrucction trigger #GP, cause vmexit for #GP, HV handle this vmexit and emulate uc-lock instruction. Tracked-On: #6299 Signed-off-by: Tao Yuhong <yuhong.tao@intel.com>
This commit is contained in:
parent
1e3b2a00b9
commit
171856c46b
@ -406,6 +406,9 @@ static void init_exec_ctrl(struct acrn_vcpu *vcpu)
|
||||
if (is_ac_enabled()) {
|
||||
value32 = (value32 | (1U << IDT_AC));
|
||||
}
|
||||
if (is_gp_enabled()) {
|
||||
value32 = (value32 | (1U << IDT_GP));
|
||||
}
|
||||
exec_vmwrite32(VMX_EXCEPTION_BITMAP, value32);
|
||||
|
||||
/* Set up page fault error code mask - second paragraph * pg 2902
|
||||
|
Loading…
Reference in New Issue
Block a user