From owner-freebsd-stable Fri May 31 0: 3:54 2002 Delivered-To: freebsd-stable@freebsd.org Received: from tesla.distributel.net (nat.MTL.distributel.NET [66.38.181.24]) by hub.freebsd.org (Postfix) with ESMTP id 544B337B401 for ; Fri, 31 May 2002 00:03:50 -0700 (PDT) Received: (from bmilekic@localhost) by tesla.distributel.net (8.11.6/8.11.6) id g4TG10j61588; Wed, 29 May 2002 12:01:00 -0400 (EDT) (envelope-from bmilekic@unixdaemons.com) Date: Wed, 29 May 2002 12:01:00 -0400 From: Bosko Milekic To: Ian Dowse Cc: Makoto Matsushita , stable@FreeBSD.ORG Subject: Re: VMware 3.1.1 for Windows and FreeBSD 4.6-RC2 Message-ID: <20020529120100.A61559@unixdaemons.com> References: <20020529113651.A74576@unixdaemons.com> <200205291648.aa58472@salmon.maths.tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <200205291648.aa58472@salmon.maths.tcd.ie>; from iedowse@maths.tcd.ie on Wed, May 29, 2002 at 04:48:01PM +0100 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, May 29, 2002 at 04:48:01PM +0100, Ian Dowse wrote: > In message <20020529113651.A74576@unixdaemons.com>, Bosko Milekic writes: > > I don't know what's up, but I tried installing a -CURRENT snapshot via > > a virtual CD "containing" the snapshot iso and got this behavior (I've > > tried several times on my laptop): > > On most hardware you need to disable the use of "cmpxchg" to get > -CURRENT to run in VMware at a non-zero speed: > > Index: atomic.h > =================================================================== > RCS file: /dump/FreeBSD-CVS/src/sys/i386/include/atomic.h,v > retrieving revision 1.26 > diff -u -r1.26 atomic.h > --- atomic.h 28 Feb 2002 06:17:05 -0000 1.26 > +++ atomic.h 11 Mar 2002 17:43:37 -0000 > @@ -106,7 +106,7 @@ > * Returns 0 on failure, non-zero on success > */ > > -#if defined(I386_CPU) > +#if defined(I386_CPU) || 1 > static __inline int > atomic_cmpset_int(volatile u_int *dst, u_int exp, u_int src) > { > > I haven't seen the need for this on -stable, but it might be > worth a try. We could do with a loader-tunable setting so that > you don't need to build a custom kernel for installation in > VMware. Yes, that would be awesome. By the way, why "cmpxchg?" Does it have to do with VMWare not liking bus-locked instructions? How about the instruction prefix "lock" ? How is it handled by VMWare, anyway? > Ian Thanks, -- Bosko Milekic bmilekic@unixdaemons.com bmilekic@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message