From owner-freebsd-arch@FreeBSD.ORG Sat Sep 13 16:21:05 2014 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 910E9B90 for ; Sat, 13 Sep 2014 16:21:05 +0000 (UTC) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 00DC2AA5 for ; Sat, 13 Sep 2014 16:21:04 +0000 (UTC) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.14.9/8.14.9) with ESMTP id s8DGKx4V037702 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 13 Sep 2014 19:20:59 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.9.2 kib.kiev.ua s8DGKx4V037702 Received: (from kostik@localhost) by tom.home (8.14.9/8.14.9/Submit) id s8DGKxFC037701; Sat, 13 Sep 2014 19:20:59 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Sat, 13 Sep 2014 19:20:59 +0300 From: Konstantin Belousov To: Carsten Mattner Subject: Re: Intel MPX (Skylake ISA) support? Message-ID: <20140913162059.GU2737@kib.kiev.ua> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2/GGPHUoweZ2WGWr" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on tom.home Cc: freebsd-arch@freebsd.org X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Sep 2014 16:21:05 -0000 --2/GGPHUoweZ2WGWr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, Sep 13, 2014 at 12:45:16PM +0200, Carsten Mattner wrote: > Are there any plans to include the necessary (kernel, libc) support for > Intel MPX (https://en.wikipedia.org/wiki/Intel_MPX)? I looked at this several times. The 319433 (Instructions Set Extensions prog reference) even at the current revision 20 still seems to not provide the complete documentation on the CPU side. E.g., could you point me at the description of the save area for MPX ? It is required since usermode bndcfg register can only be set by restoring from the XSAVE area. That said, I believe that most, if not all, of the needed kernel-side support is already there by the generic XSAVE code. I never see any specification of runtime services expected by the code generated by mpx-enabled gcc. --2/GGPHUoweZ2WGWr Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJUFG7rAAoJEJDCuSvBvK1BYXwP/06nzQAyXijTOJyZ2PB0CSG+ JP/oGqS2DgzoCTZPeX+wNlP8OnJ6bzhXn9AxvIpuH6TDHr11x6gE8SiEnLlG9P2x pv7BNy7MOo0LRKazZq2Vma80KNduoHESVJXMUUoumFJ3iKsRI+vcaBx4b0jTNtzn WLhwMJWzNcU6WdYdrQVFAkbz8pM4yuOy0Dix9DAFlYx3nWhOKeSizgySGgTTQUJS MuvnoocXKS65+q8Z6Uk0XqbTjrrii81baam14BMB6o9wNTAvAhjMT7akr0cJRKzD IhsMzzY4T/h1uIT76cjZivNzDahm+8rKk9cZkKZjKCqBLK1hw1f41ivvOWjKASvn /Uza6bl1XEDQ8/LrDYz8YR/3sif/wcWiaDHs4kcTdP0PXOGf7ZpNjhfwJrbNSmla LJ2u0SfO1GPXNPhBBdmQhqY3/kczGuDIJi4b67D+vJaCHVN4IZin//G/SbjJQp/h bIxUbKt0d83LEcC9bapS6GXtqzGYdvO1PJxNojTyYrNyyAk1k/o/ZcNn/USyhO02 Cle7nGuKFUCq/6ArHTqaRgdybCnazw727faW/K+4r/x7usmuM169/ItrrqTFfkCz 6X+ATD7sVMSk7lTcFZa4qGR74DxPw7vtehkQYQddKgUSPK0mh1aVDZw1U/K2vu8W Ft1V4Pk1V2yVE7MAPE9R =GDM0 -----END PGP SIGNATURE----- --2/GGPHUoweZ2WGWr--