From owner-freebsd-hackers@FreeBSD.ORG Wed Feb 24 12:03:26 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A4A6C1065680 for ; Wed, 24 Feb 2010 12:03:26 +0000 (UTC) (envelope-from jacques.fourie@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 43D3F8FC1E for ; Wed, 24 Feb 2010 12:03:25 +0000 (UTC) Received: by wyb40 with SMTP id 40so1227385wyb.13 for ; Wed, 24 Feb 2010 04:03:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=YeprZ61WIx1wZTQf1aCXBLl+ZTlxbXqD1oCQnzGeE8A=; b=LVizGSp8RArWLGhnoCppOv5vUsQS+W5WyyKBeK4l7vJKl3+LUw4+vDaDWNOkNH+63R L7jsTW+DEa0yARSx2QAEAMjNDAqlg2yjUdO2/RGYx2uLVgMmTpL21/3IeJcF+EOS7jCo PnVoQbOy6KV7VUpnorz0oa5xpaxsmEjZ3Xeco= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=IOAzpwTFqpUTowVbJuYahUSSBjd6AbZMncXFXN9xnPAt9iU/bWbBmb9n5AAPdwrI57 EY6lm3WfDpnDUK6JdGoAPOnx7QmtE6DkXRuq78VVBLZC2mtrniiKJVO+E7BiEb60xFk1 OWbeJrIOOO9ac20U/ooXL1xzMYP+Err49fHWc= MIME-Version: 1.0 Received: by 10.216.88.148 with SMTP id a20mr518400wef.124.1267011691801; Wed, 24 Feb 2010 03:41:31 -0800 (PST) Date: Wed, 24 Feb 2010 13:41:31 +0200 Message-ID: From: Jacques Fourie To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: VirtualBox and vtophys X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Feb 2010 12:03:26 -0000 I've noticed that my virtualbox vboxdrv.ko started crashing after updating my 8.0-stable install. The crash occurs when vboxdrv calls vtophys() on a userland virtual address. Prior to r202894 this was working fine. Modifying pmap_kextract() to use vtopte() for non-kernel virtual adresses fixes the problem. Is it intended for vtophys() to still work on userland virtual addresses?