VirtualBox

Changeset 82578 in vbox


Ignore:
Timestamp:
Dec 13, 2019 11:24:45 AM (5 years ago)
Author:
vboxsync
Message:

CPUMR3CpuId: Some related stuff. tickref:19146

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/CPUMR3CpuId.cpp

    r81786 r82578  
    2727#include <VBox/vmm/ssm.h>
    2828#include "CPUMInternal.h"
    29 #include <VBox/vmm/vm.h>
     29#include <VBox/vmm/vmcc.h>
    3030#include <VBox/vmm/mm.h>
    3131#include <VBox/sup.h>
     
    49824982                        AssertLogRelRC(rc);
    49834983                    }
     4984
     4985                    /* Advertise IBRS_ALL if present at this point... */
     4986                    if (pVM->cpum.s.HostFeatures.fArchCap & MSR_IA32_ARCH_CAP_F_IBRS_ALL)
     4987                        VMCC_FOR_EACH_VMCPU_STMT(pVM, pVCpu->cpum.s.GuestMsrs.msr.ArchCaps |= MSR_IA32_ARCH_CAP_F_IBRS_ALL);
    49844988                }
    49854989
     
    51575161            if (pLeaf)
    51585162                pLeaf->uEdx &= ~(X86_CPUID_STEXT_FEATURE_EDX_IBRS_IBPB | X86_CPUID_STEXT_FEATURE_EDX_STIBP);
    5159             pVM->cpum.s.GuestFeatures.fSpeculationControl = 0;
     5163            VMCC_FOR_EACH_VMCPU_STMT(pVM, pVCpu->cpum.s.GuestMsrs.msr.ArchCaps &= ~MSR_IA32_ARCH_CAP_F_IBRS_ALL);
    51605164            Log(("CPUM: ClearGuestCpuIdFeature: Disabled speculation control!\n"));
    51615165            break;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette