Changeset 8114 in vbox
- Timestamp:
- Apr 17, 2008 4:51:52 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 29816
- Location:
- trunk/src/VBox/HostDrivers/Support
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPDRVIOC.h
r7206 r8114 178 178 * The upper 16-bit is the major version, the the lower the minor version. 179 179 * When incompatible changes are made, the upper major number has to be changed. */ 180 #define SUPDRVIOC_VERSION 0x0007000 0180 #define SUPDRVIOC_VERSION 0x00070001 181 181 182 182 /** SUP_IOCTL_COOKIE. */ -
trunk/src/VBox/HostDrivers/Support/SUPDRVShared.c
r7916 r8114 186 186 { "RTThreadUserWaitNoResume", (void *)RTThreadUserWaitNoResume }, 187 187 #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 }, 188 198 { "RTMpOnAll", (void *)RTMpOnAll }, 189 199 { "RTMpOnOthers", (void *)RTMpOnOthers }, 190 200 { "RTMpOnSpecific", (void *)RTMpOnSpecific }, 191 { "RTMpIsCpuOnline", (void *)RTMpIsCpuOnline },192 { "RTMpGetCount", (void *)RTMpGetCount },193 { "RTLogDefaultInstance", (void *)RTLogDefaultInstance },194 201 { "RTLogRelDefaultInstance", (void *)RTLogRelDefaultInstance }, 195 202 { "RTLogSetDefaultInstanceThread", (void *)RTLogSetDefaultInstanceThread }, -
trunk/src/VBox/HostDrivers/Support/SUPLib.cpp
r7206 r8114 209 209 strcpy(CookieReq.u.In.szMagic, SUPCOOKIE_MAGIC); 210 210 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; 212 215 rc = suplibOsIOCtl(SUP_IOCTL_COOKIE, &CookieReq, SUP_IOCTL_COOKIE_SIZE); 213 216 if ( RT_SUCCESS(rc) 214 217 && RT_SUCCESS(CookieReq.Hdr.rc)) 215 218 { 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) 217 221 { 218 222 /* … … 279 283 else 280 284 { 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)); 283 287 rc = VERR_VM_DRIVER_VERSION_MISMATCH; 284 288 }
Note:
See TracChangeset
for help on using the changeset viewer.