From owner-freebsd-emulation Thu Feb 1 9:13:46 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from gw.errno.com (node-d1d4bd7a.powerinter.net [209.212.189.122]) by hub.freebsd.org (Postfix) with ESMTP id C086137B6A2 for ; Thu, 1 Feb 2001 09:13:27 -0800 (PST) Received: from melange (melange.errno.com [209.212.166.36]) by gw.errno.com (8.9.0/8.9.0) with SMTP id JAA14083; Thu, 1 Feb 2001 09:13:25 -0800 (PST) Message-ID: <06d701c08c72$49a9d080$24a6d4d1@melange> From: "Sam Leffler" To: "Andrew Gallatin" , Cc: References: <14968.51758.59870.15884@grasshopper.cs.duke.edu> Subject: Re: experiences running vmware w/freebsd 5.0-current as guest Date: Thu, 1 Feb 2001 09:13:25 -0800 Organization: Errno Consulting MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.3018.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300 Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org ----- Original Message ----- From: "Andrew Gallatin" To: Cc: Sent: Wednesday, January 31, 2001 6:43 PM Subject: experiences running vmware w/freebsd 5.0-current as guest > > Just a heads up so this makes it into the archives: > > When running FreeBSD-current as a guest in vmware (VMX86: > version='unreleased' build='$Name: build-570 $' option=Release2.0.1) I > ran into 2 problems: > > a) VMware crashes when the pcn driver probes the AMD PCInet card. > This is indicated by a "NOT_IMPLEMENTED F(562):1654" message > shortly after FreeBSD probes the PCI bus, right after > message pci0: at 15.0 (no driver attached). > This assertion is caused by the pcn driver doing 32-bit ins and outs to 16-bit registers (the upper 16 bits are reserved). > Switching to a kernel without the pcn driver driver works around this. > The lnc driver mostly still works, but is unable to correctly > determine the card's mac address. This doesn't seem to matter for > running host-only networking. > > b) 5.0-current is _slow_. Mounting root takes upwards of 30 seconds > on a 400MHz mobile PII. Going multi-user takes over 10 minutes. > This is compared to near-native perf. with a 4.2-RELEASE kernel. > > Taking the i386 version of the atomic_cmpset_int() inline in > sys/i386/include/atomic.h is an effective workaround for this. Note > that it is apparently not sufficient to build an I386_CPU kernel - I > had trouble booting this. Taking just the i386 version of > atomic_cmpset_int() seems to work just fine, though. > > My theory is that the cmpxchgl instruction causes some sort of trap to > software emulation, but I have not verified it. > It could be that the use of the cmpxchgl instruction is finding a slow path through the runtime; if you have the code fragment handy I can forward it to the appropriate VMware folks. Sam To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message