From owner-freebsd-hackers@FreeBSD.ORG Wed Feb 24 14:35:46 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 1C9421065672 for ; Wed, 24 Feb 2010 14:35:46 +0000 (UTC) (envelope-from giovanni.trematerra@gmail.com) Received: from mail-fx0-f223.google.com (mail-fx0-f223.google.com [209.85.220.223]) by mx1.freebsd.org (Postfix) with ESMTP id A74A68FC0C for ; Wed, 24 Feb 2010 14:35:45 +0000 (UTC) Received: by fxm23 with SMTP id 23so1070743fxm.3 for ; Wed, 24 Feb 2010 06:35:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=LdI23FcfAcBM4svdLbOsRCWNXCN+tuUXrt9eMrpjrzU=; b=HbhLKKRN8NBrsDIqlqIb98KkYIi86bsADvl8dVAAPUq+brgbq3snu2sSHD2flmakH+ IZaO20D7Ym/thwaHjOlW2xy9f7qE5CTWMdMEWc06AbWn9lu/zb2/FxxuRAzdS1XQOsNX hho05eC753Up1XYX1lvnyp09enz73X07uQNb0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Gzv3IBSFJYRfOD1MDpVQcHAGF1aKJ6hY4Cw9iCMTxxZh5sLHDRogwufqs+HpP61V4X 8gHZthic7cbDArzOLT9OLP/GBgwaKaq9vzYUb/p6/YN5IiU2C0PiIKOV7NriRF5Wh9CA 2kqTFzYJccTiAiXUn3cKIWH5gq5mdkJCSA0ck= MIME-Version: 1.0 Received: by 10.223.77.139 with SMTP id g11mr2932580fak.4.1267020321560; Wed, 24 Feb 2010 06:05:21 -0800 (PST) In-Reply-To: References: Date: Wed, 24 Feb 2010 15:05:21 +0100 Message-ID: <4e6cba831002240605g17cd3ed7l60b635cedba2ae77@mail.gmail.com> From: Giovanni Trematerra To: Jacques Fourie Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-hackers@freebsd.org Subject: Re: 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 14:35:46 -0000 On Wed, Feb 24, 2010 at 12:41 PM, Jacques Fourie wrote: > 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? No, vtophys is not intended to be used along with user virtual addresses. -- Gianni