Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp607993ybz; Wed, 15 Apr 2020 15:03:47 -0700 (PDT) X-Google-Smtp-Source: APiQypKguvr/ZG8Frq3+rJ1f70etzLxX7Y2q4xhQI56Ox5WKiVRE1GZjjGTEU8fayZg1n2HAOD5C X-Received: by 2002:a17:906:b2c2:: with SMTP id cf2mr6792915ejb.262.1586988227483; Wed, 15 Apr 2020 15:03:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586988227; cv=none; d=google.com; s=arc-20160816; b=d+2UEJM1n9Mg8TYvA3OvMVJzPC40o5rPQiZJa55chE/7pNOkkVwsgnqwSBg1LBhMMD rQvGsC/uvI/Zb221R3V4DslTb5YPPwjAu2CP3Fsliw/dlDp4QxSz/weeTvcwbTQ6RXOs NijZ2StnlwuJdjnzdWszeS7J30kaJMe/zsv5HPmmsohBpn0qBVmnEWV14U9FPEHNR9Tk aTu9IgNRuDcVsL+CuJo+ftxzaJ42JqpDNrkzGceh4kDoJZYHZbf6QQkQjLSsEu7OgE5d L1n+WDwfwf0VghXzDC5jLd8EefhPom9br5K+9yxmMFY/YdnZp5JFg3sjE4AYUxU5nXTg AlUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=HDqOJCPgEK9g9AHgOiG3+oy9cj0ecKXXHHhJMSGPh7Y=; b=QyBJ3+MLs9sBu7ixhUPWsKKm6ALNgGTLFLWi32UhWJbxlQ9LwwW6Jzfc30xIXNyNzK ZOLMNoCFd+CCBB0H/+tn+jCEF54LXauuSjE9nzcb/V9Jvyws5ysuwKYwX0cgq2xzz6r+ UvvYZ8BbuzNJcRldwFTPOSRHn/Df1vKfe796L8E6hWWnGcGSWUQknG9IGgYKOGTiweVj wRUPaaDX+kzovHi7jsDeHZ/d6CSOf0PEFGEKF9ZxbEOkEBuFW0VwTQhl2WK/tvIbXZ5B VsMkrHorURfZYmX12SF9WMxRD4tPBC6F9P9HweaYfB5bl4hBj1uQDCs2NF4HehQZAcFm wyCQ== 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id do15si13425540ejc.95.2020.04.15.15.03.18; Wed, 15 Apr 2020 15:03:47 -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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2393005AbgDOCvL (ORCPT + 99 others); Tue, 14 Apr 2020 22:51:11 -0400 Received: from mga01.intel.com ([192.55.52.88]:1607 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730346AbgDOCvH (ORCPT ); Tue, 14 Apr 2020 22:51:07 -0400 IronPort-SDR: FDcLjSRNUQGMlO6tN1lEKPA4uyVIi972AacZmK5IA6iTWQrx0EkB5TQYCDfkYhCmsWKUgNXIaV m7AWqx+rWx1A== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2020 19:51:05 -0700 IronPort-SDR: 5lXNmwCXudgWW8KsmxKVXjnbctzEfYwxrspNAggrcqJvmWIEruLwb4wz1c845I4voEH0SJWFnK 884hRA6oncJw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,385,1580803200"; d="scan'208";a="272027224" Received: from sjchrist-coffee.jf.intel.com (HELO linux.intel.com) ([10.54.74.202]) by orsmga008.jf.intel.com with ESMTP; 14 Apr 2020 19:51:05 -0700 Date: Tue, 14 Apr 2020 19:51:05 -0700 From: Sean Christopherson To: Jon Cargille Cc: Paolo Bonzini , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , x86@kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Eric Northup , Eric Northup Subject: Re: [PATCH 1/1] KVM: pass through CPUID(0x80000006) Message-ID: <20200415025105.GE12547@linux.intel.com> References: <20200415012320.236065-1-jcargill@google.com> <20200415023726.GD12547@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200415023726.GD12547@linux.intel.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 14, 2020 at 07:37:26PM -0700, Sean Christopherson wrote: > On Tue, Apr 14, 2020 at 06:23:20PM -0700, Jon Cargille wrote: > > From: Eric Northup > > > > Return L2 cache and TLB information to guests. > > They could have been set before, but the defaults that KVM returns will be > > necessary for usermode that doesn't supply their own CPUID tables. > > I don't follow the changelog. The code makes sense, but I don't understand > the justification. This only affects KVM_GET_SUPPORTED_CPUID, i.e. what's > advertised to userspace, it doesn't directly change CPUID emulation in any > way. The "They could have been set before" blurb is especially confusing. > > I assume you want to say something like: > > Return the host's L2 cache and TLB information for CPUID.0x80000006 > instead of zeroing out the entry as part of KVM_GET_SUPPORTED_CPUID. > This allows a userspace VMM to feed KVM_GET_SUPPORTED_CPUID's output > directly into KVM_SET_CPUID2 (without breaking the guest). > > > Signed-off-by: Eric Northup > > Signed-off-by: Eric Northup > > Signed-off-by: Jon Cargille > > Signed-off-by: Jim Mattson > > Jim's tag is unnecessary, unless he was a middleman between Eric and Jon, > in which case Jim's tag should also come between Eric's and Jon's. > > Only one of Eric's signoffs is needed (the one that matches the From: tag, > i.e. is the official author). I'm guessing Google would prefer the author > to be the @google.com address. Ah, Eric's @google.com mail bounced. Maybe do: Signed-off-by: Eric Northup (Google) to clarify the work was done for Google without having a double signoff and/or a dead email.