From owner-svn-src-all@FreeBSD.ORG Tue May 27 20:19:48 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5C21139F; Tue, 27 May 2014 20:19:48 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 361372187; Tue, 27 May 2014 20:19:48 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 1F95AB94C; Tue, 27 May 2014 16:19:47 -0400 (EDT) From: John Baldwin To: src-committers@freebsd.org Subject: Re: svn commit: r266765 - in head/sys/amd64/vmm: . intel Date: Tue, 27 May 2014 15:06:25 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.4-CBSD-20140415; KDE/4.5.5; amd64; ; ) References: <201405271904.s4RJ4cx4068774@svn.freebsd.org> In-Reply-To: <201405271904.s4RJ4cx4068774@svn.freebsd.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201405271506.25140.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Tue, 27 May 2014 16:19:47 -0400 (EDT) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 May 2014 20:19:48 -0000 On Tuesday, May 27, 2014 3:04:38 pm John Baldwin wrote: > Author: jhb > Date: Tue May 27 19:04:38 2014 > New Revision: 266765 > URL: http://svnweb.freebsd.org/changeset/base/266765 > > Log: > - Rework the XSAVE/XRSTOR emulation to only expose XCR0 features to the > guest for which the rules regarding xsetbv emulation are known. In > particular future extensions like AVX-512 have interdependencies among > feature bits that could allow a guest to trigger a GP# in the host with > the current approach of allowing anything the host supports. > - Add proper checking of Intel MPX and AVX-512 XSAVE features in the > xsetbv emulation and allow these features to be exposed to the guest if > they are enabled in the host. > - Expose a subset of known-safe features from leaf 0 of the structured > extended features to guests if they are supported on the host including > RDFSBASE/RDGSBASE, BMI1/2, AVX2, AVX-512, HLE, ERMS, and RTM. Aside > from AVX-512, these features are all new instructions available for use > in ring 3 with no additional hypervisor changes needed. > > Reviewed by: neel Unfortunately there is no production silicon with either AVX-512 or MPX that runs FreeBSD AFAIK, so I haven't been able to test that this works correctly for those features. Using plain AVX in a guest still works ok though. -- John Baldwin