From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Aug 24 10:40:02 2003 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A770016A4C1 for ; Sun, 24 Aug 2003 10:40:02 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C92343FEC for ; Sun, 24 Aug 2003 10:40:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h7OHe1Up019421 for ; Sun, 24 Aug 2003 10:40:01 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h7OHe1VO019420; Sun, 24 Aug 2003 10:40:01 -0700 (PDT) Resent-Date: Sun, 24 Aug 2003 10:40:01 -0700 (PDT) Resent-Message-Id: <200308241740.h7OHe1VO019420@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Brandon S. Allbery KF8NH" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3378116A4BF for ; Sun, 24 Aug 2003 10:32:55 -0700 (PDT) Received: from pyanfar.ece.cmu.edu (allbery.dsl.telerama.com [205.201.8.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id E475F43FBF for ; Sun, 24 Aug 2003 10:32:53 -0700 (PDT) (envelope-from allbery@pyanfar.ece.cmu.edu) Received: from pyanfar.ece.cmu.edu (jvo6rkodyysjd74c@localhost [127.0.0.1]) by pyanfar.ece.cmu.edu (8.12.9/8.12.9) with ESMTP id h7OBETeN004361 for ; Sun, 24 Aug 2003 07:14:29 -0400 (EDT) (envelope-from allbery@pyanfar.ece.cmu.edu) Received: (from root@localhost) by pyanfar.ece.cmu.edu (8.12.9/8.12.9/Submit) id h7OBETsI004360; Sun, 24 Aug 2003 07:14:29 -0400 (EDT) Message-Id: <200308241114.h7OBETsI004360@pyanfar.ece.cmu.edu> Date: Sun, 24 Aug 2003 07:14:29 -0400 (EDT) From: "Brandon S. Allbery KF8NH" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/55928: vmware2 broken on -STABLE, presumably by PAE import X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: "Brandon S. Allbery KF8NH" List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Aug 2003 17:40:03 -0000 >Number: 55928 >Category: ports >Synopsis: vmware2 broken on -STABLE, presumably by PAE import >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Aug 24 10:40:00 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Brandon S. Allbery KF8NH >Release: FreeBSD 4.8-STABLE i386 >Organization: Carnegie Mellon University Dept. of Electrical & Computer Engineering Computing Facilities >Environment: System: FreeBSD pyanfar.ece.cmu.edu 4.8-STABLE FreeBSD 4.8-STABLE #4: Sun Aug 17 17:28:05 EDT 2003 allbery@pyanfar.ece.cmu.edu:/usr/src/sys/compile/TIRUN i386 >Description: The emulators/vmware2 port does not work on recent -STABLE, failing with "VMware Workstation PANIC: BUG F(571):1607 bugNr=2302". The usual fix for this is to rebuild the kernel modules, but (a) they do not build without patching and (b) the new kernel modules fail with the same error. No kernel messages were logged. Update: retrying it with syslogd recording debug messages, the vmware bugcheck no longer occurs, but vmware reports an inability to reserve memory and the following is syslogged: Aug 24 07:10:10 pyanfar /kernel: /dev/vmmon: HostIF_LockPage vpn=0x0287bc mpn=000000 already tracked Aug 24 07:10:22 pyanfar last message repeated 11 times Aug 24 07:10:30 pyanfar /kernel: /dev/vmmon: Vmx86_DestroyVM: unlocked pages: 0, unlocked dirty pages: 0 Aug 24 07:10:30 pyanfar /kernel: /dev/vmmon: PhysTrack_Cleanup: pfns still locked >How-To-Repeat: Attempt to boot a VMware virtual machine. >Fix: I used the following patch to get the modules to build; not being a kernel hacker, I don't know if it's correct (and would guess it's not, but have no idea what the correct fix is). --- vmmon-only/freebsd/hostif.c~ Fri Aug 22 02:14:28 2003 +++ vmmon-only/freebsd/hostif.c Fri Aug 22 02:13:19 2003 @@ -181,11 +181,11 @@ { #define DEB(x) caddr_t addr = (caddr_t)VPN_2_VA(ppn); - pt_entry_t pteptr = (pt_entry_t)vtopte(addr); + pt_entry_t pteptr = (pt_entry_t)vtopte((unsigned long) addr); PTE pte; DEB(printf("FindMPN: for page %d address %p(phys %p) pteptr %p", ppn, addr, (caddr_t)vtophys(addr), pteptr)); - pte=*pteptr; + pte=*((caddr_t)pteptr); DEB(printf("(0x%08x)\n", pte)); if (pte & PTE_P) { return PTE_2_PFN(pte); >Release-Note: >Audit-Trail: >Unformatted: