1 // Copyright 2018 The Chromium OS Authors. All rights reserved. 2 // Copyright © 2019 Intel Corporation 3 // 4 // Portions Copyright 2017 The Chromium OS Authors. All rights reserved. 5 // Use of this source code is governed by a BSD-style license that can be 6 // found in the LICENSE-BSD-3-Clause file. 7 // 8 // SPDX-License-Identifier: Apache-2.0 AND BSD-3-Clause 9 #![deny(missing_docs)] 10 11 //! Manages system resources that can be allocated to VMs and their devices. 12 13 mod address; 14 mod gsi; 15 /// page size related utility functions 16 pub mod page_size; 17 mod system; 18 19 pub use crate::address::AddressAllocator; 20 pub use crate::gsi::GsiAllocator; 21 #[cfg(target_arch = "x86_64")] 22 pub use crate::gsi::GsiApic; 23 pub use crate::system::SystemAllocator; 24