From owner-freebsd-hackers Fri Sep 26 22:23:46 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA27182 for hackers-outgoing; Fri, 26 Sep 1997 22:23:46 -0700 (PDT) Received: from singapore.eecs.umich.edu (singapore.eecs.umich.edu [141.213.8.39]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id WAA27174 for ; Fri, 26 Sep 1997 22:23:41 -0700 (PDT) Received: (from weeteck@localhost) by singapore.eecs.umich.edu (8.8.7/8.8.7) id BAA07578; Sat, 27 Sep 1997 01:23:44 -0400 (EDT) From: Wee Teck Ng Message-Id: <199709270523.BAA07578@singapore.eecs.umich.edu> Subject: using vm_map_protect on Pentium PC To: freebsd-hackers@freebsd.org Date: Sat, 27 Sep 1997 01:23:44 -0400 (EDT) X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk hi all, we are heavily utilising VM protection (vm_map_prot) on 2.2-stable, and found that it doesn't work well on Pentium processor. specifically, when using vm_map_prot to change a page's protection from VM_PROT_READ to VM_PROT_ALL, only the vm map is updated. pmap_protect does not reset the pte to writeable (i.e. PG_RW). this will not work on pentium processor, since page level protection is enforced by the processor (against kernel access) when WP flag of CR0 is set. i've noticed that FreeBSD-current has fixed this problem. my questions are: 1) is there a 2.x release with a Pentium-compatible VM system? 2) how stable is 3.0 is for non SMP machines? thanks! wee teck