{"id":1914,"date":"2017-01-31T10:16:43","date_gmt":"2017-01-31T10:16:43","guid":{"rendered":"http:\/\/rglinuxtech.com\/?p=1914"},"modified":"2017-01-31T10:16:43","modified_gmt":"2017-01-31T10:16:43","slug":"vmware-updated-vmnet-patch-for-kernel-4-94-10","status":"publish","type":"post","link":"https:\/\/rglinuxtech.com\/?p=1914","title":{"rendered":"VMware &#8211; Updated vmnet Patch for Kernel 4.9\/4.10.."},"content":{"rendered":"<p>Thanks to <strong>Mikkel Kroman<\/strong>, there is a more complete patch for VMware 12.5.2\u00a0 <strong>vmnet<\/strong> on Kernel 4.9.x and 4.10-rc&#8217;s:<\/p>\n<p>The change is to the <em>get_user_pages<\/em> parameter list, to now include the FOLL_WRITE parameter, and is as follows:<\/p>\n<p>In <strong>vmnet-only\/userif.c<\/strong>, around line 113, change<\/p>\n<pre><strong>#if LINUX_VERSION_CODE &gt;= KERNEL_VERSION(4, 6, 0)<\/strong>\r\n<strong>    retval = get_user_pages(addr, 1, 1, 0, &amp;page, NULL);<\/strong>\r\n<strong>#else<\/strong>\r\n<strong>    retval = get_user_pages(current, current-&gt;mm, addr,<\/strong>\r\n<strong>                1, 1, 0, &amp;page, NULL);<\/strong>\r\n<strong>#endif<\/strong><\/pre>\n<p>to<\/p>\n<pre><strong>#if LINUX_VERSION_CODE &gt;= KERNEL_VERSION(4, 9, 0)<\/strong>\r\n<strong>     retval = get_user_pages(addr, 1, FOLL_WRITE, &amp;page, NULL);<\/strong>\r\n<strong>#else<\/strong>\r\n<strong>#if LINUX_VERSION_CODE &gt;= KERNEL_VERSION(4, 6, 0)<\/strong>\r\n<strong>     retval = get_user_pages(addr, 1, 1, 0, &amp;page, NULL);<\/strong>\r\n<strong>#else<\/strong>\r\n<strong>     retval = get_user_pages(current, current-&gt;mm, addr,<\/strong>\r\n<strong>                 1, 1, 0, &amp;page, NULL);<\/strong>\r\n<strong>#endif<\/strong>\r\n<strong>#endif<\/strong><\/pre>\n<p>VMware had been working OK on my system with the original version of the patch, and I have applied this new version of the patch, and it all works correctly..<\/p>\n<p><em>Robert Gadsdon.\u00a0\u00a0 January 31, 2017.<\/em><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Thanks to Mikkel Kroman, there is a more complete patch for VMware 12.5.2\u00a0 vmnet on Kernel 4.9.x and 4.10-rc&#8217;s: The change is to the get_user_pages parameter list, to now include the FOLL_WRITE parameter, and is as follows: In vmnet-only\/userif.c, around line 113, change #if LINUX_VERSION_CODE &gt;= KERNEL_VERSION(4, 6, 0) retval = get_user_pages(addr, 1, 1, 0, &amp;page, NULL); <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/rglinuxtech.com\/?p=1914\"><span class=\"more-msg\">Continue reading &rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[5,1238,11,14,15,1533,25],"tags":[1540,1541,1543,1542,1175,402],"class_list":["post-1914","post","type-post","status-publish","format-standard","hentry","category-compilation","category-fix","category-hacks","category-kernel","category-linux-2","category-patches","category-vmware","tag-12-5-2","tag-improved-vmnet-patch","tag-kernel-4-10-rc","tag-kernel-4-9-x","tag-success","tag-vmware-2"],"_links":{"self":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1914","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1914"}],"version-history":[{"count":1,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1914\/revisions"}],"predecessor-version":[{"id":1915,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1914\/revisions\/1915"}],"wp:attachment":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1914"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1914"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1914"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}