Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1400288pxj; Fri, 21 May 2021 13:19:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPH8z/Kbn4X+t4Q27LTjtKKQ91R7jGyfDdE1jzyQ5c7cQKZtyy18OxmFK6bNN/6lysqQlH X-Received: by 2002:aa7:c04e:: with SMTP id k14mr12539214edo.157.1621628373157; Fri, 21 May 2021 13:19:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621628373; cv=none; d=google.com; s=arc-20160816; b=A97uNWI740SuriVWoNC308UOL99OyTVi4Mg8RWhh/Wsxp/YlCPLf+Jx/HtI7PsU8oP C52lUXyVOsXWNyj2Xc3C/VBTfYUP6ojIWw9RIBx2OpiZ+Gzq3BafGqAJbgtpz9AfCP7I ANRmGB6UA2ESZbvXALl7njIi6MH0mkIJHi+wy8cxPq27QT/KKU4SzuHQK3UJRR07eH+u z3XJhk3neITDMuT3//kZWiopnAVsFZVHrLFgtlqF6/j1q1cJV4QH+acjE13KhTHbExL4 J4+01iIc52Bew6FkboV3oJRFQ5zdjw7h1jDo2LqEm8krzFqS6iF5GczUfvLxYw7FOuuW IJQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:date :references:subject:cc:to:from:dkim-signature; bh=UzfrhhjYSYiIuzBU0H2YNGGzT9stjrQrZgCfIc9Eyrw=; b=ZH3zi6ARnk4aPdkBPJWlOHejv3eg5+nqHES3YJJSU6B5j26762mYBddrL8yht/LlMs y5f9aRDBfiGGHhwz2rc2p0kZgaOBtuuVP1j9I0t1Ix6za4FIeGJMqoHFLpIXIThhK78L B+uYphbPnsqXQqPrTKh/1xWJkiIc50NUIluNWMOODwuSCjlogohhLn4LiELy3TwtS0Ft PcIYsjAi3oWNT8Fpi0NvB1z0282KnDbqPQcTFhXdE5ts2xfqhgcYbo6swhFVa08Wlv0W a08mblIYs2imhTig0/YOb23xK5eaYq4ZVpTh0QiMnpImJ7Uz0HttReu9uqVwOh4SIVAz zl3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=X7SjMra7; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp16si7708485ejc.670.2021.05.21.13.19.10; Fri, 21 May 2021 13:19:33 -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=@redhat.com header.s=mimecast20190719 header.b=X7SjMra7; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235623AbhEUOrA (ORCPT + 99 others); Fri, 21 May 2021 10:47:00 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:46431 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236906AbhEUOqe (ORCPT ); Fri, 21 May 2021 10:46:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1621608310; 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: references:references; bh=UzfrhhjYSYiIuzBU0H2YNGGzT9stjrQrZgCfIc9Eyrw=; b=X7SjMra7JnYv8MCotiw/eICiF+y7diEz2xPmap63D6tKly6x5+6ysO8E7iLOSkkPpov6a2 pmIQGzausFHK3nBpK/MB+vk2NXvR9dZlZ7s/Ynr4dpAlzg6HsnQVkaN20bGTE1Ql+zpQ+p xbHEMRlBJeLf8ANLMELErMxelwfHkHM= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-470-vKGhCmr3Nfek4CE7RcWfvA-1; Fri, 21 May 2021 10:45:07 -0400 X-MC-Unique: vKGhCmr3Nfek4CE7RcWfvA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 43C78107ACC7; Fri, 21 May 2021 14:45:05 +0000 (UTC) Received: from oldenburg.str.redhat.com (ovpn-113-228.ams2.redhat.com [10.36.113.228]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B410260D4B; Fri, 21 May 2021 14:45:00 +0000 (UTC) From: Florian Weimer To: Dave Hansen via Libc-alpha Cc: Len Brown , Dave Hansen , Rich Felker , Linux API , "Bae, Chang Seok" , X86 ML , LKML , Kyle Huey , Borislav Petkov , Andy Lutomirski , Thomas Gleixner , Keno Fischer , Arjan van de Ven , Willy Tarreau Subject: Re: Candidate Linux ABI for Intel AMX and hypothetical new related features References: <20210415044258.GA6318@zn.tnic> <20210415052938.GA2325@1wt.eu> <20210415054713.GB6318@zn.tnic> <20210419141454.GE9093@zn.tnic> <20210419191539.GH9093@zn.tnic> <20210419215809.GJ9093@zn.tnic> <874kf11yoz.ffs@nanos.tec.linutronix.de> <87k0ntazyn.ffs@nanos.tec.linutronix.de> <37833625-3e6b-5d93-cc4d-26164d06a0c6@intel.com> <9c8138eb-3956-e897-ed4e-426bf6663c11@intel.com> Date: Fri, 21 May 2021 16:44:58 +0200 Message-ID: <87pmxk87th.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Dave Hansen via Libc-alpha: > Our system calls are *REALLY* fast. We can even do a vsyscall for this > if we want to get the overhead down near zero. Userspace can also cache > the "I did the prctl()" state in thread-local storage if it wants to > avoid the syscall. Why can't userspace look at XCR0 to make the decision? And we added an interface for querying x86 CPU features to glibc 2.33 which is completely incompatible with this because it assumes that CPU features do not change during the lifetime of a process. 8-( Thanks, Florian