From owner-freebsd-amd64@freebsd.org Mon Aug 14 20:44:01 2017 Return-Path: Delivered-To: freebsd-amd64@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C1CEBDE38B0 for ; Mon, 14 Aug 2017 20:44:01 +0000 (UTC) (envelope-from Anton.Rang@dell.com) Received: from esa2.dell-outbound.iphmx.com (esa2.dell-outbound.iphmx.com [68.232.149.220]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.dell-outbound.iphmx.com", Issuer "Go Daddy Secure Certificate Authority - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 915BF6E32C for ; Mon, 14 Aug 2017 20:44:00 +0000 (UTC) (envelope-from Anton.Rang@dell.com) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dell.com; i=@dell.com; q=dns/txt; s=smtpout; t=1502743441; x=1534279441; h=from:to:subject:date:message-id:mime-version; bh=HQnBO2WBoYtoYmitiG1NcetuKTQxiUezz51Ye8Vhn2A=; b=iGpCqcXvDqLAk1U93L9i+f3tQto0fmso3x4ZAabhUb+WTQW54h1unIZR FRtLrvDh3kyFu43ED9yChrla5CHgdyu+elNLkZ5edu+Y+/zZGmpU1WQt1 w44UV9Z92wwBHfwGWbDD1YOLUnUHlRK9Sz4hYtlRe13YzPJpp65feS6L1 Q=; Received: from esa3.dell-outbound2.iphmx.com ([68.232.154.63]) by esa2.dell-outbound.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Aug 2017 15:42:52 -0500 From: "Rang, Anton" Received: from mailuogwhop.emc.com ([168.159.213.141]) by esa3.dell-outbound2.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Aug 2017 02:34:03 +0600 Received: from maildlpprd06.lss.emc.com (maildlpprd06.lss.emc.com [10.253.24.38]) by mailuogwprd05.lss.emc.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.0) with ESMTP id v7EKgpCT019265 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Mon, 14 Aug 2017 16:42:51 -0400 X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd05.lss.emc.com v7EKgpCT019265 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=rsa.com; s=jan2013; t=1502743371; bh=3q+WDDhLlNTt1S8l6vcdHb3IsSI=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version; b=uEtZzpHwbJpN0VfptMMTwG9MfBO1bEOnVUo0/LX+rEBNpsTZxBH7WL2FF9R04YsMC gi9r9bZmiwUGQEC+RWnBx6QmceOjWIOuyh8ae8OdYJprR9MBPJeHHY8oDEQXZ7JLYG 4F4IIX7bzhe4aAyTBT1p1HxW8KJ64taNfkyePDg4= X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd05.lss.emc.com v7EKgpCT019265 Received: from mailusrhubprd53.lss.emc.com (mailusrhubprd53.lss.emc.com [10.106.48.18]) by maildlpprd06.lss.emc.com (RSA Interceptor) for ; Mon, 14 Aug 2017 16:42:07 -0400 Received: from MXHUB212.corp.emc.com (MXHUB212.corp.emc.com [10.253.68.82]) by mailusrhubprd53.lss.emc.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.0) with ESMTP id v7EKgbgR019551 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=FAIL) for ; Mon, 14 Aug 2017 16:42:37 -0400 Received: from MX103CL02.corp.emc.com ([169.254.6.172]) by MXHUB212.corp.emc.com ([10.253.68.82]) with mapi id 14.03.0352.000; Mon, 14 Aug 2017 16:42:37 -0400 To: "freebsd-amd64@freebsd.org" Subject: XSAVE vs. XSAVEOPT in fpusave / fpu_kern_enter? Thread-Topic: XSAVE vs. XSAVEOPT in fpusave / fpu_kern_enter? Thread-Index: AdMVO36PuBDuT0bBRfW+7Y3UAgl9gQ== Date: Mon, 14 Aug 2017 20:42:35 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.13.46.145] MIME-Version: 1.0 X-Sentrion-Hostname: mailusrhubprd53.lss.emc.com X-RSA-Classifications: public X-Mailman-Approved-At: Mon, 14 Aug 2017 23:34:45 +0000 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Aug 2017 20:44:01 -0000 Hi, While glancing at fpu_kern_enter, I noticed that fpusave() uses the XSAVE i= nstruction, but not XSAVEOPT. The instance in cpu_switch.S is patched if XS= AVEOPT is available, but should we also be able to use XSAVEOPT in fpusave = as well? I can't see any reason why not, but I'm not 100% sure that the sa= ve area is set up properly in all cases. Anton