Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3689156pxf; Mon, 29 Mar 2021 08:48:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx81gEp2GjoSHfF+aIWGRfVIXwUkJ/dPvXg8r32cfkBhLA+IIt3o2KMWHCBZQbq2Ek55A2b X-Received: by 2002:aa7:db53:: with SMTP id n19mr29834786edt.330.1617032899292; Mon, 29 Mar 2021 08:48:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617032899; cv=none; d=google.com; s=arc-20160816; b=XslYosVlQ4ijatkDwikjDgDGe46c3X6VuipxzVzxXJWAZ4yTBeqkoe2TM9xqFUDZ8A 157NlSBBh+0IexP0DaBMvTeA/fOzjhy5kqvNTjVJXNj6Bst2Lr0XRI0eN7IYnjBLqbx9 i1pt/Vcq3eR5UpRHJujUWjQN+ryKzmW6GWl/5tVPWrzkN5V/eOqqgNZJd7KAyKuZohP+ jQYo2Gm5V59+vZz+WZ+mmZw0mT810YbOnu607NGRniHi2ZUAnYiEU+aGxCIE4ey/Qa5r h/ahsKE3oV8x3Sn1PJoRp9x3vkJGJLDfmXm+oMmibVPx/3NoGYmam4b978IzxVDZ6A7w vddA== 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=ARY1tt7Z2fm1BA03rp3wXrVNMntpKVDtYEkyEcqsAso=; b=OfTWjMKpKiBSlHf0Ey9xlqtTpEDY5P/OMnLgHdIxVI3DTfdv+Jvxcc8rH0gziHOM5m QJi5CO/+k57q2dZ9IhcJK87DiWJrdKkeG+lUpCAbr5mFSn/Qbz78r1COgXkvi4WStiX6 ZKVYvCr1l4jeAoEKYvMLa1NMor7rFH5gQOxcEo1/zzOW1hS8z4nXpwkWOg2ASRhdRy4f Aa3xqcN4Tr5KyJKCHuJp+3xX5fZXhFra/geetVlpkoIzJGjhFcQgBvqab+ycSUV8FU08 visOj8HQsrZ73au6mx9wN/cZXj5Yx+y/n9q56BB920Ekd+2tQruwsQIhHrWul+IZnAM4 QAog== 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 u6si12685128ejx.73.2021.03.29.08.47.55; Mon, 29 Mar 2021 08:48:19 -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 S231420AbhC2PoW (ORCPT + 99 others); Mon, 29 Mar 2021 11:44:22 -0400 Received: from mail-ed1-f45.google.com ([209.85.208.45]:33590 "EHLO mail-ed1-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230370AbhC2PoM (ORCPT ); Mon, 29 Mar 2021 11:44:12 -0400 Received: by mail-ed1-f45.google.com with SMTP id w18so14831746edc.0 for ; Mon, 29 Mar 2021 08:44:11 -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=ARY1tt7Z2fm1BA03rp3wXrVNMntpKVDtYEkyEcqsAso=; b=We8zSVYqWLkVCPN7dUYta2RC3Fxzjtrulx/CGBPuJY18Sdqs+cBicnaj1hiJLqlKWE qgXKoQFClSkf6UKEtVTmE1o/2PvZa4Dt0DcQDZMUdE9Ec2EUwYrI2V+GnJ/AvKNaZhk3 Gw7FpnL98ij1LFr4ifBnBdhfRBwkG3fHxidbBU8K8d4QD24WcNHSH8+x/HobtmtLpffk cGlsVkEeM9jjBJTZ/lP4qOSesNfVMGM+xBd6lnyBq9Ef5YeHKs3l6ZqnccR1RhzoGNzQ 00a7yuDa+ytaCfpL+cFUoCzYfk4GG5uUzeLA1adV0FZFjknhE1mv/wOnj49k2EQrLVPV V+HA== X-Gm-Message-State: AOAM5310yM0HjcGxYWNnQUm0e8hYhzLN78FZ3MOlLJ46/2CSGYVVya1Y UMsD2OjbKqDs6BJcwAlkjVPSZ5YUolBy4AsfBok= X-Received: by 2002:a05:6402:1613:: with SMTP id f19mr29568445edv.222.1617032651152; Mon, 29 Mar 2021 08:44:11 -0700 (PDT) MIME-Version: 1.0 References: <20210221185637.19281-1-chang.seok.bae@intel.com> <20210221185637.19281-15-chang.seok.bae@intel.com> <87o8fda2ye.fsf@nanos.tec.linutronix.de> <87r1jyaxum.ffs@nanos.tec.linutronix.de> In-Reply-To: <87r1jyaxum.ffs@nanos.tec.linutronix.de> From: Len Brown Date: Mon, 29 Mar 2021 11:43:59 -0400 Message-ID: Subject: Re: [PATCH v4 14/22] x86/fpu/xstate: Expand the xstate buffer on the first use of dynamic user state To: Thomas Gleixner Cc: "Chang S. Bae" , Borislav Petkov , Andy Lutomirski , Ingo Molnar , X86 ML , "Brown, Len" , Dave Hansen , "Liu, Jing2" , "Ravi V. Shankar" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 29, 2021 at 9:33 AM Thomas Gleixner wrote: > > I found the author of this passage, and he agreed to revise it to say this > > was targeted primarily at VMMs. > > Why would this only a problem for VMMs? VMMs may have to emulate different hardware for different guest OS's, and they would likely "context switch" XCR0 to achieve that. As switching XCR0 at run-time would confuse the heck out of user-space, it was not imagined that a bare-metal OS would do that. But yes, if a bare metal OS doesn't support any threading libraries that query XCR0 with xgetbv, and they don't care about the performance impact of switching XCR0, they could choose to switch XCR0 and would want to TILERELEASE to assure C6 access, if it is enabled. > > "negative power and performance implications" refers to the fact that > > the processor will not enter C6 when AMX INIT=0, instead it will demote > > to the next shallower C-state, eg C1E. > > > > (this is because the C6 flow doesn't save the AMX registers) > > > > For customers that have C6 enabled, the inability of a core to enter C6 > > may impact the maximum turbo frequency of other cores. > > That's the same on bare metal, right? Yes, the hardware works exactly the same way. thanks, Len Brown, Intel Open Source Technology Center