aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrijesh Singh <brijesh.singh@amd.com>2020-04-22 13:06:32 -0500
committerGitHub <noreply@github.com>2020-04-22 13:06:32 -0500
commit9db0d1a6bbf6bb86431c7fe7f45bd1eb3fa5c3c2 (patch)
tree0b84a796fbf28594d74d46faa26ab4d138fdddf6
parentbd60f07b99deb0ec675103c4383289334369a822 (diff)
downloadcachepc-amdsev-9db0d1a6bbf6bb86431c7fe7f45bd1eb3fa5c3c2.tar.gz
cachepc-amdsev-9db0d1a6bbf6bb86431c7fe7f45bd1eb3fa5c3c2.zip
Update Readme
-rw-r--r--README.md54
1 files changed, 54 insertions, 0 deletions
diff --git a/README.md b/README.md
index e69de29..1d82524 100644
--- a/README.md
+++ b/README.md
@@ -0,0 +1,54 @@
+Follow the below steps to build and run the SEV-SNP guest. The step below are tested on Fedora 31 host and guest.
+
+## Build and Install
+
+````
+# git clone https://github.com/AMDESE/AMDSEV.git
+# git checkout sev-snp-devel
+# ./build.sh
+# sudo rpm -ivh kernel-*.rpm
+# sudo cp kvm.conf /etc/modprobe.d/
+````
+Reboot the host and choose SNP kernel from the grub menu.
+
+Run the following command to verify that SNP is enabled in the host.
+
+````
+# dmesg | grep -i rmp
+SVM: SNP: RMP physical range 0x0000000098500000 - 0x00000000a89fffff
+SVM: SNP: RMP table 0xffffa07000000000+0x104fffff
+SVM: SNP: SYSCFG MEM_ENCRYPT: enabled SNP_EN: enabled VMPL_EN: enabled RMP_BASE: 0x98500000 RMP_END: 0xa89fffff
+SVM: SNP: rmp setup completed!
+
+# cat /sys/module/kvm_amd/parameters/sev
+1
+# cat /sys/module/kvm_amd/parameters/sev_es
+1
+# cat /sys/module/kvm_amd/parameters/sev_snp
+1
+````
+
+## Prepare Guest
+
+Boot up the FC31 guest and install the kernel package built in the previous step.
+
+## Launch SNP Guest
+
+To launch the SNP guest use the launch-qemu.sh script provided in this repository
+
+````
+# ./launch-qemu.sh -hda <your_qcow2_file> -sev-snp
+````
+
+To launch SNP disabled guest, simply remove the "-sev-snp" from the above command line.
+
+Once the guest is booted, run the following command inside the guest VM to verify that SNP is enabled:
+
+````
+$ dmesg | grep -i snp
+AMD Secure Nested Paging (SEV-SNP) active
+````
+
+## Reference
+
+https://developer.amd.com/sev/