Bitdefender Hypervisor Memory Introspection
cr_protection.h File Reference
#include "introtypes.h"

Go to the source code of this file.

Functions

INTSTATUS IntCr4Protect (void)
 Activates the Cr4 protection. More...
 
INTSTATUS IntCr4Unprotect (void)
 Disables the CR4 protection. More...
 

Function Documentation

◆ IntCr4Protect()

INTSTATUS IntCr4Protect ( void  )

Activates the Cr4 protection.

Enables exits for Cr4 writes and sets IntCr4HandleWrite as the hook handler.

Returns
INT_STATUS_SUCCESS if successful, or an appropriate INTSTATUS error value

Definition at line 313 of file cr_protection.c.

Referenced by IntGuestUpdateCoreOptions(), IntLixGuestActivateProtection(), and IntWinGuestActivateProtection().

◆ IntCr4Unprotect()

INTSTATUS IntCr4Unprotect ( void  )

Disables the CR4 protection.

Returns
INT_STATUS_SUCCESS if successful, or an appropriate INTSTATUS error value

Definition at line 345 of file cr_protection.c.

Referenced by IntGuestUpdateCoreOptions(), IntLixGuestUninit(), and IntWinGuestUninit().