Skip to content

Commit

Permalink
Enable restricted injection when running from IGVM
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Lange <jlange@microsoft.com>
  • Loading branch information
msft-jlange committed Jan 2, 2024
1 parent 1f06992 commit c519e39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion igvmbld/igvmbld.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ void generate_initial_vmsa(SEV_VMSA *vmsa)
vmsa->rip = 0x10000;
vmsa->rsp = vmsa->rip - sizeof(Stage2Stack);

vmsa->sev_features = SevFeature_Snp;
vmsa->sev_features = SevFeature_Snp | SevFeature_RestrictInj;
}

void setup_igvm_platform_header(void)
Expand Down
1 change: 1 addition & 0 deletions igvmbld/sev-snp.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,4 @@ enum {
};

#define SevFeature_Snp 0x0001
#define SevFeature_RestrictInj 0x0008

0 comments on commit c519e39

Please sign in to comment.