aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorBrijesh Singh <brijesh.singh@amd.com>2020-04-22 13:36:01 -0500
committerGitHub <noreply@github.com>2020-04-22 13:36:01 -0500
commitf1bdac7e7dc1f569c6624da7901aa2607461e8d6 (patch)
treef40e9863d68e268b8b7df25e51b853d5602ad528 /README.md
parent9db0d1a6bbf6bb86431c7fe7f45bd1eb3fa5c3c2 (diff)
downloadcachepc-amdsev-f1bdac7e7dc1f569c6624da7901aa2607461e8d6.tar.gz
cachepc-amdsev-f1bdac7e7dc1f569c6624da7901aa2607461e8d6.zip
Update README.md
Diffstat (limited to 'README.md')
-rw-r--r--README.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/README.md b/README.md
index 1d82524..a4a9580 100644
--- a/README.md
+++ b/README.md
@@ -9,6 +9,13 @@ Follow the below steps to build and run the SEV-SNP guest. The step below are te
# sudo rpm -ivh kernel-*.rpm
# sudo cp kvm.conf /etc/modprobe.d/
````
+
+Edit /etc/defauts/grub to disable the THP, e.g something like this
+````
+GRUB_CMDLINE_LINUX= .... transparent_hugepage=never
+# grub2-mkconfig
+````
+
Reboot the host and choose SNP kernel from the grub menu.
Run the following command to verify that SNP is enabled in the host.
@@ -26,6 +33,10 @@ SVM: SNP: rmp setup completed!
1
# cat /sys/module/kvm_amd/parameters/sev_snp
1
+
+# cat /sys/kernel/mm/transparent_hugepage/enabled
+always madvise [never]
+
````
## Prepare Guest