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

The GuestMemoryManager manages all guest memory for virtual machines.

The GuestMemoryManager fulfills several different responsibilities.

  • First, it manages different types of guest memory, such as normal guest memory, virtio-fs DAX window and virtio-pmem DAX window etc. Different clients may want to access different types of memory. So the manager maintains two GuestMemory objects, one contains all guest memory, the other contains only normal guest memory.
  • Second, it coordinates memory/DAX window hotplug events, so clients may register hooks to receive hotplug notifications.

Implementations

Create a new instance of GuestMemoryManager.

Get a reference to the normal GuestMemory object.

Try to downcast the GuestAddressSpace object to a GuestMemoryManager object.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
The type that will be used to access guest memory.
A type that provides access to the memory.
Return an object (e.g. a reference or guard) that can be used to access memory through this address space. The object provides a consistent snapshot of the memory map. Read more

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.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.