VirtualBox

Ignore:
Timestamp:
Jul 28, 2015 11:49:23 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
101836
Message:

supdrv: Added SUPKERNELFEATURES_SMAP to SUPR0GetKernelFeatures and document the API in the header.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c

    r56293 r57108  
    11071107
    11081108
    1109 /**
    1110  * Returns configuration flags of the host kernel.
    1111  */
    11121109SUPR0DECL(uint32_t) SUPR0GetKernelFeatures(void)
    11131110{
     
    11151112#ifdef CONFIG_PAX_KERNEXEC
    11161113    fFlags |= SUPKERNELFEATURES_GDT_READ_ONLY;
     1114#endif
     1115#ifdef CONFIG_X86_SMAP
     1116    if (ASMGetCR4() & X86_CR4_SMAP)
     1117        fFlags |= SUPKERNELFEATURES_SMAP;
    11171118#endif
    11181119    return fFlags;
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