mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-19 20:22:46 +00:00
hv: remove check for OSXSAVE in host
We always assume the physical platform has XSAVE, and we always enable XSAVE at the beginning, so, no need to check the OXSAVE in host. Tracked-On: #4956 Signed-off-by: Conghui Chen <conghui.chen@intel.com>
This commit is contained in:
parent
53f74f18ac
commit
f4292752b0
@ -433,11 +433,6 @@ static void guest_cpuid_01h(struct acrn_vcpu *vcpu, uint32_t *eax, uint32_t *ebx
|
||||
*ecx &= ~CPUID_ECX_MONITOR;
|
||||
}
|
||||
|
||||
/*no xsave support for guest if it is not enabled on host*/
|
||||
if ((*ecx & CPUID_ECX_OSXSAVE) == 0U) {
|
||||
*ecx &= ~CPUID_ECX_XSAVE;
|
||||
}
|
||||
|
||||
*ecx &= ~CPUID_ECX_OSXSAVE;
|
||||
if ((*ecx & CPUID_ECX_XSAVE) != 0U) {
|
||||
uint64_t cr4;
|
||||
|
Loading…
Reference in New Issue
Block a user