Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp222273pxf; Wed, 31 Mar 2021 01:27:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtzbRFzapYMxIXpaCuMcjyY9Ra4+0nSA5lpVPA+WPqSRin30J3H5egMBgp/NprsDh70tNM X-Received: by 2002:a50:fe81:: with SMTP id d1mr2321571edt.308.1617179226215; Wed, 31 Mar 2021 01:27:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617179226; cv=none; d=google.com; s=arc-20160816; b=CUMnoXD/awz8ozF4YBtCOuaIR4VdB6x6CYHAfU1ezr5FEX7MgA4/T7TIawAhakl8zK y/AfCNFqraR8zmrYdv9pZ1gUAeSAolCIZ9hDYAa/uNbDYVMY9wCRrpPheRt8aOH7pcUc Cbp43TrB/0uh8POopUDwMuZvLCySxoDOBsq8DgGyBaz3tXnjic6DB7Dn/fa/CgOws9Vv FTo/FXeSk37hBAQAPGWlj10x6C5D36CKahaRUJ6S6jANJVxFQyWJ9E6fR5cc9/6/cah+ ULAYYuFGOEao69R3t5cTB0TPbA2X3Gvn5LaYff7I5Wx+r5z8O+GXrakBbjs42zP2cIRT +5Ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GWTbeFil51VPp2N2biMDxqCnfSXDO9wl1knPYykOd2g=; b=l0h4SMPFuInvKMI2TSsrjUpJZEdgPPuc39YcB2saB1c/6KBOWtfsnfMmpynA1lQz4u 9umpIIVyOkGp2GCFd/n4bfQjITcDDcXUsuzn3XHJV5gbA8cUvzVIRkSmIHyKzr+CD6y6 N8N7lPpVq/4IgdWHUWss1Zw9N/kP1224ilEQeRMOnH2jachcot9lfESBUCfGf8te20iO t+KbN5gDAZ/zrixOqBXvujTfzIJ9LnFMuUDJnOh4oMjS3bo4ae4lRlCQmTPNKMLdJ+8N IC53c+WWw9zwF6c9je51uYPkgrV75MAt5SVfyH9fir86HBtahZ3uz0Svy0oIe1e9tUrV 9eow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=hnDbUDEq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bm7si1296051edb.188.2021.03.31.01.26.43; Wed, 31 Mar 2021 01:27:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=hnDbUDEq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230385AbhCaIYo (ORCPT + 99 others); Wed, 31 Mar 2021 04:24:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230080AbhCaIYT (ORCPT ); Wed, 31 Mar 2021 04:24:19 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07318C061574; Wed, 31 Mar 2021 01:24:19 -0700 (PDT) Received: from nazgul.tnic (dynamic-002-247-240-140.2.247.pool.telefonica.de [2.247.240.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 67E0A1EC0512; Wed, 31 Mar 2021 10:24:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1617179057; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=GWTbeFil51VPp2N2biMDxqCnfSXDO9wl1knPYykOd2g=; b=hnDbUDEqlyig+ElaKoLkpoQv/o9GnXYmiHzY2+epv2YcE9C4knooNjo9b7siCN+7TDwOxY LBoOrKLQjna8o8Uo9oIlDI32CvC1xQXPlzUU1Mfdy/aiME1jmF0k3kTbAKe6anw4a5iFt1 TkmDno7GD4iu68vu3GsiJ0zGTlg0H58= Date: Wed, 31 Mar 2021 10:24:20 +0200 From: Borislav Petkov To: Andy Lutomirski Cc: "Bae, Chang Seok" , Dave Hansen , X86 ML , LKML , linux-abi@vger.kernel.org, libc-alpha , Florian Weimer , Rich Felker , Kyle Huey , Keno Fischer Subject: Re: Candidate Linux ABI for Intel AMX and hypothetical new related features Message-ID: <20210331082402.GA19389@nazgul.tnic> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 26, 2021 at 04:12:25PM -0700, Andy Lutomirski wrote: > To detect features and control XCR0, we add some new arch_prctls: > > arch_prctl(ARCH_GET_XCR0_SUPPORT, 0, ...); > > returns the set of XCR0 bits supported on the current kernel. > > arch_prctl(ARCH_GET_XCR0_LAZY_SUPPORT, 0, ...); > > returns 0. See below. > > arch_prctl(ARCH_SET_XCR0, xcr0, lazy_states, sigsave_states, > sigclear_states, 0); Right, but I'd simply replace that "XCR0" arch detail, more or less, with "XSTATE": ARCH_GET_XSTATE_SUPPORT ARCH_GET_XSTATE_LAZY_SUPPORT ARCH_SET_XSTATE or ARCH_ENABLE_XSTATE or so to denote that this is controlling XSTATE handling while the XCR0 thing is the control register and when in the future something else does control that (XCR0[63] is one provision for that) then we're still on-point with the naming. > Thoughts? FTR, I really like the aspect of apps *requesting* handling of non-legacy, fat states and latter remaining off otherwise in order to keep the sanity of everyone involved. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette