From owner-svn-src-projects@FreeBSD.ORG Fri Oct 26 22:32:27 2012 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9C69346B; Fri, 26 Oct 2012 22:32:27 +0000 (UTC) (envelope-from grehan@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 85A8A8FC14; Fri, 26 Oct 2012 22:32:27 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q9QMWR95019175; Fri, 26 Oct 2012 22:32:27 GMT (envelope-from grehan@svn.freebsd.org) Received: (from grehan@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q9QMWRnA019173; Fri, 26 Oct 2012 22:32:27 GMT (envelope-from grehan@svn.freebsd.org) Message-Id: <201210262232.q9QMWRnA019173@svn.freebsd.org> From: Peter Grehan Date: Fri, 26 Oct 2012 22:32:27 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r242163 - projects/bhyve/sys/amd64/vmm X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Oct 2012 22:32:27 -0000 Author: grehan Date: Fri Oct 26 22:32:26 2012 New Revision: 242163 URL: http://svn.freebsd.org/changeset/base/242163 Log: Set the valid field of the newly allocated field as all other vm page allocators do. This fixes a panic when a virtio block device is mounted as root, with the host system dying in vm_page_dirty with invalid bits. Reviewed by: neel Obtained from: NetApp Modified: projects/bhyve/sys/amd64/vmm/vmm_mem.c Modified: projects/bhyve/sys/amd64/vmm/vmm_mem.c ============================================================================== --- projects/bhyve/sys/amd64/vmm/vmm_mem.c Fri Oct 26 21:25:10 2012 (r242162) +++ projects/bhyve/sys/amd64/vmm/vmm_mem.c Fri Oct 26 22:32:26 2012 (r242163) @@ -99,6 +99,7 @@ vmm_mem_alloc(size_t size) if ((m->flags & PG_ZERO) == 0) pagezero((void *)PHYS_TO_DMAP(pa)); + m->valid = VM_PAGE_BITS_ALL; update_pages_allocated(1);