From owner-freebsd-emulation@FreeBSD.ORG Tue May 4 12:12:51 2004 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1F4FB16A4CE for ; Tue, 4 May 2004 12:12:51 -0700 (PDT) Received: from ebb.errno.com (ebb.errno.com [66.127.85.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id CBBD443D54 for ; Tue, 4 May 2004 12:12:50 -0700 (PDT) (envelope-from sam@errno.com) Received: from [66.127.85.91] ([66.127.85.91]) (authenticated bits=0) by ebb.errno.com (8.12.9/8.12.6) with ESMTP id i44JChWR089577 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Tue, 4 May 2004 12:12:43 -0700 (PDT) (envelope-from sam@errno.com) From: Sam Leffler Organization: Errno Consulting To: freebsd-emulation@freebsd.org Date: Tue, 4 May 2004 12:12:02 -0700 User-Agent: KMail/1.6.1 References: <16531.64457.287692.950839@grasshopper.cs.duke.edu> <20040504215848.F9795@gamplex.bde.org> <16535.41980.12220.181753@grasshopper.cs.duke.edu> In-Reply-To: <16535.41980.12220.181753@grasshopper.cs.duke.edu> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200405041212.02687.sam@errno.com> cc: Andrew Gallatin Subject: Re: vmware2 patch for -CURRENT X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 May 2004 19:12:51 -0000 On Tuesday 04 May 2004 07:09 am, Andrew Gallatin wrote: > Bruce Evans writes: > > On Mon, 3 May 2004, Andrew Gallatin wrote: > > > It panics in sse2_pagezero() on my p4, so I have to break into > > > the debugger and reduce my cpu_class to 3. I"m really glad that the > > > jsnap builds have ddb built in.. ;) > > > > Apparently vmware2 doesn't support some SSE2 instructions despite > > claiming to. The code that calls ss2_pagezero() seems to test mostly > > the right things. (cpu_feature & CPU_SSE2) is supposed to indicate that > > the CPU supports SSE2, and it shouldn't be necessary to also test > > cpu_class. > > > > Try my memory access benchmarks in ~bde/cache on freefall for debugging > > this in userland (./w -c sse2 -f 19 uses the same access method as > > sse2_pagezero()). > > Weird. It works in userspace: In user space the monitor likely just runs the instruction on the hardware. In the kernel it likely jumps to the emulator and that instruction may not be handled in your version. I'd expect a current vmware release to grok those instructions. Sam