From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ED048C433E2 for ; Sat, 27 Mar 2021 09:59:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CA70661976 for ; Sat, 27 Mar 2021 09:59:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231528AbhC0J7F (ORCPT ); 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