Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4540344pxf; Tue, 30 Mar 2021 10:10:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwawQlzCX8tqaLsZ0xQYwz3PkjeKZXJxOP5Q4VNa4rXY5tfxzBleI77Xdy19CE97rZZhhHH X-Received: by 2002:a17:906:a1c5:: with SMTP id bx5mr35777655ejb.166.1617124234471; Tue, 30 Mar 2021 10:10:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617124234; cv=none; d=google.com; s=arc-20160816; b=mnAcyqvat9268GVApaP/TnLNZIxGlpKQzJoXsuHV7JAf2dc6jFwctPVftH/bO1oIzJ oz4B0VWDlg4qXo9mllNRCc4/4iUbL/GuqRQXDcf3uYqr2wMaTp+C3u8b1IdcDjg1kRQa rSM0Hj/U2Z/jUtTh+H1ZZfmFiioT/LFvVqsoxrLsI6OaomQrp1qYSNeQBjU/rUhEJoby WH3pbZdxRUBLStvA8FWr1KsJa1ta5tWo0hJtWQ2BMkjRcAID8bwKvASSN6CB1jqnA/Gj W/VTUa6kPnXmpKvlu2rOtUC4nKlXMPIMT1WUdN2oGcOv5IAbyr9UN2TpfIr7/FbnTC8K YJAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:in-reply-to:cc:references:message-id:date :subject:mime-version:from:content-transfer-encoding:dkim-signature; bh=U4q+4X4ovNbgyNm+vnYZ55+5sJJ03R3eRaFFwvvHanQ=; b=xyQee9BvX5aAxkCT820Uqe1yjlXAxeRSjKT3uQ+K8Gm9XCxG4ItrB3dWaHkG4qLQuz 5XV+Uvu/MXEkXP8AQ+hb8yzrL6uLbFs3Q97yff2OnLl4+2us+yChlFqM3du3WcPfHPTi pj6x3McY5jWbV8gch6OClzQ3L2wc7bX/sjjDaK/YXf481PY2XnY68y8EV0MSRZztnNoW 1bW318HN5E04T0mP8DJUlSi3lXm6z1EA5a0bJWxYmHnxowNp0lb1delHu6yFYdgoFdkY 7giJ+3dx++WtCvH38uyRY1tBVxPPvM/POKBt7Fu8j5WoyZdNucn+lXDNQFDY3DbRMEQH v2ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=1erBt5yB; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 13si16264195edx.282.2021.03.30.10.10.11; Tue, 30 Mar 2021 10:10:34 -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=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=1erBt5yB; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232319AbhC3RJJ (ORCPT + 99 others); Tue, 30 Mar 2021 13:09:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232469AbhC3RGb (ORCPT ); Tue, 30 Mar 2021 13:06:31 -0400 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23FBFC061762 for ; Tue, 30 Mar 2021 10:06:02 -0700 (PDT) Received: by mail-pj1-x1034.google.com with SMTP id lr1-20020a17090b4b81b02900ea0a3f38c1so1613496pjb.0 for ; Tue, 30 Mar 2021 10:06:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=U4q+4X4ovNbgyNm+vnYZ55+5sJJ03R3eRaFFwvvHanQ=; b=1erBt5yBguM3wu5x53SxPYcY+u0nb/gz/8dRWvk3RKVyKuuKPlloDIcIiBqKotYZCY sStJJ0lBlWkWwVaDrw7WHNHg9t9R1rrEpYhSrYYLuP1epKnSWoYHANJEVMSTUXAi2wML yk1+3mCKwARJa5NcHHC/g+J63eIL3aR818xSS4VpQ4czEfXr8kULsosM4jm4MIIdgnfM FNyeqmJbKVErhig2aRM3bWdc8MIZAJ2JYM5W9NqgWVT//REhUi1GXwDwUZ9LqpyDkpZv TIA0GrjSvfVfmmUh2Smsa1Ts1w2JiCvr8DMR6GURTunEuQZzak6C0WZOM9ZEBeK0dTkg hKuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=U4q+4X4ovNbgyNm+vnYZ55+5sJJ03R3eRaFFwvvHanQ=; b=PIZL6aZVCFDk1lzGE2LB+nM9ouVfHqL+rOtRcWttwLgh4ZSanQ26Iu14GcP6AZCcgm q4XpJfRQnoRkaV/zeRs7i1GukG/GmVb/ngya4rHcpx82cK8/xJKlSKptm3Zv99HHkn0h /ZdWCCsmPS+Jk6BIUqDEHLWJOtyqTIJO2DyX4+4Gah4Ss4lGg64lLdmZmS5t+sogeFbj P3DIUNfA/D90m6XG2KWvmBxAw3kUyCIrjYKi8n0xw899zKYje4cOC9QWj/44cbFDQ3SE 0ZUH6sA7ZKDKuoeBogUN/V4kUJoGZSBPRWHEiiSCe+z11vJuVOUQmWADCs2YzFjEwVSZ EFdA== X-Gm-Message-State: AOAM532RYAk0Ju1QYYTzDZuPHJbIBnofOF6/e3eiTCDiAbepGI3lllYW zWhx0SfS81BKbo/ZRIaW15ZRKg== X-Received: by 2002:a17:90a:68cf:: with SMTP id q15mr5261816pjj.231.1617123961665; Tue, 30 Mar 2021 10:06:01 -0700 (PDT) Received: from ?IPv6:2601:646:c200:1ef2:547a:17da:91e6:2591? ([2601:646:c200:1ef2:547a:17da:91e6:2591]) by smtp.gmail.com with ESMTPSA id a26sm16241008pff.149.2021.03.30.10.06.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 30 Mar 2021 10:06:01 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Andy Lutomirski Mime-Version: 1.0 (1.0) Subject: Re: Candidate Linux ABI for Intel AMX and hypothetical new related features Date: Tue, 30 Mar 2021 10:05:59 -0700 Message-Id: References: Cc: Andy Lutomirski , Greg KH , "Bae, Chang Seok" , Dave Hansen , X86 ML , LKML , libc-alpha , Florian Weimer , Rich Felker , Kyle Huey , Keno Fischer , Linux API In-Reply-To: To: Len Brown X-Mailer: iPhone Mail (18D70) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Mar 30, 2021, at 10:01 AM, Len Brown wrote: >=20 > =EF=BB=BFAndy, >=20 > I agree, completely, with your description of the challenge, > thank you for focusing the discussion on that problem statement. >=20 > Question: >=20 > Is it required (by the "ABI") that a user program has everything > on the stack for user-space XSAVE/XRESTOR to get back > to the state of the program just before receiving the signal? The current Linux signal frame format has XSTATE in uncompacted format, so e= verything has to be there. Maybe we could have an opt in new signal frame fo= rmat, but the details would need to be worked out. It is certainly the case that a signal should be able to be delivered, run =E2= =80=9Casync-signal-safe=E2=80=9D code, and return, without corrupting regist= er contents.=