Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp16499pxf; Wed, 31 Mar 2021 15:13:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrTEjYA3OAyu+HsugGX5xtodVOE1K/V56WLzK81FMKOfaduzwVwMpbzBGtA6wZSIZ+Gd0T X-Received: by 2002:aa7:d294:: with SMTP id w20mr6522674edq.68.1617228802842; Wed, 31 Mar 2021 15:13:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617228802; cv=none; d=google.com; s=arc-20160816; b=RXjPBHpo1vLlwQFfCSZF5p7YLiNS+msM1EzhB3j/yiSmqigzSDBGDWb9bN8jXCd0aD +Sa/KJqoZGKS4WUt5YjHqyjS0td0hU3znz91rx6eMAAkqTAX19vnERoR2ujHJvwmYFlF EV1sOm61eY7Vqn1z89jSNUUMxUsy2OtxumkLkfhS58PfcW8Ig8MLVCq+w71tJWpKIVlS 6cvQK/fSGuAEngskl5qOL6W/mPH2LAFWLbVoJt99AoM32nrbxYsz0AraTFowtt7K0B7H 0DJQOJUnPMss0/Qouw5kSdOXLuGa0FNWCQSFchy/NgR1e++nkhLC4/LGwkfRQ38AzKSy cxzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=Y2axwWxTL8XPpHwUo4AVE1zruv6RF5CEAUfc387i7Es=; b=aZsyV3KVhvsQ1nK2F72692afO+0yRLjbd1DFd6QNoelse1f3y1/gtZrJemuolq7Bjy wwMsCVRYBLd8UZmH0l6zfcasDqUw6wdrKzHAA9QuSVs1kP4S/2qfQWUr9UMZomr11m7s x4+wSvtPPE2/+QCCo4byHoduK1UOowlxpO97/Mc3xzyQTiRiDC/EDP16gGMyaCjD69jO s78KNYdLOfmYCIHai31sWkpaY+a8atQAiBpsCGGRV8YwGd2zwGuND76r4himWTO+0G67 VnacQoR6HduTkpL4/RVxBa2MikD0sOcBRh5DyF/KoniFcvLT5WCL55peIwEG78OnPs/+ Cqvg== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hy8si3052411ejc.489.2021.03.31.15.12.59; Wed, 31 Mar 2021 15:13:22 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232001AbhCaWMD (ORCPT + 99 others); Wed, 31 Mar 2021 18:12:03 -0400 Received: from mail-ed1-f43.google.com ([209.85.208.43]:45944 "EHLO mail-ed1-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229497AbhCaWLn (ORCPT ); Wed, 31 Mar 2021 18:11:43 -0400 Received: by mail-ed1-f43.google.com with SMTP id bx7so24039986edb.12; Wed, 31 Mar 2021 15:11:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Y2axwWxTL8XPpHwUo4AVE1zruv6RF5CEAUfc387i7Es=; b=MUI0Rz04kwGUZSu+DD2JrZWSaRabmNc/h+GGyp1XexmOj+wEsIcAdM8A67S+1imDCS kiVK1AOWbMbd8SuUWhYz1SxwIqVKlQ/7ckQcYZhOMjIHuDX9bAjW+wxidKwnWAxLuJSB NkBXnRflmSUurzuUbBj2KicF/RqRU/pTZbpiRwlVGMa3w3lLozyMjAZqlKmicxrlQkde Pa4n8hU8XwbmDsspTSyLgTtg9xoDCF5jHjUGVWRydXprvtf78azBam8KHlPj9bdXfTB8 FKw1MI+VRr8mm1snJpYua2PtYd2R+SVdy/XCLCAnRD64425mZNlcvKmPJH/3rfHpdtWI S97Q== X-Gm-Message-State: AOAM532OOaE/8sWvLyBAXmoDcxDfvNo7lwWCP4yBRrxE71GU33epAl6y KzhsPMUOySEH8WxWbIQdPD8wTYZ42D2afpFRnug= X-Received: by 2002:aa7:d917:: with SMTP id a23mr6430206edr.122.1617228702378; Wed, 31 Mar 2021 15:11:42 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Len Brown Date: Wed, 31 Mar 2021 18:11:31 -0400 Message-ID: Subject: Re: Candidate Linux ABI for Intel AMX and hypothetical new related features To: robert@ocallahan.org Cc: Andy Lutomirski , David Laight , Dave Hansen , Andy Lutomirski , Greg KH , "Bae, Chang Seok" , X86 ML , LKML , libc-alpha , Florian Weimer , Rich Felker , Kyle Huey , Keno Fischer , Linux API Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 31, 2021 at 5:42 PM Robert O'Callahan wrote: > > For the record, the benefits of dynamic XCR0 for rr recording > portability still apply. I guess it'd be useful for CRIU too. We would > also benefit from anything that incentivizes increased support for > CPUID faulting. As previously mentioned, today we don't have an architectural way to trap a user into the kernel on CPUID, even though we can do this for a VMM. But spoofing CPUID isn't a solution to all problems. The feature really needs to be OFF to prevent users from using it, even if the supported mechanisms of discovering that feature say "NOT PRESENT". Today there are plenty of users who will opportunistically try everything in the cloud and choose the machine that allows them to do something that other machines will not -- even if it is not officially supported. If something is not enumerated, it really needs to also be turned off. cheers, --Len Brown, Intel Open Source Technology Center