Skip to content

Commit

Permalink
Added missing capability to allow for promote to tvm calls
Browse files Browse the repository at this point in the history
Signed-off-by: Wojciech Ozga <woz@zurich.ibm.com>
  • Loading branch information
wojciechozga committed Sep 5, 2024
1 parent 21b1351 commit c1cacfa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ impl TsmInfo {
pub const COVE_TSM_STATE_LOADED: u32 = 1;
pub const COVE_TSM_STATE_READY: u32 = 2;
pub const COVE_TSM_IMPL_ACE: u32 = 2;
pub const COVE_TSM_CAP_PROMOTE_TVM: u64 = 1 << 0;
pub const COVE_TSM_CAP_ATTESTATION_LOCAL_MASK: u64 = 1 << 1;
pub const COVE_TSM_CAP_ATTESTATION_REMOTE_MASK: u64 = 1 << 2;
pub const COVE_TSM_CAP_AIA_MASK: u64 = 1 << 3;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl GetSecurityMonitorInfo {
tsm_state: TsmInfo::COVE_TSM_STATE_READY,
tsm_impl_id: TsmInfo::COVE_TSM_IMPL_ACE,
tsm_version: self.get_version(),
tsm_capabilities: TsmInfo::COVE_TSM_CAP_ATTESTATION_LOCAL_MASK,
tsm_capabilities: TsmInfo::COVE_TSM_CAP_PROMOTE_TVM | TsmInfo::COVE_TSM_CAP_ATTESTATION_LOCAL_MASK,
state_pages: 0,
max_vcpus: u64::try_from(ConfidentialVm::MAX_NUMBER_OF_HARTS_PER_VM).unwrap_or(0),
vcpu_state_pages: 0,
Expand Down

0 comments on commit c1cacfa

Please sign in to comment.