From owner-freebsd-current Thu Jan 31 9:41:54 2002 Delivered-To: freebsd-current@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id 3184B37B416 for ; Thu, 31 Jan 2002 09:41:45 -0800 (PST) Received: from fledge.watson.org (fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.11.6/8.11.5) with SMTP id g0VHbiD82982; Thu, 31 Jan 2002 12:37:44 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Thu, 31 Jan 2002 12:37:44 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org To: Glenn Gombert Cc: Logan weaponx , freebsd-current@freebsd.org Subject: Re: vmware In-Reply-To: <3.0.6.32.20020131115800.00db6480@imatowns.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Have to wonder if it wouldn't be worth e-mailing the VMware people about this -- they'd probably rather know in advance if there's a potential problem hosting future versions of FreeBSD under VMWare. If someone has a commercial license, it would make sense submitting this via a trouble ticket, as well as providing the VMware support people with some brief directions on installing 5.0. Robert N M Watson FreeBSD Core Team, TrustedBSD Project robert@fledge.watson.org NAI Labs, Safeport Network Services On Thu, 31 Jan 2002, Glenn Gombert wrote: > Here is an item that was mentioned sometime ago on the mailing list, > -CURRENT runs just fine under VMWare Workstation 3.0 (on Win2K > Professional) once this patch is made: > > Glenn G. > > >>>>>>>>>>>>>>>>>>>>>>> > > 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) > { > > > > At 12:56 AM 2/1/2002 +1100, Logan weaponx wrote: > >hi, > > I was wondering if there are any tricks required to make freebsd > >5.0-current work under vmware 3.0 (Windows XP host). When I try and boot > >(from the 20020127 snapshot) it fails to boot. It hangs at different stages > >in the boot each time, but the furthest it has ever gotten is trying to load > >/sbin/init. I can boot from kern.flp and then use my root partition, but > >things dont load correctly (network, filesystems, etc). I looked through the > >archives and noted a few posts regarding different vmware issues and a > >patch. > > > > Glenn Gombert > ggombert@imatowns.com > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message