From owner-freebsd-hackers Thu Dec 6 21:18: 9 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from elvis.mu.org (elvis.mu.org [216.33.66.196]) by hub.freebsd.org (Postfix) with ESMTP id 3F95637B417 for ; Thu, 6 Dec 2001 21:18:04 -0800 (PST) Received: by elvis.mu.org (Postfix, from userid 1192) id 5FEDA81E0D; Thu, 6 Dec 2001 23:17:58 -0600 (CST) Date: Thu, 6 Dec 2001 23:17:58 -0600 From: Alfred Perlstein To: David Xu Cc: Nicolas Souchu , freebsd-hackers@FreeBSD.ORG Subject: Re: kld VM pager Message-ID: <20011206231758.J92148@elvis.mu.org> References: <20011206143022.H13566@cedar.alcove-fr> <3C10410E.9040805@viasoft.com.cn> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3C10410E.9040805@viasoft.com.cn>; from davidx@viasoft.com.cn on Fri, Dec 07, 2001 at 12:09:50PM +0800 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * David Xu [011206 22:15] wrote: > FreeBSD does not have fault hook available, all faults are processed in > vm_fault. > I know Linux supports that idea, you can insert a fault hook to > monitor some > address range where fault occurs, and then graphics frame buffer can be > supported. I'm sure one could add a callback in vm_fault without much issue. However this isn't the point of the hook. One can insert the vm object into the vm map, when a fault occurs the vm_fault code will call the pager handler to service it. The only good part for having a fault hook in linux is most likely for debug purposes. -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' http://www.morons.org/rants/gpl-harmful.php3 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message