Skip to main content

loader_defs/
uefi.rs

1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3
4//! Definitions for loading the MSVM UEFI firmware.
5
6use open_enum::open_enum;
7
8open_enum! {
9    /// SEC platform type passed by the loader to the firmware in `x2` at SEC
10    /// entry on aarch64. Mirrors `MSVM_SEC_PLATFORM_TYPE` in the mu_msvm
11    /// firmware (`MsvmPkg/Include/Ppi/SecPlatformType.h`).
12    pub enum SecPlatformType: u64 {
13        /// Hyper-V with Microsoft extensions.
14        HYPERV = 0,
15        /// Generic virtualization without Microsoft hypervisor extensions.
16        GENERIC = 1,
17    }
18}