MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / extract_sev_features

Function extract_sev_features

vmm/src/igvm/igvm_loader.rs:254–263  ·  view source on GitHub ↗
(igvm_file: &IgvmFile)

Source from the content-addressed store, hash-verified

252///
253#[cfg(feature = "sev_snp")]
254pub fn extract_sev_features(igvm_file: &IgvmFile) -> u64 {
255 for header in igvm_file.directives() {
256 if let IgvmDirectiveHeader::SnpVpContext { vp_index, vmsa, .. } = header
257 && *vp_index == 0
258 {
259 return vmsa.sev_features.into();
260 }
261 }
262 0
263}
264
265///
266/// Load the given IGVM file to guest memory.

Callers 1

newMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected