From owner-cvs-src@FreeBSD.ORG Thu Oct 20 01:03:24 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 14D1316A41F; Thu, 20 Oct 2005 01:03:24 +0000 (GMT) (envelope-from ups@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D76AA43D5A; Thu, 20 Oct 2005 01:03:23 +0000 (GMT) (envelope-from ups@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j9K13NFl043194; Thu, 20 Oct 2005 01:03:23 GMT (envelope-from ups@repoman.freebsd.org) Received: (from ups@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j9K13NoS043193; Thu, 20 Oct 2005 01:03:23 GMT (envelope-from ups) Message-Id: <200510200103.j9K13NoS043193@repoman.freebsd.org> From: Stephan Uphoff Date: Thu, 20 Oct 2005 01:03:23 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_6_0 Cc: Subject: cvs commit: src/sys/i386/i386 vm_machdep.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Oct 2005 01:03:24 -0000 ups 2005-10-20 01:03:23 UTC FreeBSD src repository Modified files: (Branch: RELENG_6_0) sys/i386/i386 vm_machdep.c Log: MFC vm_machdep.c 1.261-1.263 Rev: 1.261 Ensure that a thread stays on same CPU when calculating per CPU TLB shootdown requirements. Otherwise a CPU may not get the needed TLB invalidation. The PTE valid and access flags can not be used here to avoid TLB shootdowns unless sf->cpumask == all_cpus. ( Otherwise some CPUs may still hold an even older entry in the TLB) Since sf_buf_alloc mappings are normally always used this is also not really useful and presetting accessed and modified allows the CPU to speculatively load the entry into the TLB. Both bugs can cause random data corruption. Rev: 1.262 Restore optimizations to reduce TLB shootdowns. Alan Cox pointed out that they are really useful for sendfile(). Rev: 1.263 Restore the UP optimization to reduce the number of TLB invalidations. The previous revision only restored the MP optimization. Describe the optimization strategy for TLB invalidations in a comment. Approved by: re@ (scottl) Revision Changes Path 1.259.4.1 +37 -31 src/sys/i386/i386/vm_machdep.c