Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 May 2002 18:45:51 -0400
From:      Bosko Milekic <bmilekic@unixdaemons.com>
To:        Glenn Gombert <freebsd@fastmail.fm>
Cc:        "David W. Chapman Jr." <dwcjr@inethouston.net>, Nicolas Souchu <nsouch@free.fr>, Current <freebsd-current@FreeBSD.ORG>
Subject:   Re: -current as guest of VMWare2
Message-ID:  <20020531184551.A81753@unixdaemons.com>
In-Reply-To: <20020531220221.DA6366D9BB@www.fastmail.fm>; from freebsd@fastmail.fm on Fri, May 31, 2002 at 10:02:21PM %2B0000
References:  <20020531220221.DA6366D9BB@www.fastmail.fm>

next in thread | previous in thread | raw e-mail | index | archive | help

HAH! This patch was posted by iedowse in response to one of MY POSTS and
it does EXACTLY what I described in my previous Email, point (2).

PLZ DO NOT BRING MY HOPES UP BY STATING THAT THERE IS ANOTHER PATCH
WHICH DOES SOMETHING DIFFERENT WHEN IT FACT IT DOES WHAT I ALREADY KNOW
I SHOULD DO K PLZ THX. :-)))))

(I'm just fooling around, thanks for the pointer anyway. :-))

Cheers,
Bosko

On Fri, May 31, 2002 at 10:02:21PM +0000, Glenn Gombert wrote:
> Here is the patch from a previous posting that fixes the problem of
> running FreeBSD -Current as a Guest OS under VMWare Workstation 3.0:
> 
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> 
> Someone mentioned on a list somewhere that vmware takes forever to
> emulate the cmpxchg instruction, and that using the I386_CPU version
> of atomic_cmpset_int() helps a lot. I noticed a major vmware slowdown
> with -current sometime in September, so I tried avoiding the
> cmpxchg's and things got much faster. Below is the patch I use
> (using this outside vmware on SMP hardware is a bad idea :-).
> 
> Ian
> 
> Index: atomic.h
> ===================================================================
> RCS file: /dump/FreeBSD-CVS/src/sys/i386/include/atomic.h,v
> retrieving revision 1.21
> diff -u -r1.21 atomic.h
> --- atomic.h    2001/10/08 20:58:24     1.21
> +++ atomic.h    2001/10/09 18:35:25
> @@ -111,7 +111,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)
>  {
> 
> 
> Glenn G.
> 
> 
> -- 
>   Glenn Gombert
>   freebsd@fastmail.fm
> 
> "Never trust any operating system you don't have the source code for"
> 
> -- 
> http://fastmail.fm - Get back to work
> 

-- 
Bosko Milekic
bmilekic@unixdaemons.com
bmilekic@FreeBSD.org


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020531184551.A81753>