VirtualBox

Changeset 39311 in vbox


Ignore:
Timestamp:
Nov 15, 2011 2:17:09 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
74870
Message:

DevIoApic.cpp: Wrong max cpu count check, forgot broadcast ID.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevIoApic.cpp

    r39307 r39311  
    542542        return PDMDEV_SET_ERROR(pDevIns, rc,
    543543                                N_("Configuration error: Failed to query integer value \"NumCPUs\""));
    544     if (cCpus > UINT8_MAX - 1)
     544    if (cCpus > UINT8_MAX - 2) /* ID 255 is broadcast and the IO-APIC needs one (ID=cCpus). */
    545545        return PDMDevHlpVMSetError(pDevIns, rc, RT_SRC_POS,
    546546                                   N_("Configuration error: Max %u CPUs, %u specified"), UINT8_MAX - 1, cCpus);
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