From owner-cvs-all Thu Nov 7 3:21:25 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B951637B401; Thu, 7 Nov 2002 03:21:23 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7322043E75; Thu, 7 Nov 2002 03:21:23 -0800 (PST) (envelope-from davidxu@FreeBSD.org) Received: from freefall.freebsd.org (davidxu@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gA7BLNx3087432; Thu, 7 Nov 2002 03:21:23 -0800 (PST) (envelope-from davidxu@freefall.freebsd.org) Received: (from davidxu@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gA7BLNnT087419; Thu, 7 Nov 2002 03:21:23 -0800 (PST) Date: Thu, 7 Nov 2002 03:21:23 -0800 (PST) From: David Xu Message-Id: <200211071121.gA7BLNnT087419@freefall.freebsd.org> To: Gavin Atkinson Subject: Re: cvs commit: src/sys/i386/i386 exception.s genassym.c trap.c vm86.c vm86bios.s src/sys/i386/include pcb.h vm86.h Cc: "cvs-committers@FreeBSD.ORG" , "cvs-all@FreeBSD.ORG" Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ----- Original Message ----- From: "Gavin Atkinson" To: "David Xu" Cc: ; Sent: Thursday, November 07, 2002 6:40 PM Subject: Re: cvs commit: src/sys/i386/i386 exception.s genassym.c trap.c vm86.c vm86bios.s src/sys/i386/include pcb.h vm86.h > On Wed, 6 Nov 2002, David Xu wrote: > > Log: > > 1.Fix smp race between kernel vm86 BIOS calling and userland vm86 mode code, > > remove global variable in_vm86call, set vm86 calling flag in PCB flags. > > > > 2.Fix vm86 BIOS calling preempted problem by changing vm86_lock mutex type > > from MTX_DEF to MTX_SPIN. vm86pcb is not remembered in thread struct, > > when the thread calling vm86 BIOS is preempted by interrupt thread, > > and later switching back to the thread would cause incorrect context be > > loaded into CPU registers, this leads to kernel crash. > > Thankyou! Thankyou! > > Which of your patches did you go for in the end? I have been using > http://people.freebsd.org/~davidxu/vm86.diff for over a month without > problem. > > Gavin I have commited vm86_2.diff, because I want to keep change minimum. I will keep vm86.diff, if someday we need it, I can apply this patch. David To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message