Skip to content

Commit

Permalink
Merge pull request coconut-svsm#333 from msft-jlange/svme
Browse files Browse the repository at this point in the history
igvmbld: Do not include EFER.SVME for NATIVE platforms
  • Loading branch information
joergroedel authored Apr 29, 2024
2 parents fe45134 + 9bf0df6 commit 104ca72
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions igvmbuilder/src/vmsa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ pub fn construct_start_context() -> Box<IgvmNativeVpContextX64> {
context.data_limit = 0xffffffff;
context.data_selector = 0x10;

// EFER.SVME.
context.efer = 0x1000;

// CR0.PE | CR0.NE | CR0.ET.
context.cr0 = 0x31;

Expand Down Expand Up @@ -103,7 +100,9 @@ pub fn construct_vmsa(
vmsa.cr0 = context.cr0;
vmsa.cr3 = context.cr3;
vmsa.cr4 = context.cr4;
vmsa.efer = context.efer;

// Include EFER.SVME on SNP platforms.
vmsa.efer = context.efer | 0x1000;

// Configure non-zero reset state.
vmsa.pat = 0x0007040600070406;
Expand Down

0 comments on commit 104ca72

Please sign in to comment.