mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-19 12:12:16 +00:00
HV: allow write 0 to MSR_IA32_MCG_STATUS
Per SDM, writing 0 to MSR_IA32_MCG_STATUS is allowed, HV should not return -EACCES on this case; Tracked-On: #3454 Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
parent
3cf1daa480
commit
a7b6fc74e5
@ -635,8 +635,14 @@ int32_t wrmsr_vmexit_handler(struct acrn_vcpu *vcpu)
|
||||
err = vlapic_set_apicbase(vcpu_vlapic(vcpu), v);
|
||||
break;
|
||||
}
|
||||
case MSR_IA32_MCG_CAP:
|
||||
case MSR_IA32_MCG_STATUS:
|
||||
{
|
||||
if (v != 0U) {
|
||||
err = -EACCES;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case MSR_IA32_MCG_CAP:
|
||||
case MSR_IA32_FEATURE_CONTROL:
|
||||
case MSR_IA32_SGXLEPUBKEYHASH0:
|
||||
case MSR_IA32_SGXLEPUBKEYHASH1:
|
||||
|
Loading…
Reference in New Issue
Block a user