2019-04-18 08:31:45 +00:00
|
|
|
// Copyright 2018 The Chromium OS Authors. All rights reserved.
|
|
|
|
// Copyright © 2019 Intel Corporation
|
|
|
|
//
|
|
|
|
// Portions Copyright 2017 The Chromium OS Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
2019-05-08 10:22:53 +00:00
|
|
|
// found in the LICENSE-BSD-3-Clause file.
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 AND BSD-3-Clause
|
2019-05-21 17:39:11 +00:00
|
|
|
#![deny(missing_docs)]
|
2019-04-18 08:31:45 +00:00
|
|
|
|
|
|
|
//! Manages system resources that can be allocated to VMs and their devices.
|
|
|
|
|
|
|
|
mod address;
|
2019-07-11 09:48:14 +00:00
|
|
|
mod gsi;
|
2023-08-31 13:00:19 +00:00
|
|
|
/// page size related utility functions
|
2023-06-02 03:02:52 +00:00
|
|
|
pub mod page_size;
|
2019-04-18 08:31:45 +00:00
|
|
|
mod system;
|
|
|
|
|
|
|
|
pub use crate::address::AddressAllocator;
|
2020-06-09 04:04:40 +00:00
|
|
|
pub use crate::gsi::GsiAllocator;
|
|
|
|
#[cfg(target_arch = "x86_64")]
|
|
|
|
pub use crate::gsi::GsiApic;
|
2019-04-18 08:31:45 +00:00
|
|
|
pub use crate::system::SystemAllocator;
|