libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
introvirt::MemAccessEvent Class Referenceabstract

Interface for intercepting memory accesses. More...

#include <MemAccessEvent.hh>

Public Member Functions

virtual bool read_violation () const =0
 Returns true if the event was caused by a read attempt.
 
virtual bool write_violation () const =0
 Returns true if the event was caused by a write attempt.
 
virtual bool execute_violation () const =0
 Returns true if the event was caused by am execute attempt.
 
virtual guest_phys_ptr< void > physical_address () const =0
 Get the faulting guest physical address.
 
virtual ~MemAccessEvent ()=default
 

Detailed Description

Interface for intercepting memory accesses.

Event for intercepted memory read/write/execute.

Constructor & Destructor Documentation

◆ ~MemAccessEvent()

virtual introvirt::MemAccessEvent::~MemAccessEvent ( )
virtualdefault

Member Function Documentation

◆ execute_violation()

virtual bool introvirt::MemAccessEvent::execute_violation ( ) const
pure virtual

Returns true if the event was caused by am execute attempt.

Returns
True if the fault was caused by an execute
Examples
ivmemwatch.cc.

◆ physical_address()

virtual guest_phys_ptr< void > introvirt::MemAccessEvent::physical_address ( ) const
pure virtual

Get the faulting guest physical address.

Returns
The faulting guest physical address

◆ read_violation()

virtual bool introvirt::MemAccessEvent::read_violation ( ) const
pure virtual

Returns true if the event was caused by a read attempt.

Returns
True if the fault was caused by a read
Examples
ivmemwatch.cc.

◆ write_violation()

virtual bool introvirt::MemAccessEvent::write_violation ( ) const
pure virtual

Returns true if the event was caused by a write attempt.

Returns
True if the fault was caused by a write
Examples
ivmemwatch.cc, and vmcall_interface.cc.

The documentation for this class was generated from the following file: