From: "Mi, Dapeng" <dapeng1.mi@linux.intel.com>
To: Sean Christopherson <seanjc@google.com>,
Paolo Bonzini <pbonzini@redhat.com>
Cc: kvm@vger.kernel.org, Jim Mattson <jmattson@google.com>,
Xiong Zhang <xiong.y.zhang@intel.com>,
Mingwei Zhang <mizhang@google.com>
Subject: Re: [kvm-unit-tests PATCH v7 04/18] x86: pmu: Align fields in pmu_counter_t to better pack the struct
Date: Wed, 19 Feb 2025 09:34:04 +0800 [thread overview]
Message-ID: <5a4fd78c-a3aa-41af-bf08-53e2a8b754f2@linux.intel.com> (raw)
In-Reply-To: <20250215013636.1214612-5-seanjc@google.com>
On 2/15/2025 9:36 AM, Sean Christopherson wrote:
> From: Dapeng Mi <dapeng1.mi@linux.intel.com>
>
> Hoist "idx" up in the pmu_counter_t structure so that the structure is
> naturally packed for 64-bit builds.
>
> Signed-off-by: Dapeng Mi <dapeng1.mi@linux.intel.com>
> Link: https://lore.kernel.org/r/20240914101728.33148-5-dapeng1.mi@linux.intel.com
> [sean: rewrite changelog]
> Signed-off-by: Sean Christopherson <seanjc@google.com>
Thanks for root causing the issue and rewriting the change log.
> ---
> x86/pmu.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/x86/pmu.c b/x86/pmu.c
> index 60db8bdf..a0268db8 100644
> --- a/x86/pmu.c
> +++ b/x86/pmu.c
> @@ -21,9 +21,9 @@
>
> typedef struct {
> uint32_t ctr;
> + uint32_t idx;
> uint64_t config;
> uint64_t count;
> - int idx;
> } pmu_counter_t;
>
> struct pmu_event {
next prev parent reply other threads:[~2025-02-19 1:34 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-15 1:36 [kvm-unit-tests PATCH v7 00/18] x86/pmu: Fixes and improvements Sean Christopherson
2025-02-15 1:36 ` [kvm-unit-tests PATCH v7 01/18] x86: pmu: Remove duplicate code in pmu_init() Sean Christopherson
2025-02-15 1:36 ` [kvm-unit-tests PATCH v7 02/18] x86: pmu: Remove blank line and redundant space Sean Christopherson
2025-02-15 1:36 ` [kvm-unit-tests PATCH v7 03/18] x86: pmu: Refine fixed_events[] names Sean Christopherson
2025-02-15 1:36 ` [kvm-unit-tests PATCH v7 04/18] x86: pmu: Align fields in pmu_counter_t to better pack the struct Sean Christopherson
2025-02-19 1:34 ` Mi, Dapeng [this message]
2025-02-15 1:36 ` [kvm-unit-tests PATCH v7 05/18] x86: pmu: Enlarge cnt[] length to 48 in check_counters_many() Sean Christopherson
2025-02-15 1:36 ` [kvm-unit-tests PATCH v7 06/18] x86: pmu: Print measured event count if test fails Sean Christopherson
2025-02-15 1:36 ` [kvm-unit-tests PATCH v7 07/18] x86: pmu: Fix potential out of bound access for fixed events Sean Christopherson
2025-02-15 1:36 ` [kvm-unit-tests PATCH v7 08/18] x86: pmu: Fix cycles event validation failure Sean Christopherson
2025-02-15 1:36 ` [kvm-unit-tests PATCH v7 09/18] x86: pmu: Use macro to replace hard-coded branches event index Sean Christopherson
2025-02-15 1:36 ` [kvm-unit-tests PATCH v7 10/18] x86: pmu: Use macro to replace hard-coded ref-cycles " Sean Christopherson
2025-02-15 1:36 ` [kvm-unit-tests PATCH v7 11/18] x86: pmu: Use macro to replace hard-coded instructions " Sean Christopherson
2025-02-15 1:36 ` [kvm-unit-tests PATCH v7 12/18] x86: pmu: Enable and disable PMCs in loop() asm blob Sean Christopherson
2025-02-15 1:36 ` [kvm-unit-tests PATCH v7 13/18] x86: pmu: Improve instruction and branches events verification Sean Christopherson
2025-02-15 1:36 ` [kvm-unit-tests PATCH v7 14/18] x86: pmu: Improve LLC misses event verification Sean Christopherson
2025-02-15 1:36 ` [kvm-unit-tests PATCH v7 15/18] x86: pmu: Adjust lower boundary of llc-misses event to 0 for legacy CPUs Sean Christopherson
2025-02-19 1:49 ` Mi, Dapeng
2025-02-15 1:36 ` [kvm-unit-tests PATCH v7 16/18] x86: pmu: Add IBPB indirect jump asm blob Sean Christopherson
2025-02-15 1:36 ` [kvm-unit-tests PATCH v7 17/18] x86: pmu: Adjust lower boundary of branch-misses event Sean Christopherson
2025-02-15 1:36 ` [kvm-unit-tests PATCH v7 18/18] x86: pmu: Optimize emulated instruction validation Sean Christopherson
2025-02-19 9:31 ` [kvm-unit-tests PATCH v7 00/18] x86/pmu: Fixes and improvements Mi, Dapeng
2025-02-24 17:24 ` Sean Christopherson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5a4fd78c-a3aa-41af-bf08-53e2a8b754f2@linux.intel.com \
--to=dapeng1.mi@linux.intel.com \
--cc=jmattson@google.com \
--cc=kvm@vger.kernel.org \
--cc=mizhang@google.com \
--cc=pbonzini@redhat.com \
--cc=seanjc@google.com \
--cc=xiong.y.zhang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.