All of lore.kernel.org
 help / color / mirror / Atom feed
From: William Lee Irwin III <wli@holomorphy.com>
To: Andrew Morton <akpm@osdl.org>
Cc: Jose Luis Domingo Lopez <linux-kernel@24x7linux.com>,
	linux-kernel@vger.kernel.org
Subject: Re: 2.6.0-test9-mm4 (only) and vmware
Date: Wed, 19 Nov 2003 17:12:09 -0800	[thread overview]
Message-ID: <20031120011209.GZ22764@holomorphy.com> (raw)
In-Reply-To: <20031119170233.2619ba81.akpm@osdl.org>

Jose Luis Domingo Lopez <linux-kernel@24x7linux.com> wrote:
>> PS2: trying to "recompile" vmmon and vmnet again and starting VMware,
>> when tried to boot some guest OS I got the following in the logs:
>> kernel BUG at mm/memory.c:793!

On Wed, Nov 19, 2003 at 05:02:33PM -0800, Andrew Morton wrote:
> err, this is due to pagefault-accounting-fix.patch.  Looks like vmware has
> its own pagefault handler and Bill didn't update vmware ;)
> Bill, can we take those BUGs out of there and just do some sane default
> thing?

Here it is.


-- wli


diff -prauN mm4-2.6.0-test9-1/arch/i386/mm/fault.c mm4-2.6.0-test9-default-1/arch/i386/mm/fault.c
--- mm4-2.6.0-test9-1/arch/i386/mm/fault.c	2003-11-19 00:07:03.000000000 -0800
+++ mm4-2.6.0-test9-default-1/arch/i386/mm/fault.c	2003-11-19 17:07:44.000000000 -0800
@@ -343,9 +343,6 @@ good_area:
 	 * the fault.
 	 */
 	switch (handle_mm_fault(mm, vma, address, write)) {
-		case VM_FAULT_MINOR:
-			tsk->min_flt++;
-			break;
 		case VM_FAULT_MAJOR:
 			tsk->maj_flt++;
 			break;
@@ -353,8 +350,10 @@ good_area:
 			goto do_sigbus;
 		case VM_FAULT_OOM:
 			goto out_of_memory;
+		case VM_FAULT_MINOR:
 		default:
-			BUG();
+			tsk->min_flt++;
+			break;
 	}
 
 	/*
diff -prauN mm4-2.6.0-test9-1/mm/memory.c mm4-2.6.0-test9-default-1/mm/memory.c
--- mm4-2.6.0-test9-1/mm/memory.c	2003-11-19 00:07:15.000000000 -0800
+++ mm4-2.6.0-test9-default-1/mm/memory.c	2003-11-19 17:07:56.000000000 -0800
@@ -779,9 +779,6 @@ int get_user_pages(struct task_struct *t
 			while (!(map = follow_page(mm, start, write))) {
 				spin_unlock(&mm->page_table_lock);
 				switch (handle_mm_fault(mm,vma,start,write)) {
-				case VM_FAULT_MINOR:
-					tsk->min_flt++;
-					break;
 				case VM_FAULT_MAJOR:
 					tsk->maj_flt++;
 					break;
@@ -789,8 +786,10 @@ int get_user_pages(struct task_struct *t
 					return i ? i : -EFAULT;
 				case VM_FAULT_OOM:
 					return i ? i : -ENOMEM;
+				case VM_FAULT_MINOR:
 				default:
-					BUG();
+					tsk->min_flt++;
+					break;
 				}
 				spin_lock(&mm->page_table_lock);
 			}

  parent reply	other threads:[~2003-11-20  1:12 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-19 21:15 2.6.0-test9-mm4 (only) and vmware Gerardo Exequiel Pozzi
2003-11-19 21:38 ` Andrew Morton
2003-11-20  4:15   ` Gerardo Exequiel Pozzi
2003-11-19 22:34 ` Christopher Li
2003-11-20  1:47   ` William Lee Irwin III
2003-11-19 23:22     ` Christopher Li
2003-11-20  2:34       ` William Lee Irwin III
2003-11-19 23:40         ` Christopher Li
2003-11-20  2:57           ` William Lee Irwin III
2003-11-20 10:03             ` Voicu Liviu
     [not found]               ` <20031120101830.GH22764@holomorphy.com>
2003-11-20 10:23                 ` Voicu Liviu
2003-11-20 10:31                   ` William Lee Irwin III
2003-11-20 10:37                     ` Voicu Liviu
2003-11-20 10:42                       ` William Lee Irwin III
2003-11-20 10:51                         ` Voicu Liviu
2003-11-20 17:20                           ` Christopher Li
2003-11-20 21:38                             ` Jose Luis Domingo Lopez
2003-11-20 21:55                               ` William Lee Irwin III
2003-11-20 22:53                                 ` Jose Luis Domingo Lopez
2003-11-20 22:56                                   ` William Lee Irwin III
2003-11-21 20:10                                     ` Jose Luis Domingo Lopez
2003-11-21 23:08                                       ` Jose Luis Domingo Lopez
2003-11-20  0:21 ` Jose Luis Domingo Lopez
2003-11-20  1:02   ` Andrew Morton
2003-11-20  1:07     ` William Lee Irwin III
2003-11-20  1:12     ` William Lee Irwin III [this message]
2003-11-20  1:58       ` Andrew Morton
2003-11-20  2:12         ` William Lee Irwin III
2003-11-19 23:24           ` Christopher Li
2003-11-20  4:39           ` Gerardo Exequiel Pozzi
  -- strict thread matches above, loose matches on Subject: below --
2003-11-20 10:35 Petr Vandrovec

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=20031120011209.GZ22764@holomorphy.com \
    --to=wli@holomorphy.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@24x7linux.com \
    --cc=linux-kernel@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.