Changeset 100097 in vbox for trunk/src/VBox/HostDrivers/Support/darwin/SUPLib-darwin.cpp
- Timestamp:
- Jun 7, 2023 5:45:33 PM (21 months ago)
- svn:sync-xref-src-repo-rev:
- 157790
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/darwin/SUPLib-darwin.cpp
r98103 r100097 63 63 #include <sys/fcntl.h> 64 64 #include <sys/ioctl.h> 65 #include <sys/types.h> 66 #include <sys/sysctl.h> 65 67 #include <errno.h> 66 68 #include <unistd.h> … … 330 332 } 331 333 334 335 DECLHIDDEN(bool) suplibOsIsNemSupportedWhenNoVtxOrAmdV(void) 336 { 337 # if ARCH_BITS == 64 338 int fHvSupported = 0; 339 size_t cb = sizeof(fHvSupported); 340 int rc = sysctlbyname("kern.hv.supported", &fHvSupported, &cb, NULL, 0); 341 if ( !rc 342 && cb == sizeof(uint32_t)) 343 return fHvSupported == 1; 344 345 return false; 346 # else 347 return false; 348 #endif 349 } 350 332 351 #endif /* !IN_SUP_HARDENED_R3 */ 333 352
Note:
See TracChangeset
for help on using the changeset viewer.