Skip to content

Commit

Permalink
README.md: New commands for snp status check on the host/guest
Browse files Browse the repository at this point in the history
Added new commands to read the dedicated host cpuid/guest msr to verify if SNP is on and supported on the host/guest

Signed-off-by: Harika <[email protected]>
  • Loading branch information
LakshmiSaiHarika committed Sep 28, 2024
1 parent 5c01268 commit 4ff4dcd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/snp.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ wget https://github.com/amd/sev-utils/raw/main/tools/snp.sh
chmod +x snp.sh
```

Read the dedicated host cpuid Fn8000_001F[EAX] instruction set to verify if the SNP is on and supported on the host:
```
./snp.sh check-host-snp-cpuid
```


Setup the host by building SNP patched versions of qemu, ovmf and the linux kernel:
```
./snp.sh setup-host
Expand Down Expand Up @@ -82,6 +88,10 @@ The `--non-upm` option can be specified with the above command if a non-upm vers
of the kernel is desired. The `setup-host` command must be run with this same option
if launching the guest with a non-upm kernel.

Read the dedicated guest MSR to determine if SNP is on and supported on the launched guest:
```
./snp.sh check-guest-snp-msr
```
Attest the guest using the following command:
```
./snp.sh attest-guest
Expand Down

0 comments on commit 4ff4dcd

Please sign in to comment.