VirtualBox

Changeset 42157 in vbox for trunk/src


Ignore:
Timestamp:
Jul 16, 2012 10:58:47 AM (13 years ago)
Author:
vboxsync
Message:

VMM: Detect VIA Cpus for VT-x support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HWACCMR0.cpp

    r42045 r42157  
    623623    g_HvmR0.pfnSetupVM          = hmR0DummySetupVM;
    624624
    625     /* Default is global VT-x/AMD-V init */
     625    /* Default is global VT-x/AMD-V init. */
    626626    g_HvmR0.fGlobalInit         = true;
    627627
     
    636636
    637637    /*
    638      * Check for VT-x and AMD-V capabilities
     638     * Check for VT-x and AMD-V capabilities.
    639639     */
    640640    int rc;
     
    655655
    656656        /* Go to CPU specific initialization code. */
    657         if (   u32VendorEBX == X86_CPUID_VENDOR_INTEL_EBX
    658             && u32VendorECX == X86_CPUID_VENDOR_INTEL_ECX
    659             && u32VendorEDX == X86_CPUID_VENDOR_INTEL_EDX)
     657        if (   (   u32VendorEBX == X86_CPUID_VENDOR_INTEL_EBX
     658                && u32VendorECX == X86_CPUID_VENDOR_INTEL_ECX
     659                && u32VendorEDX == X86_CPUID_VENDOR_INTEL_EDX)
     660            || (   u32VendorEBX == X86_CPUID_VENDOR_VIA_EBX
     661                && u32VendorECX == X86_CPUID_VENDOR_VIA_ECX
     662                && u32VendorEDX == X86_CPUID_VENDOR_VIA_EDX))
    660663        {
    661664            rc = hmR0InitIntel(u32FeaturesECX, u32FeaturesEDX);
     
    783786       )
    784787    {
    785         /* MSR is not yet locked; we can change it ourselves here */
     788        /* MSR is not yet locked; we can change it ourselves here. */
    786789        ASMWrMsr(MSR_IA32_FEATURE_CONTROL,
    787790                 g_HvmR0.vmx.msr.feature_ctrl | MSR_IA32_FEATURE_CONTROL_VMXON | MSR_IA32_FEATURE_CONTROL_LOCK);
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