VirtualBox

Changeset 52009 in vbox


Ignore:
Timestamp:
Jul 14, 2014 5:27:31 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
94972
Message:

Comments and nits.

Location:
trunk/src/VBox
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r52004 r52009  
    12181218            && fOsXGuest)
    12191219        {
     1220            /* When adding new OS X types, please add corresponding types to GIMOSID and
     1221               update GIMR3IsOSXGuest().  */
    12201222            GIMOSID enmOsId = GIMOSID_OSX;
    12211223            if (osTypeId == "MacOS_64")
  • trunk/src/VBox/VMM/VMMR0/HMSVMR0.cpp

    r52006 r52009  
    51325132    STAM_COUNTER_INC(&pVCpu->hm.s.StatExitGuestDB);
    51335133
    5134 
    51355134    /* This can be a fault-type #DB (instruction breakpoint) or a trap-type #DB (data breakpoint). However, for both cases
    51365135       DR6 and DR7 are updated to what the exception handler expects. See AMD spec. 15.12.2 "#DB (Debug)". */
  • trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp

    r52006 r52009  
    63856385     *
    63866386     * The present bit and the unusable bit has been observed to be set at the
    6387      * same time (the selector was supposed to invalid as we started executing
     6387     * same time (the selector was supposed to be invalid as we started executing
    63886388     * a V8086 interrupt in ring-0).
    63896389     *
  • trunk/src/VBox/VMM/VMMR3/GIMMinimal.cpp

    r51797 r52009  
    6464                    uMaxIntelFamilyModelStep = RT_MAKE_U32_FROM_U8(1, 23, 6, 7); /* Penryn / X5482. */
    6565                    break;
     66
    6667                case GIMOSID_OSX_106:
    6768                case GIMOSID_OSX_106_64:
    6869                    uMaxIntelFamilyModelStep = RT_MAKE_U32_FROM_U8(1, 23, 6, 7); /* Penryn / X5482 */
    6970                    break;
     71
    7072                case GIMOSID_OSX_107:
    7173                case GIMOSID_OSX_107_64:
     
    7375                    uMaxIntelFamilyModelStep = RT_MAKE_U32_FROM_U8(1, 23, 6, 7); /* Penryn / X5482 */
    7476                    break;
     77
    7578                case GIMOSID_OSX_108:
    7679                case GIMOSID_OSX_108_64:
     
    7881                    uMaxIntelFamilyModelStep = RT_MAKE_U32_FROM_U8(1, 23, 6, 7); /* Penryn / X5482 */
    7982                    break;
     83
    8084                case GIMOSID_OSX_109:
    8185                case GIMOSID_OSX_109_64:
     
    9195            {
    9296                CPUMCPUIDLEAF Leaf;
    93                 int rc = CPUMR3CpuIdGetLeaf(pVM, &Leaf, 1, 0);
     97                int rc = CPUMR3CpuIdGetLeaf(pVM, &Leaf, 1, 0 /* uSubLeaf */);
    9498                if (RT_SUCCESS(rc))
    9599                {
     
    101105                    {
    102106                        uint32_t uNew = Leaf.uEax & UINT32_C(0xf0003000);
    103                         uNew |=  RT_BYTE1(uMaxIntelFamilyModelStep) & 0xf;       /* stepping */
    104                         uNew |= (RT_BYTE2(uMaxIntelFamilyModelStep) & 0xf) << 4; /* 4 low model bits */
    105                         uNew |= (RT_BYTE2(uMaxIntelFamilyModelStep) >> 4) << 16; /* 4 high model bits */
    106                         uNew |= (RT_BYTE3(uMaxIntelFamilyModelStep) & 0xf) << 8; /* 4 low family bits */
     107                        uNew |=  RT_BYTE1(uMaxIntelFamilyModelStep) & 0xf;          /* stepping */
     108                        uNew |= (RT_BYTE2(uMaxIntelFamilyModelStep) & 0xf) << 4;    /* 4 low model bits */
     109                        uNew |= (RT_BYTE2(uMaxIntelFamilyModelStep) >> 4) << 16;    /* 4 high model bits */
     110                        uNew |= (RT_BYTE3(uMaxIntelFamilyModelStep) & 0xf) << 8;    /* 4 low family bits */
    107111                        /* 8 high family bits, Intel's suggested calculation. */
    108112                        if (RT_BYTE3(uMaxIntelFamilyModelStep) > 0xf)
     
    133137    }
    134138
    135     /** @todo Register CPUID leaves, MSR ranges with CPUM. */
    136     /** -XXX_ CPUMGetGuestCpuId CPUMGetGuestCpuVendor CPUMR3CpuIdInsert  */
    137139    return VINF_SUCCESS;
    138140}
  • trunk/src/VBox/VMM/VMMR3/VM.cpp

    r51640 r52009  
    986986                                                                if (RT_SUCCESS(rc))
    987987                                                                {
    988                                                                     /* GIM must be init'd before PDM, DevGIM construction may
    989                                                                        require GIM provider to be setup. */
     988                                                                    /* GIM must be init'd before PDM, gimdevR3Construct()
     989                                                                       requires GIM provider to be setup. */
    990990                                                                    rc = GIMR3Init(pVM);
    991991                                                                    if (RT_SUCCESS(rc))
  • trunk/src/VBox/VMM/include/GIMHvInternal.h

    r52006 r52009  
    2121#include <VBox/vmm/gim.h>
    2222#include <VBox/vmm/cpum.h>
     23
     24/**
     25 * GIM Hyper-V saved-state version.
     26 */
     27#define GIM_HV_SSM_VERSION                 0x1
    2328
    2429/** @name Hyper-V base feature identification.
  • trunk/src/VBox/VMM/include/GIMInternal.h

    r51797 r52009  
    4444    /** The provider that is active for this VM. */
    4545    GIMPROVIDERID                    enmProviderId;
    46     /** The interface version. */
     46    /** The interface implementation version. */
    4747    uint32_t                         u32Version;
    4848
Note: See TracChangeset for help on using the changeset viewer.

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