Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4341191rdb; Thu, 14 Sep 2023 21:41:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFmx+z8J0YrB+CIOFxOAeMs+ntfdQBerQYrU+kc/7UpBlJAhkCYVLb4dxVcW3NQprbX3wvy X-Received: by 2002:a05:6a00:179b:b0:68f:b7f6:f1df with SMTP id s27-20020a056a00179b00b0068fb7f6f1dfmr739579pfg.5.1694752892517; Thu, 14 Sep 2023 21:41:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694752892; cv=none; d=google.com; s=arc-20160816; b=biVZo+jZadlajR80/BHFOdWGo0Ah7eWNpFzUt11/S75WVd0eHaxbU+bLv1SmE5/EZe CvjsW9xDX83xQSVeNQZuEt5Qzf3KmES39PB5gHvNmsFBlZj6kCq3kyDG94MBNjjrR/pN JT+V+2Zl3y/w8OpiufZicwwp1gl0f/a4qX7jpHWj+aXEzZfnnkyVmHVUd2dqmJAhGCOR peiJ+73KHEG6lDCVn4ye/9ZfED9YL+GvvILx0hEOpRdraYAKVpSEiTYeZvJFx1TQghuc 4BGZkKNGyF2o/qpZbVlsCCNSJGxE2m532D84bF63k/f1IQISxeUel+n0Dn5s5x76Q/hq z2lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=8cRPJbRPbpPyl0DIKbunWuB6+IYtaMtGVInY/dfsbq0=; fh=rly0BEAhPkbjf8Uk6xy+TfxgiKRfvQacRrzX/1Bdu94=; b=n3CyTL8hWWAthiz5RtsYl7u0HakP8OOAGHLnRIyI5VVo2SkYVTVAXV5h7Tst6+oov7 HOjohe8GjywyJqX6rgXP527ZM8dR5GTXhjzBfM061m0EWA/Ve6TJQOee+SnqVslmO6ly wAn/fOj7UEKEaqysmcKBgTgOw/vRPNw1x+skKORsObwMJbt505o+MPKXmyX2qhURaQlX hXMGk5BVNXqfJyiTsWKJcE4LVeC3ongrNniXcdNIycZRaUTOrtj6QHuvw6xJn4Fr21mM 4sVs8/aNRLXsEGXRjGjGnL8+rlS/ecClra4ebr1390PjZaoRa06AShxwdw7mcM3F5PXe yFqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=YUWamJ5U; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id 13-20020a63010d000000b0056c297d1644si2505287pgb.510.2023.09.14.21.41.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 21:41:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=YUWamJ5U; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id BA684802FD62; Thu, 14 Sep 2023 18:07:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231230AbjIOBHP (ORCPT + 99 others); Thu, 14 Sep 2023 21:07:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230193AbjIOBHP (ORCPT ); Thu, 14 Sep 2023 21:07:15 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 319D01FE8; Thu, 14 Sep 2023 18:07:11 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1694740029; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8cRPJbRPbpPyl0DIKbunWuB6+IYtaMtGVInY/dfsbq0=; b=YUWamJ5Utp3OQKs0c96zn7z7qwtq5o7oz8CSYdDscALYnuLUGz8SVTh1fz7twIzwmSpsjE vsB7w4hBDv0GFnE1NN3xIKfUwohwgKJpgAgZtmggKQQqDjhO+FNlFRQL/GB+Kh6EPdNzpk zRoYVcfu1QT7x79DLIjnLloBqPeETIiVgYs2saYJniSZNoOL1AkKr2CHD3knl35LxG/dAt vl6bKdoPy0wCFCYinek/JPK3YjMQeQzqL0G4ogM7a0qh4LFhznuacNFS7LjyPTQFfrPXf8 6OJcRCfY0/JSCSl7MingVERa+6SpAnCJXhzq6Sz5oSfPHvpIl+lN69R9ABcy8w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1694740029; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8cRPJbRPbpPyl0DIKbunWuB6+IYtaMtGVInY/dfsbq0=; b=YgXAAcfI7PqVQfPd3GS4BbveJ65cq2aLT9IHq5xExXqf946ewsDrQfSvPRljDdyjnuMZ8G TM8nzdItAHQpybAg== To: andrew.cooper3@citrix.com, Jan Beulich , Juergen Gross Cc: mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, luto@kernel.org, pbonzini@redhat.com, seanjc@google.com, peterz@infradead.org, ravi.v.shankar@intel.com, mhiramat@kernel.org, jiangshanlai@gmail.com, Xin Li , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-edac@vger.kernel.org, linux-hyperv@vger.kernel.org, kvm@vger.kernel.org, xen-devel@lists.xenproject.org Subject: Re: [PATCH v10 08/38] x86/cpufeatures: Add the cpu feature bit for FRED In-Reply-To: <7d907488-d626-0801-3d4b-af42d00a5537@citrix.com> References: <20230914044805.301390-1-xin3.li@intel.com> <20230914044805.301390-9-xin3.li@intel.com> <77ca8680-02e2-cdaa-a919-61058e2d5245@suse.com> <7d907488-d626-0801-3d4b-af42d00a5537@citrix.com> Date: Fri, 15 Sep 2023 03:07:09 +0200 Message-ID: <87o7i41bya.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 14 Sep 2023 18:07:17 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email On Thu, Sep 14 2023 at 14:15, andrew wrote: > PV guests are never going to see FRED (or LKGS for that matter) because > it advertises too much stuff which simply traps because the kernel is in > CPL3. > > That said, the 64bit PV ABI is a whole lot closer to FRED than it is to > IDT delivery.=C2=A0 (Almost as if we decided 15 years ago that giving the= PV > guest kernel a good stack and GSbase was the right thing to do...) No argument about that. > In some copious free time, I think we ought to provide a > minorly-paravirt FRED to PV guests because there are still some > improvements available as low hanging fruit. > > My plan was to have a PV hypervisor leaf advertising paravirt versions > of hardware features, so a guest could see "I don't have architectural > FRED, but I do have paravirt-FRED which is as similar as we can > reasonably make it".=C2=A0 The same goes for a whole bunch of other featu= res. *GROAN* I told you before that we want less paravirt nonsense and not more. I'm serious about that. XENPV CPL3 virtualization is a dead horse from a technical POV. No point in wasting brain cycles to enhance the zombie unless you can get rid of the existing PV nonsense, which you can't for obvious reasons. That said, we can debate this once the more fundamental issues of XEN[PV] have been addressed. I expect that to happen quite some time after I retired :) Thanks, tglx