VirtualBox

Changeset 8114 in vbox


Ignore:
Timestamp:
Apr 17, 2008 4:51:52 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
29816
Message:

ATTENTION: Driver version change (backwards compatible). Need more RTMp* stuff.

Location:
trunk/src/VBox/HostDrivers/Support
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDRVIOC.h

    r7206 r8114  
    178178 * The upper 16-bit is the major version, the the lower the minor version.
    179179 * When incompatible changes are made, the upper major number has to be changed. */
    180 #define SUPDRVIOC_VERSION                               0x00070000
     180#define SUPDRVIOC_VERSION                               0x00070001
    181181
    182182/** SUP_IOCTL_COOKIE. */
  • trunk/src/VBox/HostDrivers/Support/SUPDRVShared.c

    r7916 r8114  
    186186    { "RTThreadUserWaitNoResume",               (void *)RTThreadUserWaitNoResume },
    187187#endif
     188    { "RTLogDefaultInstance",                   (void *)RTLogDefaultInstance },
     189    { "RTMpCpuIdFromSetIndex",                  (void *)RTMpCpuIdFromSetIndex },
     190    { "RTMpCpuIdToSetIndex",                    (void *)RTMpCpuIdToSetIndex },
     191    { "RTMpDoesCpuExist",                       (void *)RTMpDoesCpuExist },
     192    { "RTMpGetCount",                           (void *)RTMpGetCount },
     193    { "RTMpGetMaxCpuId",                        (void *)RTMpGetMaxCpuId },
     194    { "RTMpGetOnlineCount",                     (void *)RTMpGetOnlineCount },
     195    { "RTMpGetOnlineSet",                       (void *)RTMpGetOnlineSet },
     196    { "RTMpGetSet",                             (void *)RTMpGetSet },
     197    { "RTMpIsCpuOnline",                        (void *)RTMpIsCpuOnline },
    188198    { "RTMpOnAll",                              (void *)RTMpOnAll },
    189199    { "RTMpOnOthers",                           (void *)RTMpOnOthers },
    190200    { "RTMpOnSpecific",                         (void *)RTMpOnSpecific },
    191     { "RTMpIsCpuOnline",                        (void *)RTMpIsCpuOnline },
    192     { "RTMpGetCount",                           (void *)RTMpGetCount },
    193     { "RTLogDefaultInstance",                   (void *)RTLogDefaultInstance },
    194201    { "RTLogRelDefaultInstance",                (void *)RTLogRelDefaultInstance },
    195202    { "RTLogSetDefaultInstanceThread",          (void *)RTLogSetDefaultInstanceThread },
  • trunk/src/VBox/HostDrivers/Support/SUPLib.cpp

    r7206 r8114  
    209209        strcpy(CookieReq.u.In.szMagic, SUPCOOKIE_MAGIC);
    210210        CookieReq.u.In.u32ReqVersion = SUPDRVIOC_VERSION;
    211         CookieReq.u.In.u32MinVersion = SUPDRVIOC_VERSION & 0xffff0000;
     211        const uint32_t MinVersion = (SUPDRVIOC_VERSION & 0xffff0000) == 0x00070000
     212                                  ? 0x00070001 /* need new exports */
     213                                  : SUPDRVIOC_VERSION & 0xffff0000;
     214        CookieReq.u.In.u32MinVersion = MinVersion;
    212215        rc = suplibOsIOCtl(SUP_IOCTL_COOKIE, &CookieReq, SUP_IOCTL_COOKIE_SIZE);
    213216        if (    RT_SUCCESS(rc)
    214217            &&  RT_SUCCESS(CookieReq.Hdr.rc))
    215218        {
    216             if ((CookieReq.u.Out.u32SessionVersion & 0xffff0000) == (SUPDRVIOC_VERSION & 0xffff0000))
     219            if (    (CookieReq.u.Out.u32SessionVersion & 0xffff0000) == (SUPDRVIOC_VERSION & 0xffff0000)
     220                &&  CookieReq.u.Out.u32SessionVersion >= MinVersion)
    217221            {
    218222                /*
     
    279283            else
    280284            {
    281                 LogRel(("Support driver version mismatch: SessionVersion=%#x DriverVersion=%#x ClientVersion=%#x\n",
    282                         CookieReq.u.Out.u32SessionVersion, CookieReq.u.Out.u32DriverVersion, SUPDRVIOC_VERSION));
     285                LogRel(("Support driver version mismatch: SessionVersion=%#x DriverVersion=%#x ClientVersion=%#x MinVersion=%#x\n",
     286                        CookieReq.u.Out.u32SessionVersion, CookieReq.u.Out.u32DriverVersion, SUPDRVIOC_VERSION, MinVersion));
    283287                rc = VERR_VM_DRIVER_VERSION_MISMATCH;
    284288            }
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