hv:remove 2 bits vmx capability check

for VMX_PROCBASED_CTLS2_XSVE_XRSTR, it has been
    checked in is_valid_xsave_combination, here
    remove the redundant check.
for VMX_PROCBASED_CTLS2_PAUSE_LOOP, now it will panic
    if run ACRN over QEMU, here remove it from essential check,
    and it will print error information when set this bit
    if there is no the hardware capability.

Tracked-On: #6584
Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
This commit is contained in:
Mingqiang Chi 2021-12-02 15:40:06 +08:00 committed by acrnsi-robot
parent 811ffe0117
commit 395174f9db

View File

@ -65,8 +65,7 @@ static struct vmx_capability vmx_caps[] = {
{
MSR_IA32_VMX_PROCBASED_CTLS2, VMX_PROCBASED_CTLS2_VAPIC | VMX_PROCBASED_CTLS2_EPT |
VMX_PROCBASED_CTLS2_VPID | VMX_PROCBASED_CTLS2_RDTSCP |
VMX_PROCBASED_CTLS2_UNRESTRICT | VMX_PROCBASED_CTLS2_XSVE_XRSTR |
VMX_PROCBASED_CTLS2_PAUSE_LOOP
VMX_PROCBASED_CTLS2_UNRESTRICT
},
{
MSR_IA32_VMX_EXIT_CTLS, VMX_EXIT_CTLS_ACK_IRQ | VMX_EXIT_CTLS_SAVE_PAT |