Functions | Variables
misc_no_hyper.cpp File Reference

Go to the source code of this file.

Functions

int write (int file, const void *buffer, size_t count)
 
int64_t start_vmm (uint64_t arg) noexcept
 
int64_t stop_vmm (uint64_t arg) noexcept
 

Variables

debug_ringdr = nullptr
 

Function Documentation

◆ write()

int write ( int  file,
const void *  buffer,
size_t  count 
)

Definition at line 32 of file misc_no_hyper.cpp.

◆ start_vmm()

int64_t start_vmm ( uint64_t  arg)
noexcept

Start VMM

This function starts the VMM. The driver entry uses the ELF loader to call this "C" function from the kernel. Prior to executing this function, a new stack is provided, and all exceptions are caught prior to completing. To start the VMM, this function calls the vcpu_manager's start function, which begins the processing of starting the vmm.

Precondition
expects: none
Postcondition
ensures: none
Parameters
argunused (likely will contain the cpu's core # in the future)
Returns
ENTRY_SUCCESS on success, ENTRY_ERROR_UNKNOWN otherwise.

Definition at line 56 of file misc_no_hyper.cpp.

◆ stop_vmm()

int64_t stop_vmm ( uint64_t  arg)
noexcept

Stop VMM

This function stops the VMM. The driver entry uses the ELF loader to call this "C" function from the kernel. Prior to executing this function, a new stack is provided, and all exceptions are caught prior to completing. To stop the VMM, this function calls the vcpu_manager's stop function, which begins the processing of stopping the vmm.

Precondition
expects: none
Postcondition
ensures: none
Parameters
argunused (likely will contain the cpu's core # in the future)
Returns
ENTRY_SUCCESS on success, ENTRY_ERROR_UNKNOWN otherwise.

Definition at line 67 of file misc_no_hyper.cpp.

Variable Documentation

◆ dr

debug_ring* dr = nullptr

Definition at line 29 of file misc_no_hyper.cpp.