Skip to content

Commit

Permalink
platform/tdp: Implement setup_percpu*
Browse files Browse the repository at this point in the history
Right now there is nothing to be done for setup_percpu() and
setup_percpu_current(). Just return Ok() so they don't error out.

Signed-off-by: Peter Fang <[email protected]>
  • Loading branch information
peterfang committed Dec 13, 2024
1 parent 2b11722 commit 2b8adef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/src/platform/tdp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ impl SvsmPlatform for TdpPlatform {
}

fn setup_percpu(&self, _cpu: &PerCpu) -> Result<(), SvsmError> {
Err(TdxError::Unimplemented.into())
Ok(())
}

fn setup_percpu_current(&self, _cpu: &PerCpu) -> Result<(), SvsmError> {
Err(TdxError::Unimplemented.into())
Ok(())
}

fn get_page_encryption_masks(&self) -> PageEncryptionMasks {
Expand Down

0 comments on commit 2b8adef

Please sign in to comment.