pub struct EnarxAllocator { /* private fields */ }
Expand description

The allocator

The allocator struct is holding a linked list Heap allocator and information about the hypervisor’s capabilities to extend the available memory.

It also implements:

  • paging::FrameAllocator
  • paging::FrameAllocator

Implementations

Allocate memory and map it to the given virtual address

Map physical memory to the given virtual address

FIXME: change PhysAddr to ShimPhysAddr to ensure encrypted memory

FIXME: unmap

Allocate memory by Layout

Deallocate memory

Safety

Unsafe, because the caller has to ensure to not use any references left.

returns the amount of free memory

Trait Implementations

Formats the value using the given formatter. Read more

Allocate a frame of the appropriate size and return it if possible.

Allocate a frame of the appropriate size and return it if possible.

Allocate a frame of the appropriate size and return it if possible.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.