Message ID | 20240109230250.424295-14-seanjc@google.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-21502-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2411:b0:101:2151:f287 with SMTP id m17csp460546dyi; Tue, 9 Jan 2024 15:08:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IHisKDNq8AFr/aJ5cA8WyfcJb5xEm3mjKtraQev9lK3L+vIsv1O+VJyHAjfh9mfCXXlMP7b X-Received: by 2002:a17:906:c418:b0:a26:f2da:83d5 with SMTP id u24-20020a170906c41800b00a26f2da83d5mr109235ejz.34.1704841701574; Tue, 09 Jan 2024 15:08:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704841701; cv=none; d=google.com; s=arc-20160816; b=dszs98Uavs3s6C99FYq8o+P1In2hQZEdkbQ72W473jyp3aKtQr0jsgUeBZsWLxSIXL v0XnnYW5XjhXHYdZX9V1GSvjyLIryNiZuyldT36NEc0D1ylG2yPnZAKpM5gGLvwrxA58 yJGl5cMQ+egTxeKnslaS3FuKzjkIJXkoAO+SnaJO0T4cRTIkRJGHAviu5ikxmrfurO3C KBtlybS9fap/9yKzH40+L/gwcnmuxwU7AN0voXTH4aC+crouL5DB//lei8wDGuQIW8Zp P2pdM5R6sPQ5eKgJUE8yYOLABCUWnHdvZBJFvTaIa+39gISlmSRwPHqIukeekymGA5db SWSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :reply-to:dkim-signature; bh=1kUdagJS0RkwSIGsouIbjCNUHXTtDF8gUa99CW8Gru4=; fh=gm96CM+cG0KJxn7vnhn0c1c98ILNP1HHUrKfrGecw3M=; b=PaBzUmFCKUp+6q56TqMs4iOBud0mgLYMb/XGxcWKSZRjyFx42IVvdx8HglHGXBGuqU ZIJo62+NXJcuu/be2eoQZG9Y794AQNKnJ5IULrCsx8fMiPlJ2C7QIxeWYH8Qay5bT6im HItA1MtZkBj9yGQw8dulJPiBM9ik8bL+Gg6Av45mw8cRihRDFHWmAFpnALLfF05vrEoN dzkwo778V7G+kw8eAMve9GJfY74vsfBjW7oOJjPNLAdd+KW0Dcnjn6MO7bXRHiwqT747 79nDvjG4+oVvVgTW/psZ3ItJAfbsvTHajT2319A63mKTKpZfqnGQScVl9RVcbbCQY+7C RK+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=f0GbSmzp; spf=pass (google.com: domain of linux-kernel+bounces-21502-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21502-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id oy5-20020a170907104500b00a235f78b047si1173968ejb.537.2024.01.09.15.08.21 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 15:08:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-21502-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=f0GbSmzp; spf=pass (google.com: domain of linux-kernel+bounces-21502-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21502-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 31DE91F24649 for <ouuuleilei@gmail.com>; Tue, 9 Jan 2024 23:08:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1FBD9481B9; Tue, 9 Jan 2024 23:03:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="f0GbSmzp" Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3B9A447A76 for <linux-kernel@vger.kernel.org>; Tue, 9 Jan 2024 23:03:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Received: by mail-yw1-f201.google.com with SMTP id 00721157ae682-5ee22efe5eeso48123577b3.3 for <linux-kernel@vger.kernel.org>; Tue, 09 Jan 2024 15:03:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1704841398; x=1705446198; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:from:to:cc:subject:date:message-id:reply-to; bh=1kUdagJS0RkwSIGsouIbjCNUHXTtDF8gUa99CW8Gru4=; b=f0GbSmzpYP+33Jvp0fC6ebWL69OIh1Zmrq0XRjXlFYhxzSAknu5Tvy7H97AW7P/lVV mJvZJG2gsBo1F3g5dQgJOCeWCcN8Sudi29YVi0YsqekdniDOj6ZKXgEkNpw5mpRNBvER AYrL6gptOBEle8pzG1fUzKtApkdo62DkMVMNqvRxTO1KkfJ3Su9QhZKFvuH0s3I9qMo6 n7qDRZSD70opkx4ZpcCbz4oYkLrdJ1gx4ApRQUbUetgQFX7tqjQDPOxxCXr46CV6XAZT 8Kpj4Alxaz1I3Wi0t5zHKHTaZ6HyxXjaGWTFqZt5t/6iWQDsh6oiJb5nYm7fi8REoN70 F4mA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704841398; x=1705446198; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1kUdagJS0RkwSIGsouIbjCNUHXTtDF8gUa99CW8Gru4=; b=qnu1QUGMWhFJoDLSFqTvmwQvn1W3CmBdwvZMxJ13CUQVsTu+fxwXyE1hNFJTTSq/SG 9WQMpzwvtpxIUqQpy8oo34YmddBpnNnUJhmzShRT5lP+n+svEflRe7QDE4X3bDH4KQDu UBRjdjx0wXQOiY/ENBhwhKmhDhjLvXVze24rsrn3UAfJDxF5eCQ2LBvGRPaNqgJo6vtr VhPyLhnm4dSbZknBnhjU99fkwLKV7tJFFPTBfJvguck6bejntCauM3f4dGqbfRQttTQ8 D3Uh8f5CIOpuCdGdWxl+YDMWRJSzRNbEnk5CvwDmUYk91h+SyJD49IhouOqfszi4Qslm JWJg== X-Gm-Message-State: AOJu0YxJirli+QP0pkm/yRIM0yyw5+e1v496uvwp3MhEeNAiM0FLicov qu0s62rId5GX8Q/ck0USy88gpjwol/6XKJP0Hw== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a25:8211:0:b0:dbe:387d:a8ef with SMTP id q17-20020a258211000000b00dbe387da8efmr5333ybk.1.1704841398399; Tue, 09 Jan 2024 15:03:18 -0800 (PST) Reply-To: Sean Christopherson <seanjc@google.com> Date: Tue, 9 Jan 2024 15:02:33 -0800 In-Reply-To: <20240109230250.424295-1-seanjc@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> Mime-Version: 1.0 References: <20240109230250.424295-1-seanjc@google.com> X-Mailer: git-send-email 2.43.0.472.g3155946c3a-goog Message-ID: <20240109230250.424295-14-seanjc@google.com> Subject: [PATCH v10 13/29] KVM: selftests: Drop the "name" param from KVM_X86_PMU_FEATURE() From: Sean Christopherson <seanjc@google.com> To: Sean Christopherson <seanjc@google.com>, Paolo Bonzini <pbonzini@redhat.com> Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Kan Liang <kan.liang@linux.intel.com>, Dapeng Mi <dapeng1.mi@linux.intel.com>, Jim Mattson <jmattson@google.com>, Jinrong Liang <cloudliang@tencent.com>, Aaron Lewis <aaronlewis@google.com>, Like Xu <likexu@tencent.com> Content-Type: text/plain; charset="UTF-8" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787656091985928240 X-GMAIL-MSGID: 1787656091985928240 |
Series |
KVM: x86/pmu: selftests: Fixes and new tests
|
|
Commit Message
Sean Christopherson
Jan. 9, 2024, 11:02 p.m. UTC
Drop the "name" parameter from KVM_X86_PMU_FEATURE(), it's unused and the name is redundant with the macro, i.e. it's truly useless. Reviewed-by: Jim Mattson <jmattson@google.com> Signed-off-by: Sean Christopherson <seanjc@google.com> --- tools/testing/selftests/kvm/include/x86_64/processor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/testing/selftests/kvm/include/x86_64/processor.h b/tools/testing/selftests/kvm/include/x86_64/processor.h index 932944c4ea01..4f737d3b893c 100644 --- a/tools/testing/selftests/kvm/include/x86_64/processor.h +++ b/tools/testing/selftests/kvm/include/x86_64/processor.h @@ -290,7 +290,7 @@ struct kvm_x86_cpu_property { struct kvm_x86_pmu_feature { struct kvm_x86_cpu_feature anti_feature; }; -#define KVM_X86_PMU_FEATURE(name, __bit) \ +#define KVM_X86_PMU_FEATURE(__bit) \ ({ \ struct kvm_x86_pmu_feature feature = { \ .anti_feature = KVM_X86_CPU_FEATURE(0xa, 0, EBX, __bit), \ @@ -299,7 +299,7 @@ struct kvm_x86_pmu_feature { feature; \ }) -#define X86_PMU_FEATURE_BRANCH_INSNS_RETIRED KVM_X86_PMU_FEATURE(BRANCH_INSNS_RETIRED, 5) +#define X86_PMU_FEATURE_BRANCH_INSNS_RETIRED KVM_X86_PMU_FEATURE(5) static inline unsigned int x86_family(unsigned int eax) {