Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp13809339rwl; Wed, 4 Jan 2023 13:28:35 -0800 (PST) X-Google-Smtp-Source: AMrXdXtgfOE2dkObaCbAhSQlklmtjsBx/tCnGEUvS7LDf4cMjuafKNJN/D+PSs9fJifsYOkTru/k X-Received: by 2002:a05:6a21:3942:b0:9d:efbe:2065 with SMTP id ac2-20020a056a21394200b0009defbe2065mr67064033pzc.27.1672867714997; Wed, 04 Jan 2023 13:28:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672867714; cv=none; d=google.com; s=arc-20160816; b=bRdlrGMyAQZnbtbDG/qga4x85HFX55ad92CobkK3conVJv8p/yxDoygGxHSHCd57N1 SWqxqnYkiayjvMHNmhh1IW8Tfkwb5M+Tu6tBdaqh1avHJPQUx99sJFZDiP7NpVYvHPQq FnFrLaJZQZV5NoOeWwug0J5QzTb6qLLVcJYxqPD6xXUEDIoIU9xFjQBIKc6opXcauUnI VR5donIm4Ct2XhJt8YKLrhaR6s1le7AUB7UgKyJcfDCx5kiJo2RLSV1ZB0tQlCbnm3m/ +nIy61sZtvvxJx6qIltlz96aOLgNpEEII0RGBzmllkdl8B1QK9ZQ9qGdOIaAe2tLp6zg zQxQ== 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:references:in-reply-to:user-agent:subject:cc:to:from :date:dkim-signature; bh=DdXvznrWNFXCWn/0dzxvJoX7bP6fArqWW8xJiDt8/zM=; b=KB2+jLsw9G++o4BWKoPUC0QTMl4FWBR/2Nnf8dFlGIBusQI+t+JoBTfQ/coETRevEG mb8brI+6sbEtk/Ds5sl6+5H7G/1WX03vNc/4jtO7GI0AyNseDlMuuhhTcuVOjoqBtGUA uL55QfJxYsHYkyPgGV7OwaeQxpJwq6LLuNTYfIF5NBods5OJRObFoPB+eIPmb1y5jZMV C8DLm7w7Zll5hec1t1XKMc0+u1shZH2jKsuBkBBnP6l9IC1bcGU57KH8DKgqW/hff/fT f4hJGPJVhk47UjDdxTo4kfVfDjeIHYUu5HOquPGC8+R5oInBv60SF+jdRQvw/9KVdRpN cWdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=ETs0XrrI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id rm9-20020a17090b3ec900b00226c6e34298si86665pjb.23.2023.01.04.13.28.27; Wed, 04 Jan 2023 13:28:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=ETs0XrrI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239670AbjADVDY (ORCPT + 56 others); Wed, 4 Jan 2023 16:03:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235503AbjADVDV (ORCPT ); Wed, 4 Jan 2023 16:03:21 -0500 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 456EC18E25; Wed, 4 Jan 2023 13:03:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:Content-Type :MIME-Version:Message-ID:References:In-Reply-To:Subject:CC:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=DdXvznrWNFXCWn/0dzxvJoX7bP6fArqWW8xJiDt8/zM=; b=ETs0XrrINbauFT2FNiPan8dX/h smrSRTJL8gZM3NK1XmGCEoHDQpWXIp/7+j08+gEU3WBABGfV8lB9/uYxsj7wWxPfMmLl3IHUwpj3n kn0PYXLHRhgaOsBOPZg82zGOS/5BP7JmytEEnAog2qrIcS/FP0x9gvaqWerZcJiett/oCAWLrQwOH BIkaS6ROtmAWt0y3pVnb0HdOwnqJZGAD+aVAtse2jnenc9Mc6DJxA9lPbknW9nqG7XAF59005QCLl Z/UOLhVTXZ+nN+ngaM6DOVsYKEZzcqccmLiyNvHQ9Lv6Gm80cbkQaYFn+Ib3s2k/t4Nugns3yXnSg w17j9Eig==; Received: from [172.31.31.126] (helo=[127.0.0.1]) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1pDAub-0014WI-1Z; Wed, 04 Jan 2023 21:03:02 +0000 Date: Wed, 04 Jan 2023 21:03:04 +0000 From: David Woodhouse To: Sean Christopherson CC: Paul Durrant , x86@kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Paolo Bonzini , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" Subject: =?US-ASCII?Q?Re=3A_=5BPATCH_v6_2/2=5D_KVM=3A_x86/xen=3A_update_Xen_C?= =?US-ASCII?Q?PUID_Leaf_4_=28tsc_info=29_sub-leaves=2C_if_present?= User-Agent: K-9 Mail for Android In-Reply-To: References: <20221220134053.15591-1-pdurrant@amazon.com> <20221220134053.15591-3-pdurrant@amazon.com> <0e58d9a6bc8bf15c23feff25ec24e9b3c26945cc.camel@infradead.org> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-SRS-Rewrite: SMTP reverse-path rewritten from by desiato.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4 January 2023 20:20:55 GMT, Sean Christopherson = wrote: >On Wed, Jan 04, 2023, David Woodhouse wrote: >> On Wed, 2023-01-04 at 19:40 +0000, Sean Christopherson wrote: >> >=20 >> > arch/x86/include/asm/xen/hypervisor=2Eh also open codes the signature= =2E=C2=A0 Rather than >> > add a KVM-specific define, what about putting in xen/cpuid=2Eh?=C2=A0= (I've had a version >> > of this series sitting in my todo pile for far too long, sorry)=2E >>=20 >> xen/cpuid=2Eh is an external header imported from Xen itself so in >> general I'd prefer to avoid modifying it unless we also send the >> changes upstream=2E > >*sigh* Fool me once=2E=2E=2E > >Can we shove it into arch/x86/include/asm/xen/hypervisor=2Eh? Or is incl= uding >that in KVM too confusing/ugly? Maybe, if that's our own header=2E We do include a bunch of stuff intended= for use by Xen guests, in arch/x86/kvm/xen=2Ec to provide Xen support=2E I= t's only the 32-bit compat bits we define for ourselves within arch/x86/kvm= /xen=2Eh=2E