class DevMem

Defined at line 16 of file ../../src/virtualization/bin/vmm/dev_mem.h

Public Methods

bool AddRange (zx_gpaddr_t addr, size_t size)

Defined at line 28 of file ../../src/virtualization/bin/vmm/dev_mem.h

bool HasGuestMemoryOverlap (const std::vector<GuestMemoryRegion> & guest_memory_regions)

Defined at line 42 of file ../../src/virtualization/bin/vmm/dev_mem.h

void Finalize ()

Called to prevent adding additional device memory ranges. This allows the Guest to validate

that there is no overlap between guest memory and device memory before starting the VM.

Defined at line 67 of file ../../src/virtualization/bin/vmm/dev_mem.h

const RangeSet::const_iterator begin ()

Defined at line 69 of file ../../src/virtualization/bin/vmm/dev_mem.h

const RangeSet::const_iterator end ()

Defined at line 70 of file ../../src/virtualization/bin/vmm/dev_mem.h

template <typename F>
void YieldInverseRange (zx_gpaddr_t base, size_t size, F yield)

Generates, by calling the provided functor, all Ranges that are in the

provided range, that do not overlap with any internal ranges. This means

the generated set is precisely the inverse of our contained ranges, unioned

with the provided range.

Defined at line 77 of file ../../src/virtualization/bin/vmm/dev_mem.h

Records