public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Evan Teran" <evan.teran@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/vmware:master commit in: app-emulation/vmware-modules/, app-emulation/vmware-modules/files/
Date: Mon, 12 Dec 2016 21:19:56 +0000 (UTC)	[thread overview]
Message-ID: <1481566795.44fda826a47e67573d69290ea616e6da210e9849.eteran@gentoo> (raw)

commit:     44fda826a47e67573d69290ea616e6da210e9849
Author:     Joshua Baergen <joshua.baergen <AT> emc <DOT> com>
AuthorDate: Mon Dec 12 18:11:23 2016 +0000
Commit:     Evan Teran <evan.teran <AT> gmail <DOT> com>
CommitDate: Mon Dec 12 18:19:55 2016 +0000
URL:        https://gitweb.gentoo.org/proj/vmware.git/commit/?id=44fda826

app-emulation/vmware-modules: add support for kernel 4.9

4.9 introduced a change to the get_user_pages() API:
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=768ae309a96103ed02eb1e111e838c87854d8b51

 .../files/308-4.09-00-user-pages.patch             | 77 ++++++++++++++++++++++
 .../vmware-modules/vmware-modules-308.1.1.ebuild   |  1 +
 2 files changed, 78 insertions(+)

diff --git a/app-emulation/vmware-modules/files/308-4.09-00-user-pages.patch b/app-emulation/vmware-modules/files/308-4.09-00-user-pages.patch
new file mode 100644
index 0000000..73c6c9f
--- /dev/null
+++ b/app-emulation/vmware-modules/files/308-4.09-00-user-pages.patch
@@ -0,0 +1,77 @@
+--- vmmon-only/linux/hostif.c	2016-12-12 09:17:44.438182532 -0700
++++ vmmon-only/linux/hostif.c	2016-12-12 09:19:24.066254301 -0700
+@@ -1172,7 +1172,11 @@
+ #else
+    retval = get_user_pages(current, current->mm, (unsigned long)uvAddr,
+ #endif
+-                           numPages, 0, 0, ppages, NULL);
++                           numPages, 0,
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 9, 0)
++                           0,
++#endif
++			   ppages, NULL);
+    up_read(&current->mm->mmap_sem);
+ 
+    return retval != numPages;
+--- vmnet-only/userif.c     2016-12-12 09:27:12.445246854 -0700
++++ vmnet-only/userif.c 2016-12-12 09:27:30.654298646 -0700
+@@ -118,7 +118,13 @@
+ #else
+    retval = get_user_pages(current, current->mm, addr,
+ #endif
+-			   1, 1, 0, &page, NULL);
++                          1,
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 9, 0)
++                          1, 0,
++#else
++                          FOLL_WRITE,
++#endif
++                          &page, NULL);
+    up_read(&current->mm->mmap_sem);
+ 
+    if (retval != 1) {
+--- vmci-only/linux/driver.c        2016-12-12 09:38:13.076847013 -0700
++++ vmci-only/linux/driver.c    2016-12-12 09:38:45.638087445 -0700
+@@ -1473,7 +1473,13 @@
+ #else
+    retval = get_user_pages(current, current->mm, addr,
+ #endif
+-                           1, 1, 0, &page, NULL);
++                          1,
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 9, 0)
++                          1, 0,
++#else
++                          FOLL_WRITE,
++#endif
++                          &page, NULL);
+    up_read(&current->mm->mmap_sem);
+ 
+    if (retval != 1) {
+--- vmci-only/linux/vmciKernelIf.c  2016-12-12 09:38:20.678904322 -0700
++++ vmci-only/linux/vmciKernelIf.c      2016-12-12 09:39:59.129587451 -0700
+@@ -2061,7 +2061,11 @@
+                            (VA)produceUVA,
+ #endif
+                            produceQ->kernelIf->numPages,
+-                           1, 0,
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 9, 0)
++                          1, 0,
++#else
++                          FOLL_WRITE,
++#endif
+                            produceQ->kernelIf->u.h.headerPage,
+                            NULL);
+    if (retval < produceQ->kernelIf->numPages) {
+@@ -2079,7 +2083,11 @@
+                            (VA)consumeUVA,
+ #endif
+                            consumeQ->kernelIf->numPages,
+-                           1, 0,
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 9, 0)
++                          1, 0,
++#else
++                          FOLL_WRITE,
++#endif
+                            consumeQ->kernelIf->u.h.headerPage,
+                            NULL);
+    if (retval < consumeQ->kernelIf->numPages) {

diff --git a/app-emulation/vmware-modules/vmware-modules-308.1.1.ebuild b/app-emulation/vmware-modules/vmware-modules-308.1.1.ebuild
index b3faaaf..bb9db4f 100644
--- a/app-emulation/vmware-modules/vmware-modules-308.1.1.ebuild
+++ b/app-emulation/vmware-modules/vmware-modules-308.1.1.ebuild
@@ -105,6 +105,7 @@ src_prepare() {
 	kernel_is ge 4 7 0 && epatch "${FILESDIR}/${PV_MAJOR}-4.07-00-trans_start.patch"
 	kernel_is ge 4 7 0 && epatch "${FILESDIR}/${PV_MAJOR}-4.07-01-readlink_copy.patch"
 	kernel_is ge 4 8 0 && epatch "${FILESDIR}/${PV_MAJOR}-4.08-00-nr_anon_mapped.patch"
+	kernel_is ge 4 9 0 && epatch "${FILESDIR}/${PV_MAJOR}-4.09-00-user-pages.patch"
 
 	# Allow user patches so they can support RC kernels and whatever else
 	epatch_user


             reply	other threads:[~2016-12-13  1:06 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-12 21:19 Evan Teran [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-04-07 15:00 [gentoo-commits] proj/vmware:master commit in: app-emulation/vmware-modules/, app-emulation/vmware-modules/files/ Fabio Rossi
2017-08-21 17:07 Evan Teran
2017-05-23 23:26 Fabio Rossi
2017-05-23 23:26 Fabio Rossi
2017-04-05 14:49 Evan Teran
2016-08-17 12:38 Fabio Rossi
2016-05-19 18:18 Fabio Rossi
2016-03-17  2:26 Evan Teran
2015-09-19 19:08 Andreas Hüttel
2015-07-11  4:21 Evan Teran
2015-05-07  1:55 Evan Teran
2015-05-05 16:59 Evan Teran
2014-10-11 15:52 Evan Teran
2014-10-11 15:52 Evan Teran
2014-10-11 15:52 Evan Teran
2014-10-10 13:55 Evan Teran
2014-10-10 13:55 Evan Teran
2013-06-23 13:14 Andreas Hüttel
2012-12-16 13:27 Vadim Kuznetsov
2012-11-17 11:58 Vadim Kuznetsov
2012-05-24 17:32 Vadim Kuznetsov
2012-05-22 13:29 Vadim Kuznetsov
2012-03-26 19:48 Vadim Kuznetsov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1481566795.44fda826a47e67573d69290ea616e6da210e9849.eteran@gentoo \
    --to=evan.teran@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox