<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: vmware-specific-specific 5.5.x and kernel 2.6.31</title>
	<atom:link href="http://www.insecure.ws/2009/09/11/vmware-specific-specific-5-5-x-and-kernel-2-6-31/feed" rel="self" type="application/rss+xml" />
	<link>http://www.insecure.ws/2009/09/11/vmware-specific-specific-5-5-x-and-kernel-2-6-31</link>
	<description></description>
	<lastBuildDate>Wed, 25 Aug 2010 08:27:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Technologists Notes &#187; Blog Archive &#187; Virtual satisfaction with VMware Server and kernel 2.6.31</title>
		<link>http://www.insecure.ws/2009/09/11/vmware-specific-specific-5-5-x-and-kernel-2-6-31/comment-page-1#comment-1022</link>
		<dc:creator>Technologists Notes &#187; Blog Archive &#187; Virtual satisfaction with VMware Server and kernel 2.6.31</dc:creator>
		<pubDate>Fri, 16 Apr 2010 01:39:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.insecure.ws/?p=170#comment-1022</guid>
		<description>[...] How to install VMware Server on Ubuntu. Though not of direct help, it did link to Kang&#8217;s vmware-specific-specific 5.5.x and kernel 2.6.31. I&#8217;d seen and used some of Kang&#8217;s VMware Server patches before, but the comments on [...]</description>
		<content:encoded><![CDATA[<p>[...] How to install VMware Server on Ubuntu. Though not of direct help, it did link to Kang&#8217;s vmware-specific-specific 5.5.x and kernel 2.6.31. I&#8217;d seen and used some of Kang&#8217;s VMware Server patches before, but the comments on [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 在ubuntu9.10 beta上安装vmware Server &#171; 丁冬日志！</title>
		<link>http://www.insecure.ws/2009/09/11/vmware-specific-specific-5-5-x-and-kernel-2-6-31/comment-page-1#comment-1011</link>
		<dc:creator>在ubuntu9.10 beta上安装vmware Server &#171; 丁冬日志！</dc:creator>
		<pubDate>Tue, 06 Apr 2010 08:30:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.insecure.ws/?p=170#comment-1011</guid>
		<description>[...] to build the vmmon module. 我的内核版本是2.6.31，可以到这里下载vmware-update-2.6.31-5.5.9.tar.bz2。 运行其中的runme.pl，运行的时候又报错了： insmod: error inserting [...]</description>
		<content:encoded><![CDATA[<p>[...] to build the vmmon module. 我的内核版本是2.6.31，可以到这里下载vmware-update-2.6.31-5.5.9.tar.bz2。 运行其中的runme.pl，运行的时候又报错了： insmod: error inserting [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel Lechuga</title>
		<link>http://www.insecure.ws/2009/09/11/vmware-specific-specific-5-5-x-and-kernel-2-6-31/comment-page-1#comment-941</link>
		<dc:creator>Joel Lechuga</dc:creator>
		<pubDate>Thu, 25 Feb 2010 23:21:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.insecure.ws/?p=170#comment-941</guid>
		<description>Finally working!!! on:

 openSuSE 11.2 x64 with kernel 2.6.31.12-0.1-desktop (fresh updated) and
 openSuSE 11.2 x32 with kernel 2.6.31.12-0.1-default (fresh updated)

Thanks to Kang suggestions and work, i made a little modifications to the second file that Kang shows, 
with this (has Kang says) no needed to recompile kernel


diff -Naur vmware-update-2.6.31-5.5.9/vmmon-only/linux/hostif.c vmware-update-2.6.31-5.5.9-ok/vmmon-only/linux/hostif.c 
--- vmware-update-2.6.31-5.5.9/vmmon-only/linux/hostif.c        2009-04-21 08:47:54.000000000 -0600
+++ vmware-update-2.6.31-5.5.9-ok/vmmon-only/linux/hostif.c     2010-02-16 11:44:20.000000000 -0700
@@ -564,16 +564,10 @@
 static void
 DoClearNXBit(VA vaddr)
 {
-   int ptemap;
-   pgd_t *pgd = pgd_offset_k(vaddr);
-   pmd_t *pmd = pmd_offset_map(pgd, vaddr);
-   pte_t *pte;
-
-   if ((ptemap = pmd_val(*pmd) &amp; _PAGE_PSE) != 0) {
-      pte = (pte_t*)pmd;
-   } else {
-      pte = pte_offset_map(pmd, vaddr);
-   }
+#if LINUX_VERSION_CODE = 2.6.25
+ int level;
+ pte_t *pte = lookup_address(vaddr &amp; PAGE_MASK, &amp;level);
+#endif /* linux version */
    if (pte_val(*pte) &amp; _PAGE_NX) {
       /* pte_val() is not lvalue on x86 PAE */
 #ifdef CONFIG_X86_PAE</description>
		<content:encoded><![CDATA[<p>Finally working!!! on:</p>
<p> openSuSE 11.2 x64 with kernel 2.6.31.12-0.1-desktop (fresh updated) and<br />
 openSuSE 11.2 x32 with kernel 2.6.31.12-0.1-default (fresh updated)</p>
<p>Thanks to Kang suggestions and work, i made a little modifications to the second file that Kang shows,<br />
with this (has Kang says) no needed to recompile kernel</p>
<p>diff -Naur vmware-update-2.6.31-5.5.9/vmmon-only/linux/hostif.c vmware-update-2.6.31-5.5.9-ok/vmmon-only/linux/hostif.c<br />
&#8212; vmware-update-2.6.31-5.5.9/vmmon-only/linux/hostif.c        2009-04-21 08:47:54.000000000 -0600<br />
+++ vmware-update-2.6.31-5.5.9-ok/vmmon-only/linux/hostif.c     2010-02-16 11:44:20.000000000 -0700<br />
@@ -564,16 +564,10 @@<br />
 static void<br />
 DoClearNXBit(VA vaddr)<br />
 {<br />
-   int ptemap;<br />
-   pgd_t *pgd = pgd_offset_k(vaddr);<br />
-   pmd_t *pmd = pmd_offset_map(pgd, vaddr);<br />
-   pte_t *pte;<br />
-<br />
-   if ((ptemap = pmd_val(*pmd) &amp; _PAGE_PSE) != 0) {<br />
-      pte = (pte_t*)pmd;<br />
-   } else {<br />
-      pte = pte_offset_map(pmd, vaddr);<br />
-   }<br />
+#if LINUX_VERSION_CODE = 2.6.25<br />
+ int level;<br />
+ pte_t *pte = lookup_address(vaddr &amp; PAGE_MASK, &amp;level);<br />
+#endif /* linux version */<br />
    if (pte_val(*pte) &amp; _PAGE_NX) {<br />
       /* pte_val() is not lvalue on x86 PAE */<br />
 #ifdef CONFIG_X86_PAE</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel Lechuga</title>
		<link>http://www.insecure.ws/2009/09/11/vmware-specific-specific-5-5-x-and-kernel-2-6-31/comment-page-1#comment-929</link>
		<dc:creator>Joel Lechuga</dc:creator>
		<pubDate>Thu, 11 Feb 2010 21:02:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.insecure.ws/?p=170#comment-929</guid>
		<description>Hi, 
I applied the patch to the files you mention here(run vmware.install.pl, then ./runme.pl on update directory and then vmware-config.pl), but it abort after asking about the bridged interface (i have 2 ), this is just the final  lines:

tmp/vmware-config2/vmnet-only/vm_atomic.h:1608:7: warning: &quot;_MSC_VER&quot; is not defined
/tmp/vmware-config2/vmnet-only/vm_atomic.h:1741:7: warning: &quot;_MSC_VER&quot; is not defined
{standard input}: Assembler messages:
{standard input}:6426: Error: can&#039;t resolve `.LVL257&#039; {*UND* section} - `.Ltext0&#039; {.text section}
make[4]: *** [/tmp/vmware-config2/vmnet-only/driver.o] Error 1
make[3]: *** [_module_/tmp/vmware-config2/vmnet-only] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: se sale del directorio `/usr/src/linux-2.6.31.12-0.1-obj/x86_64/desktop&#039;
make: *** [vmnet.ko] Error 2
make: se sale del directorio `/tmp/vmware-config2/vmnet-only&#039;
Unable to build the vmnet module.

For more information on how to troubleshoot module-related problems, please
visit our Web site at &quot;http://www.vmware.com/download/modules/modules.html&quot; and
&quot;http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html&quot;.

Execution aborted.

i have opensSuSE 11.2 with kernel 2.6.31.12-0.1-desktop

do you have any idea to try about?</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I applied the patch to the files you mention here(run vmware.install.pl, then ./runme.pl on update directory and then vmware-config.pl), but it abort after asking about the bridged interface (i have 2 ), this is just the final  lines:</p>
<p>tmp/vmware-config2/vmnet-only/vm_atomic.h:1608:7: warning: &#8220;_MSC_VER&#8221; is not defined<br />
/tmp/vmware-config2/vmnet-only/vm_atomic.h:1741:7: warning: &#8220;_MSC_VER&#8221; is not defined<br />
{standard input}: Assembler messages:<br />
{standard input}:6426: Error: can&#8217;t resolve `.LVL257&#8242; {*UND* section} &#8211; `.Ltext0&#8242; {.text section}<br />
make[4]: *** [/tmp/vmware-config2/vmnet-only/driver.o] Error 1<br />
make[3]: *** [_module_/tmp/vmware-config2/vmnet-only] Error 2<br />
make[2]: *** [sub-make] Error 2<br />
make[1]: *** [all] Error 2<br />
make[1]: se sale del directorio `/usr/src/linux-2.6.31.12-0.1-obj/x86_64/desktop&#8217;<br />
make: *** [vmnet.ko] Error 2<br />
make: se sale del directorio `/tmp/vmware-config2/vmnet-only&#8217;<br />
Unable to build the vmnet module.</p>
<p>For more information on how to troubleshoot module-related problems, please<br />
visit our Web site at &#8220;http://www.vmware.com/download/modules/modules.html&#8221; and<br />
&#8220;http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html&#8221;.</p>
<p>Execution aborted.</p>
<p>i have opensSuSE 11.2 with kernel 2.6.31.12-0.1-desktop</p>
<p>do you have any idea to try about?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hankang</title>
		<link>http://www.insecure.ws/2009/09/11/vmware-specific-specific-5-5-x-and-kernel-2-6-31/comment-page-1#comment-912</link>
		<dc:creator>hankang</dc:creator>
		<pubDate>Tue, 02 Feb 2010 21:25:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.insecure.ws/?p=170#comment-912</guid>
		<description>Oh yeah - forgot to indicate that the patch above didn&#039;t require a recompilation of the kernel to re-export init_mm - just apply the patch to the untarred tarballs, retar &#039;em and vmware-config.pl away!</description>
		<content:encoded><![CDATA[<p>Oh yeah &#8211; forgot to indicate that the patch above didn&#8217;t require a recompilation of the kernel to re-export init_mm &#8211; just apply the patch to the untarred tarballs, retar &#8216;em and vmware-config.pl away!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hankang</title>
		<link>http://www.insecure.ws/2009/09/11/vmware-specific-specific-5-5-x-and-kernel-2-6-31/comment-page-1#comment-911</link>
		<dc:creator>hankang</dc:creator>
		<pubDate>Tue, 02 Feb 2010 21:15:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.insecure.ws/?p=170#comment-911</guid>
		<description>Thanks for your work!

I have modified this patch slightly to get it to work on my Fedora 12 (2.6.31) installation.  Your mileage may vary.

The changes are in three files in the tarballs:
vmmon.tar sources:
diff -Naur ./vmmon-only/include/compat_pgtable.h ./vmmon-only.new/include/compat_pgtable.h
--- ./vmmon-only/include/compat_pgtable.h	2007-07-22 07:21:17.000000000 -0400
+++ ./vmmon-only.new/include/compat_pgtable.h	2010-02-02 15:54:55.000000000 -0500
@@ -72,7 +72,7 @@
 #endif
 
 
-#ifdef pgd_offset_k
+#if (LINUX_VERSION_CODE &lt; KERNEL_VERSION(2, 6, 25)) &amp;&amp; defined(pgd_offset_k)
 #   define compat_pgd_offset_k(mm, address) pgd_offset_k(address)
 #else
 #   define compat_pgd_offset_k(mm, address) pgd_offset(mm, address)
diff -Naur ./vmmon-only/linux/hostif.c ./vmmon-only.new/linux/hostif.c
--- ./vmmon-only/linux/hostif.c	2009-04-21 10:47:54.000000000 -0400
+++ ./vmmon-only.new/linux/hostif.c	2010-02-02 15:56:33.000000000 -0500
@@ -564,6 +564,7 @@
 static void
 DoClearNXBit(VA vaddr)
 {
+#if LINUX_VERSION_CODE = 2.6.25 */
+   int level;
+   pte_t *pte = lookup_address(vaddr &amp; PAGE_MASK, &amp;level);
+#endif	/* linux version */
    if (pte_val(*pte) &amp; _PAGE_NX) {
       /* pte_val() is not lvalue on x86 PAE */
 #ifdef CONFIG_X86_PAE

vmnet.tar sources:
diff -Naur ./vmnet-only/compat_pgtable.h ./vmnet-only.new/compat_pgtable.h
--- ./vmnet-only/compat_pgtable.h	2007-11-28 05:25:06.000000000 -0500
+++ ./vmnet-only.new/compat_pgtable.h	2010-02-02 15:58:37.000000000 -0500
@@ -76,7 +76,7 @@
 #endif
 
 
-#ifdef pgd_offset_k
+#if	(LINUX_VERSION_CODE &lt; KERNEL_VERSION(2, 6, 25)) &amp;&amp; defined(pgd_offset_k)
 #   define compat_pgd_offset_k(mm, address) pgd_offset_k(address)
 #else
 #   define compat_pgd_offset_k(mm, address) pgd_offset(mm, address)</description>
		<content:encoded><![CDATA[<p>Thanks for your work!</p>
<p>I have modified this patch slightly to get it to work on my Fedora 12 (2.6.31) installation.  Your mileage may vary.</p>
<p>The changes are in three files in the tarballs:<br />
vmmon.tar sources:<br />
diff -Naur ./vmmon-only/include/compat_pgtable.h ./vmmon-only.new/include/compat_pgtable.h<br />
&#8212; ./vmmon-only/include/compat_pgtable.h	2007-07-22 07:21:17.000000000 -0400<br />
+++ ./vmmon-only.new/include/compat_pgtable.h	2010-02-02 15:54:55.000000000 -0500<br />
@@ -72,7 +72,7 @@<br />
 #endif</p>
<p>-#ifdef pgd_offset_k<br />
+#if (LINUX_VERSION_CODE &lt; KERNEL_VERSION(2, 6, 25)) &amp;&amp; defined(pgd_offset_k)<br />
 #   define compat_pgd_offset_k(mm, address) pgd_offset_k(address)<br />
 #else<br />
 #   define compat_pgd_offset_k(mm, address) pgd_offset(mm, address)<br />
diff -Naur ./vmmon-only/linux/hostif.c ./vmmon-only.new/linux/hostif.c<br />
&#8212; ./vmmon-only/linux/hostif.c	2009-04-21 10:47:54.000000000 -0400<br />
+++ ./vmmon-only.new/linux/hostif.c	2010-02-02 15:56:33.000000000 -0500<br />
@@ -564,6 +564,7 @@<br />
 static void<br />
 DoClearNXBit(VA vaddr)<br />
 {<br />
+#if LINUX_VERSION_CODE = 2.6.25 */<br />
+   int level;<br />
+   pte_t *pte = lookup_address(vaddr &amp; PAGE_MASK, &amp;level);<br />
+#endif	/* linux version */<br />
    if (pte_val(*pte) &amp; _PAGE_NX) {<br />
       /* pte_val() is not lvalue on x86 PAE */<br />
 #ifdef CONFIG_X86_PAE</p>
<p>vmnet.tar sources:<br />
diff -Naur ./vmnet-only/compat_pgtable.h ./vmnet-only.new/compat_pgtable.h<br />
&#8212; ./vmnet-only/compat_pgtable.h	2007-11-28 05:25:06.000000000 -0500<br />
+++ ./vmnet-only.new/compat_pgtable.h	2010-02-02 15:58:37.000000000 -0500<br />
@@ -76,7 +76,7 @@<br />
 #endif</p>
<p>-#ifdef pgd_offset_k<br />
+#if	(LINUX_VERSION_CODE &lt; KERNEL_VERSION(2, 6, 25)) &amp;&amp; defined(pgd_offset_k)<br />
 #   define compat_pgd_offset_k(mm, address) pgd_offset_k(address)<br />
 #else<br />
 #   define compat_pgd_offset_k(mm, address) pgd_offset(mm, address)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aack</title>
		<link>http://www.insecure.ws/2009/09/11/vmware-specific-specific-5-5-x-and-kernel-2-6-31/comment-page-1#comment-890</link>
		<dc:creator>Aack</dc:creator>
		<pubDate>Wed, 13 Jan 2010 02:27:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.insecure.ws/?p=170#comment-890</guid>
		<description>Ok, that was wrong. Compiles fine. Module loads fine. System needed reboot to recover from starting a VM. Maybe someone with better kernel-foo than me can clean up that idea.</description>
		<content:encoded><![CDATA[<p>Ok, that was wrong. Compiles fine. Module loads fine. System needed reboot to recover from starting a VM. Maybe someone with better kernel-foo than me can clean up that idea.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aack</title>
		<link>http://www.insecure.ws/2009/09/11/vmware-specific-specific-5-5-x-and-kernel-2-6-31/comment-page-1#comment-889</link>
		<dc:creator>Aack</dc:creator>
		<pubDate>Wed, 13 Jan 2010 01:42:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.insecure.ws/?p=170#comment-889</guid>
		<description>Kang,
I have done some searching and found that the init_mm reference is pulled in by the pgd_offset_k macro used in about 3 places in the vmmon_only code for vs 1.0.10. I tested the thoery by changing the macro in my kernel headers

/usr/src/kernels/2.6.31.9-174.fc12.x86_64/arch/x86/include/asm/pgtable.h

 from 

#define pgd_offset_k(address) pgd_offset(&amp;init_mm, (address))

 to

#define pgd_offset_k(address) pgd_offset(current-&gt;mm, (address))

This gave me a successful compile on fedora12. I now need to work out some nice new permission problems as I am using ldap auth and the console doesn&#039;t seem to cope.</description>
		<content:encoded><![CDATA[<p>Kang,<br />
I have done some searching and found that the init_mm reference is pulled in by the pgd_offset_k macro used in about 3 places in the vmmon_only code for vs 1.0.10. I tested the thoery by changing the macro in my kernel headers</p>
<p>/usr/src/kernels/2.6.31.9-174.fc12.x86_64/arch/x86/include/asm/pgtable.h</p>
<p> from </p>
<p>#define pgd_offset_k(address) pgd_offset(&amp;init_mm, (address))</p>
<p> to</p>
<p>#define pgd_offset_k(address) pgd_offset(current-&gt;mm, (address))</p>
<p>This gave me a successful compile on fedora12. I now need to work out some nice new permission problems as I am using ldap auth and the console doesn&#8217;t seem to cope.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kang</title>
		<link>http://www.insecure.ws/2009/09/11/vmware-specific-specific-5-5-x-and-kernel-2-6-31/comment-page-1#comment-863</link>
		<dc:creator>kang</dc:creator>
		<pubDate>Thu, 03 Dec 2009 17:44:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.insecure.ws/?p=170#comment-863</guid>
		<description>ill post for 2.6.32 tomorrow probably
not sure if i&#039;ll go for 2.6.33 etc.. VirtualBox is very good.</description>
		<content:encoded><![CDATA[<p>ill post for 2.6.32 tomorrow probably<br />
not sure if i&#8217;ll go for 2.6.33 etc.. VirtualBox is very good.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cyber</title>
		<link>http://www.insecure.ws/2009/09/11/vmware-specific-specific-5-5-x-and-kernel-2-6-31/comment-page-1#comment-862</link>
		<dc:creator>Cyber</dc:creator>
		<pubDate>Thu, 03 Dec 2009 17:43:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.insecure.ws/?p=170#comment-862</guid>
		<description>:-/

does not work for 2.6.32 ... what a pitty</description>
		<content:encoded><![CDATA[<p>:-/</p>
<p>does not work for 2.6.32 &#8230; what a pitty</p>
]]></content:encoded>
	</item>
</channel>
</rss>
