firmware_uefi/platform/
nvram.rs

1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3
4//! Interfaces required to support UEFI nvram services.
5
6pub use uefi_nvram_storage::NextVariable;
7pub use uefi_nvram_storage::NvramStorage;
8pub use uefi_nvram_storage::NvramStorageError;
9pub use uefi_specs::uefi::time::EFI_TIME;
10
11/// Callbacks that enable nvram services to revoke VSM on ExitBootServices if
12/// requested by the guest.
13///
14/// This could be backed by different implementations on the host, such as in
15/// Underhill asking the host to revoke VSM via a hypercall.
16pub trait VsmConfig: Send {
17    fn revoke_guest_vsm(&self);
18}