Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp5938248ybf; Thu, 5 Mar 2020 09:51:21 -0800 (PST) X-Google-Smtp-Source: ADFU+vu4HSi+/HeJRmoZZ8PHwDMJTBT6u5vhIrNi3UrIepr1Y4MCdh5Mrzszgg1z3f7qP2Niz+TS X-Received: by 2002:a9d:12a3:: with SMTP id g32mr7010242otg.111.1583430681735; Thu, 05 Mar 2020 09:51:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583430681; cv=none; d=google.com; s=arc-20160816; b=uKAw0XfT7o1uO8qtK13TNpI05lNDdpsfSMzlRfxNqxwqbulhcrrLq1NTMgVX0l7mVX nnEQNgYk1fCGQUz5WRe03MLtLl3JH1B3f2hSkudSLs3wag7yWzbIjPTIOTkPpP5/wpYI PX46zckKaglOEUEiMKFYFPwtjLKAR+o94mBfc+gcbtFzaGsE09+jgZ4KVyRJdDhArCBM Tg40zWk8yENkUZ49kj/bjEGWkMg+TXjRNzNeNXmMup3xhFlCo2nJGqhsiTtPH92cu31s CmI7wacgxMqU8zEAA0RQFvEA3chLSi+Iky0LvbKJn8NmiGsTDj+v8ZakLXQqVtCMeRtP IVWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=mBJW8gx1NwCYJZ6C32I3khXprWS5Apfr0LoAE1ulS3s=; b=um/455/NnedsHJapy/6kgpvNXSHFSRz5WdqFC+Fq1Nv2mcVbormUzRFD7xMB1ndLSf uTKT6KX/ThnFCNiNlVrKuWcD9KcHpo+K+WJqHM1s3vnKaD3LiqZVqQyqK1i07hsBh62H v11qzxB0MbyaW2+CwHmEU+N3ppXou/9/ataJCgRcyrJYdXbiTBtmnwLamuZXjsC+OIfE n/9apynkVW0cetrA6U6DrNXbt0OnmfYTOiZBwZFRzWIPOseQH1dzFMpZb3DaNpJJGvq5 FmZLsjH2WVuIU/ulw8rBfCacFjOpdwM1TNyztEIRi82VkcAsc+fPfsZjcULXf+0hFc7G FCPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=XyHzg8iL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x23si3406523otp.249.2020.03.05.09.51.09; Thu, 05 Mar 2020 09:51:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=XyHzg8iL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726007AbgCERuw (ORCPT + 99 others); Thu, 5 Mar 2020 12:50:52 -0500 Received: from mail-io1-f68.google.com ([209.85.166.68]:41356 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726020AbgCERuw (ORCPT ); Thu, 5 Mar 2020 12:50:52 -0500 Received: by mail-io1-f68.google.com with SMTP id m25so7421981ioo.8 for ; Thu, 05 Mar 2020 09:50:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mBJW8gx1NwCYJZ6C32I3khXprWS5Apfr0LoAE1ulS3s=; b=XyHzg8iLZH7P0rhH3rE0jN5n16xEWeerk/1VglLKBH79VGIHzvfeKOHOeudeRDq3/d wy9Kv7/34MgHYuJyP0YVav7XXJZPjLmYpD1CxiOAQPx2fX44JFWVEm+dDtnYTO0/uqqK blg6BpKtRQ7v0FZKVYymkfPgrAwYEuG6V0DYd/ys2v/fw0o61OTRP0Q76V/Cn+S6+7UO fDk7M+YSeFQF754MJ9wGAopxvzr9ZfSf3xu9ZaRQgcfP5FnL/KaU5D0mITTB/z8vHF/o TXOWHnUe9yA7QRGpXk0rRNY6aXRwa2FXbGXBTH3j2vgwgI+KUFn8wnfeocl6ryR4lAUQ HFOg== 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=mBJW8gx1NwCYJZ6C32I3khXprWS5Apfr0LoAE1ulS3s=; b=tvR9443QdgGtZ4NNHRvc/pkNOcrXWWE3lBdtWEXGbdU4ovaPaVAEmG+TRJwTpFbvc0 FQ0nzpHLtI6xZUUnHTN2yGXTs22LUqz2O3H0S4t4MI7S2W2X03nq4LPeFAt2GdfYEmb+ /SkWGyenovjxrsBNzBOjV7DC1P+sjh9yDWpboiQW7kRS5OzlfA2hHbdRNSqzaWZc2/x3 OZ8Aao8JnRkUJEHDU6Vj6oFOx2YuBCqf+zns+XZCJy54eXD52XBNHQfoCZV1EX/HRn76 PVtm3u4ZnHBQsJKLu/sMAYK5tE7PlpP6eadXhPer57NxvRPz/+WZo8OtTwsFmuKvI70W Ba+w== X-Gm-Message-State: ANhLgQ0F35+8cg7L/AMxV4+Wsi3cYRK/sYqG+bic1McK+xCBT+mjUYWH UXvj+uA2EYEP3iY9AKeN65gAmXFTqDuBgYtgy+loPw== X-Received: by 2002:a02:cf0f:: with SMTP id q15mr8987301jar.48.1583430651537; Thu, 05 Mar 2020 09:50:51 -0800 (PST) MIME-Version: 1.0 References: <20200305013437.8578-1-sean.j.christopherson@intel.com> <20200305013437.8578-2-sean.j.christopherson@intel.com> In-Reply-To: <20200305013437.8578-2-sean.j.christopherson@intel.com> From: Jim Mattson Date: Thu, 5 Mar 2020 09:50:40 -0800 Message-ID: Subject: Re: [PATCH v2 1/7] KVM: x86: Trace the original requested CPUID function in kvm_cpuid() To: Sean Christopherson Cc: Paolo Bonzini , Vitaly Kuznetsov , Wanpeng Li , Joerg Roedel , kvm list , LKML , Pu Wen Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 4, 2020 at 5:34 PM Sean Christopherson wrote: > > From: Jan Kiszka > > Trace the requested CPUID function instead of the effective function, > e.g. if the requested function is out-of-range and KVM is emulating an > Intel CPU, as the intent of the tracepoint is to show if the output came > from the actual leaf as opposed to the max basic leaf via redirection. > > Similarly, leave "found" as is, i.e. report that an entry was found if > and only if the requested entry was found. > > Fixes: 43561123ab37 ("kvm: x86: Improve emulation of CPUID leaves 0BH and 1FH") > Signed-off-by: Jan Kiszka > [Sean: Drop "found" semantic change, reword changelong accordingly ] > Signed-off-by: Sean Christopherson Reviewed-by: Jim Mattson