VirtualBox

Changeset 20158 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
May 29, 2009 3:25:31 PM (16 years ago)
Author:
vboxsync
Message:

Extra VCPU checks. Attempt to fix alignment issue

Location:
trunk/src/VBox/VMM
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/CPUM.cpp

    r20157 r20158  
    423423    if (pVM->cpum.s.enmCPUVendor == CPUMCPUVENDOR_INTEL)
    424424    {
     425        AssertReturn(pVM->cCPUs <= 64, VERR_TOO_MANY_CPUS);
    425426        /* One logical processor with possibly multiple cores. */
    426427        pCPUM->aGuestCpuIdStd[4].eax |= ((pVM->cCPUs - 1) << 26);   /* 6 bits only -> 64 cores! */
  • trunk/src/VBox/VMM/PGMInternal.h

    r20151 r20158  
    22222222    bool                            fRamPreAlloc;
    22232223    /** Alignment padding. */
    2224     bool                            afAlignment0[7];
     2224    bool                            afAlignment0[11];
    22252225
    22262226    /*
  • trunk/src/VBox/VMM/VM.cpp

    r19495 r20158  
    215215     * Validate input.
    216216     */
    217     AssertLogRelMsgReturn(cCPUs > 0 && cCPUs <= VMM_MAX_CPU_COUNT, ("%RU32\n", cCPUs), VERR_INVALID_PARAMETER);
     217    AssertLogRelMsgReturn(cCPUs > 0 && cCPUs <= VMM_MAX_CPU_COUNT, ("%RU32\n", cCPUs), VERR_TOO_MANY_CPUS);
    218218
    219219    /*
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