blob: 102c51f1942e0f4b49da355a25d8a5256bda7450 [file] [log] [blame]
// Copyright 2021 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SRC_VIRTUALIZATION_BIN_VMM_MEMORY_H_
#define SRC_VIRTUALIZATION_BIN_VMM_MEMORY_H_
#include <fuchsia/virtualization/cpp/fidl.h>
#include <zircon/boot/image.h>
#include <vector>
#include "src/virtualization/bin/vmm/dev_mem.h"
#include "src/virtualization/bin/vmm/guest.h"
// Constructs an array of zbi_mem_range_t ranges describing the physical
// memory layout.
std::vector<zbi_mem_range_t> ZbiMemoryRanges(const DevMem& dev_mem,
const std::vector<GuestMemoryRegion>& guest_mem);
#endif // SRC_VIRTUALIZATION_BIN_VMM_MEMORY_H_