From f1bdac7e7dc1f569c6624da7901aa2607461e8d6 Mon Sep 17 00:00:00 2001 From: Brijesh Singh Date: Wed, 22 Apr 2020 13:36:01 -0500 Subject: Update README.md --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'README.md') 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 -- cgit v1.2.3-71-gd317