{"id":1279,"date":"2015-01-23T07:23:09","date_gmt":"2015-01-23T07:23:09","guid":{"rendered":"http:\/\/rglinuxtech.com\/?p=1279"},"modified":"2015-01-23T07:23:09","modified_gmt":"2015-01-23T07:23:09","slug":"vmware-11-fix-for-vmnet-and-kernel-3-19","status":"publish","type":"post","link":"https:\/\/rglinuxtech.com\/?p=1279","title":{"rendered":"VMware 11 &#8211; Fix for vmnet and Kernel 3.19.."},"content":{"rendered":"<p>Thanks to Al Viro, and to <strong><em>coderus<\/em><\/strong> on the VMware forum, we now have a solution for vmnet and Kernel 3.19, as follows:<\/p>\n<p>In vmnet-only\/<strong>driver.c <\/strong>(lines 269, 1194, and 1195):<\/p>\n<pre>Replace instances of <strong>f_dentry<\/strong> with <strong>f_path.dentry<\/strong><\/pre>\n<p>In vmnet-only\/<strong>userif.c <\/strong>(line 526):<\/p>\n<pre>Replace \r\n\u00a0\u00a0 <strong>return skb_copy_datagram_iovec(skb, 0, &amp;iov, len);<\/strong>\r\nwith\r\n\u00a0\u00a0 <strong>struct iov_iter to;<\/strong>\r\n<strong>\u00a0\u00a0 iov_iter_init(&amp;to, READ, &amp;iov, 1, len);<\/strong>\r\n<strong>\u00a0\u00a0 return skb_copy_datagram_iter(skb, 0, &amp;to, len);<\/strong><\/pre>\n<p>The VMware forum thread can be found here: <a title=\"https:\/\/communities.vmware.com\/message\/2469395\" href=\"https:\/\/communities.vmware.com\/message\/2469395\" target=\"_blank\">https:\/\/communities.vmware.com\/message\/2469395<\/a><\/p>\n<p>I have made these changes on my test system with Kernel <strong>3.19-rc5<\/strong>, and VMware 11.0 (including vmnet) now compiles and loads\/runs OK..<\/p>\n<p>Note that for a <span style=\"text-decoration: underline;\">complete<\/span> solution, backward compatible with kernels prior to 3.19, then <em>if\/then\/else<\/em> tests for kernel version, and including the &#8216;old&#8217; <span style=\"text-decoration: underline;\">or<\/span> &#8216;new&#8217; code, will have to be added..<\/p>\n<p><em>Robert Gadsdon.\u00a0\u00a0\u00a0 January 22, 2015.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Thanks to Al Viro, and to coderus on the VMware forum, we now have a solution for vmnet and Kernel 3.19, as follows: In vmnet-only\/driver.c (lines 269, 1194, and 1195): Replace instances of f_dentry with f_path.dentry In vmnet-only\/userif.c (line 526): Replace \u00a0\u00a0 return skb_copy_datagram_iovec(skb, 0, &amp;iov, len); with \u00a0\u00a0 struct iov_iter to; \u00a0\u00a0 iov_iter_init(&amp;to, READ, &amp;iov, 1, <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/rglinuxtech.com\/?p=1279\"><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,6,11,14,15,25],"tags":[988,986,1175,989,987,961],"class_list":["post-1279","post","type-post","status-publish","format-standard","hentry","category-compilation","category-crash-and-burn","category-hacks","category-kernel","category-linux-2","category-vmware","tag-driver-c","tag-kernel-3-19","tag-success","tag-userif-c","tag-vmnet-fix","tag-vmware-11-0"],"_links":{"self":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1279","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=1279"}],"version-history":[{"count":1,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1279\/revisions"}],"predecessor-version":[{"id":1280,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1279\/revisions\/1280"}],"wp:attachment":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1279"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1279"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1279"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}