Date: Wed, 29 May 2002 12:01:00 -0400 From: Bosko Milekic <bmilekic@unixdaemons.com> To: Ian Dowse <iedowse@maths.tcd.ie> Cc: Makoto Matsushita <matusita@jp.FreeBSD.org>, stable@FreeBSD.ORG Subject: Re: VMware 3.1.1 for Windows and FreeBSD 4.6-RC2 Message-ID: <20020529120100.A61559@unixdaemons.com> In-Reply-To: <200205291648.aa58472@salmon.maths.tcd.ie>; from iedowse@maths.tcd.ie on Wed, May 29, 2002 at 04:48:01PM %2B0100 References: <20020529113651.A74576@unixdaemons.com> <200205291648.aa58472@salmon.maths.tcd.ie>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020529120100.A61559>
