From c5d4707cd11a8ef281ad9eed0527f11b24ecf949 Mon Sep 17 00:00:00 2001 From: Ben Furner Date: Fri, 26 Jan 2024 11:52:12 -0700 Subject: [PATCH] Updating Documentation For Guest Policy Fields Description: - completing word in MIGRATE_MA to be allowed instead of a - adding the additional documentation descriptions for CXL_ALLOW, MEM_AES_256_XTS, RAPL_DIS, CIPHERTEXT_HIDING and Bit(s) 63:25 --- src/firmware/guest/types/snp.rs | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/src/firmware/guest/types/snp.rs b/src/firmware/guest/types/snp.rs index eb42a1f7..aa19ac42 100644 --- a/src/firmware/guest/types/snp.rs +++ b/src/firmware/guest/types/snp.rs @@ -399,15 +399,20 @@ bitfield! { /// the policy to the guest. The policy cannot be changed throughout the lifetime of the guest. The /// policy is also migrated with the guest and enforced by the destination platform firmware. /// - /// | Bit(s) | Name | Description > - /// |--------|---------------|---------------------------------------------------------------------------------------------------> - /// | 7:0 | ABI_MINOR | The minimum ABI minor version required for this guest to run. > - /// | 15:8 | ABI_MAJOR | The minimum ABI major version required for this guest to run. > - /// | 16 | SMT | 0: Host SMT usage is disallowed.
1: Host SMT usage is allowed. > - /// | 17 | - | Reserved. Must be one. > - /// | 18 | MIGRATE_MA | 0: Association with a migration agent is disallowed.
1: Association with a migration agent is a> - /// | 19 | DEBUG | 0: Debugging is disallowed.
1: Debugging is allowed. > - /// | 20 | SINGLE_SOCKET | 0: Guest can be activated on multiple sockets.
1: Guest can only be activated on one socket. > + /// | Bit(s) | Name | Description > + /// |--------|-------------------|--------------------------------------------------------------------------------------------------------------------> + /// | 7:0 | ABI_MINOR | The minimum ABI minor version required for this guest to run. > + /// | 15:8 | ABI_MAJOR | The minimum ABI major version required for this guest to run. > + /// | 16 | SMT | 0: Host SMT usage is disallowed.
1: Host SMT usage is allowed. > + /// | 17 | - | Reserved. Must be one. > + /// | 18 | MIGRATE_MA | 0: Association with a migration agent is disallowed.
1: Association with a migration agent is allowed > + /// | 19 | DEBUG | 0: Debugging is disallowed.
1: Debugging is allowed. > + /// | 20 | SINGLE_SOCKET | 0: Guest can be activated on multiple sockets.
1: Guest can only be activated on one socket. > + /// | 21 | CXL_ALLOW | 0: CXL cannot be populated with devices or memory.
1: CXL can be populated with devices or memory. > + /// | 22 | MEM_AES_256_XTS | 0: Allow either AES 128 XEX or AES 256 XTS for memory encryption.
1: Require AES 256 XTS for memory encryption. > + /// | 23 | RAPL_DIS | 0: Allow Running Average Power Limit (RAPL).
1: RAPL must be disabled. > + /// | 24 | CIPHERTEXT_HIDING | 0: Ciphertext hiding may be enabled or disabled.
1: Ciphertext hiding must be enabled. > + /// | 63:25 | - | Reserved. MBZ. > /// #[derive(Default, Clone, Copy)] #[derive(Deserialize, Serialize)]