{"id":3181,"date":"2023-09-30T15:07:41","date_gmt":"2023-09-30T22:07:41","guid":{"rendered":"https:\/\/rglinuxtech.com\/?p=3181"},"modified":"2023-09-30T15:07:41","modified_gmt":"2023-09-30T22:07:41","slug":"vmware-kernel-6-5-patch-now-in-default-patchset","status":"publish","type":"post","link":"https:\/\/rglinuxtech.com\/?p=3181","title":{"rendered":"VMware &#8211; Kernel 6.5 Patch now in Default Patchset."},"content":{"rendered":"<p>After much testing, over several weeks, the &#8216;<strong>get_user_pages<\/strong>&#8216; solution for Kernels 6.5 and later is now in the default patchset, at:<br \/>\n<a href=\"https:\/\/github.com\/mkubecek\/vmware-host-modules\/tree\/workstation-17.0.2\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/mkubecek\/vmware-host-modules\/tree\/workstation-17.0.2<\/a> .<\/p>\n<p>For more details, see the comments at the start of the patch code for the vmmon changes..\u00a0 <span class=\"css-truncate css-truncate-target d-block width-fit markdown-title\"><a class=\"Link--secondary\" title=\"vmmon: use get_user_pages to get page PFN As a side effect of mainline commit 0d940a9b270b (&quot;mm\/pgtable: allow pte_offset_map[_lock]() to fail&quot;) in 6.5-rc1, __pte_offset_map(), called by pte_offset_map(), is no longer exported. Based on an upstream IRC discussion and the hva_to_pfn_*() family of functions in KVM code, what PgtblVa2MPNLocked() does seems to be an incomplete and partial open coded logic of get_user_pages() and as it is only used to get PFN from a virtual address, it can be easily implemented using get_user_pages() family. Without knowledge what exactly are the PFNs used for in VMware, it is hard to guess the right flags, these seem to work and have been tested by multiple users over last few weeks. We could likely use get_user_pages() also on older kernels and it might be actually cleaner and more reliable as existing open coded implementation does not seem to handle some corner cases but without knowledge of VMware internals, it will be safer to stick to existing code where possible.\" href=\"https:\/\/github.com\/mkubecek\/vmware-host-modules\/commit\/29de7e2bd45d32e6983106d6f15810c70ba3e654\" data-pjax=\"true\">vmmon: use get_user_pages to get page PFN<\/a><\/span><\/p>\n<p><strong><em>Robert Gadsdon.\u00a0\u00a0 September 30th 2023<\/em><\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After much testing, over several weeks, the &#8216;get_user_pages&#8216; solution for Kernels 6.5 and later is now in the default patchset, at: https:\/\/github.com\/mkubecek\/vmware-host-modules\/tree\/workstation-17.0.2 . For more details, see the comments at the start of the patch code for the vmmon changes..\u00a0 vmmon: use get_user_pages to get page PFN Robert Gadsdon.\u00a0\u00a0 September 30th 2023. <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/rglinuxtech.com\/?p=3181\"><span class=\"more-msg\">Continue reading &rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1238,14,15,19,25],"tags":[2612,2613,2611,402],"class_list":["post-3181","post","type-post","status-publish","format-standard","hentry","category-fix","category-kernel","category-linux-2","category-opinion","category-vmware","tag-get_user_pages","tag-in-default-patchset","tag-patch-for-kernel-6-5","tag-vmware-2"],"_links":{"self":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/3181","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\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3181"}],"version-history":[{"count":2,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/3181\/revisions"}],"predecessor-version":[{"id":3183,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/3181\/revisions\/3183"}],"wp:attachment":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3181"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3181"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}