Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2112195pxf; Sat, 27 Mar 2021 03:00:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAilTGmY7JfayecE1AjR08BjEXTP6a0SY4d42k7echYB4xU/6gJ2ED9fSXteKGD9qZIwUU X-Received: by 2002:aa7:c1d8:: with SMTP id d24mr19379773edp.290.1616839233879; Sat, 27 Mar 2021 03:00:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616839233; cv=none; d=google.com; s=arc-20160816; b=v6gx98rnr3OjkB6ypWx2OSAO/l3twRqeZrVpkQwL/EwJmCLDucAf9XRhLCgpwhNpfF qtvw0SRYMf4+MK0aePXzDLQPznZ6VS4T2eM81Xtx4PU1BtmPY5KzljXglIbfYo719xro 6OqAibqg7+8LR6qnE96I5DvBU0CL9YOBLXi87tWxxLo4jhLLyQGWnnMA/HrT+2b37CyQ f1Fbb5PLBPOSlyDvBbxpa9ThWCXoKjQ1RfeIuovAQ7LBzyxvmx9fT2tNdHFg8pEyZXBW w2dcgd84q1wT8n0HfkXx9sX2lVXMaCb3jEyzLtUIyaTwa777g5vM9Ck0+d8YyO6x20wY YfIQ== 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=RC9TykJcUp6saWsMOtYszW6m/Vg+ExfbuPh3Pi7Zg6Y=; b=bj7fYsGnpQfhexNOeGfkiNXmgsqTim45Gif604CCKjAWJbFi+VGY1f/sz38sPipH63 wptxK1745YSM1UCYm4mrxXkxQVITSLrrYUqAtcFqnpBRanno2sOfTvpjN8bemDrzOvVz T30EWgIPx398C/YY4I3e/CufG2lDgaAn7Y8eoMz9m59StDKwovHuBmilgzgtXVT0QNqQ RrqEoNZuOEt9TWJBvoywI9bNH4/mLNKuZPI2xbP871YpgUbe9IO1yfCTVkELt7JJt4iQ 1Q6XCLk3rjFGsef9i8qRuhVSVlzd2sdwnTAzwcZyVDQ866G9J4YjrFKY3tyUJZT3l3+R PPgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=j3sdHRJW; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mh2si8709810ejb.107.2021.03.27.03.00.11; Sat, 27 Mar 2021 03:00: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=@linuxfoundation.org header.s=korg header.b=j3sdHRJW; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231513AbhC0J7F (ORCPT + 99 others); Sat, 27 Mar 2021 05:59:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:60002 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230427AbhC0J64 (ORCPT ); Sat, 27 Mar 2021 05:58:56 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3366161937; Sat, 27 Mar 2021 09:58:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1616839136; bh=DJd8AHuqiwkd9UjUyvaudeysMMHVMYfIxkNtuJE78Nw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=j3sdHRJWLIvIKvTfFt5hjrxtmsGjZQG1JAb55FshkzIC6pCZArveZ635mR2J2LxzU lCPK2rfLhLBih3BZ+JfxveaSg3Wkh+R7FfoRLh/GOFiqOKPX30ILWO8wAldm8JYFZT YvsNSAc+gigS1VVWzMhBMGSz4uSXuYAutrqHhTHg= Date: Sat, 27 Mar 2021 10:58:52 +0100 From: Greg KH To: Len Brown Cc: Andy Lutomirski , "Bae, Chang Seok" , Dave Hansen , X86 ML , LKML , libc-alpha , Florian Weimer , Rich Felker , Kyle Huey , Keno Fischer , Linux API Subject: Re: Candidate Linux ABI for Intel AMX and hypothetical new related features Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 26, 2021 at 11:39:18PM -0400, Len Brown wrote: > Hi Andy, > > Say a mainline links with a math library that uses AMX without the > knowledge of the mainline. What does this mean? What happened to the context here? > Say the mainline is also linked with a userspace threading library > that thinks it has a concept of XSAVE area size. How can the kernel (what I think you mean by "mainline" here) be linked with a userspace library at all? > Wouldn't the change in XCR0, resulting in XSAVE size change, risk > confusing the threading library? Shouldn't that be the job of the kernel and not userspace? totally confused, greg k-h