aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71-e3000/0074-SEV-error-too-few-arguments-to-function-release_page.patch
diff options
context:
space:
mode:
authorArsalan H. Awan <Arsalan_Awan@mentor.com>2019-08-28 17:05:34 +0500
committerArsalan H. Awan <Arsalan_Awan@mentor.com>2019-08-28 19:48:01 +0500
commit1e89ba7630773ff3ddc3c4162775ae658b360134 (patch)
tree816db9e6b2595144e90daf96dc1a0328906f3119 /meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71-e3000/0074-SEV-error-too-few-arguments-to-function-release_page.patch
parent172d340807eb5f6b1a218355a227f2c5220d5387 (diff)
downloadmeta-amd-1e89ba7630773ff3ddc3c4162775ae658b360134.tar.gz
meta-amd-1e89ba7630773ff3ddc3c4162775ae658b360134.tar.bz2
meta-amd-1e89ba7630773ff3ddc3c4162775ae658b360134.zip
meta-amd-bsp: move linux-yocto* recipes here from r1000, v1000 & e3000
Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71-e3000/0074-SEV-error-too-few-arguments-to-function-release_page.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71-e3000/0074-SEV-error-too-few-arguments-to-function-release_page.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71-e3000/0074-SEV-error-too-few-arguments-to-function-release_page.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71-e3000/0074-SEV-error-too-few-arguments-to-function-release_page.patch
new file mode 100644
index 00000000..3f1787b1
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71-e3000/0074-SEV-error-too-few-arguments-to-function-release_page.patch
@@ -0,0 +1,39 @@
+From 8e2188a2d2a2d01b1f5e7ad9052e8fc91f7080a7 Mon Sep 17 00:00:00 2001
+From: Sudheesh Mavila <sudheesh.mavila@amd.com>
+Date: Tue, 14 Aug 2018 22:35:18 +0530
+Subject: [PATCH 74/95] =?UTF-8?q?SEV=20error:=20too=20few=20arguments=20to?=
+ =?UTF-8?q?=20function=20=E2=80=98release=5Fpages=E2=80=99=20is=20fixed?=
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Sudheesh Mavila <sudheesh.mavila@amd.com>
+---
+ arch/x86/kvm/svm.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
+index 6e9ddde..bdc08e2 100755
+--- a/arch/x86/kvm/svm.c
++++ b/arch/x86/kvm/svm.c
+@@ -1657,7 +1657,7 @@ static struct page **sev_pin_memory(struct kvm *kvm, unsigned long uaddr,
+
+ err:
+ if (npinned > 0)
+- release_pages(pages, npinned);
++ release_pages(pages, npinned, 0);
+
+ kvfree(pages);
+ return NULL;
+@@ -1668,7 +1668,7 @@ static void sev_unpin_memory(struct kvm *kvm, struct page **pages,
+ {
+ struct kvm_sev_info *sev = &kvm->arch.sev_info;
+
+- release_pages(pages, npages);
++ release_pages(pages, npages, 0);
+ kvfree(pages);
+ sev->pages_locked -= npages;
+ }
+--
+2.7.4
+