mbox series

[0/2] KVM vPMU code refine

Message ID 20240619182128.4131355-1-dapeng1.mi@linux.intel.com (mailing list archive)
Headers show
Series KVM vPMU code refine | expand

Message

Mi, Dapeng June 19, 2024, 6:21 p.m. UTC
This small patchset refines KVM vPMU code and relevant selftests.
Patch 1/2 defines new macro KVM_PMC_MAX_GENERIC to avoid the Intel
specific macro KVM_INTEL_PMC_MAX_GENERIC to be used in vPMU x86 common
code. Patch 2/2 reduces the verbosity of "Random seed" messages to avoid
the hugh number of messages to flood the regular output of selftests.

No logic change in this patchset and Kselftests/KUT PMU related tests
passed with this patchset.

Dapeng Mi (2):
  KVM: x86/pmu: Define KVM_PMC_MAX_GENERIC for platform independence
  selftests: kvm: Reduce verbosity of "Random seed" messages

 arch/x86/include/asm/kvm_host.h            | 9 +++++----
 arch/x86/kvm/svm/pmu.c                     | 2 +-
 arch/x86/kvm/vmx/pmu_intel.c               | 2 ++
 tools/testing/selftests/kvm/lib/kvm_util.c | 2 +-
 4 files changed, 9 insertions(+), 6 deletions(-)


base-commit: 0ce958282e66b3d1882e2bb2f503a5e2cebcc3ef

Comments

Sean Christopherson June 20, 2024, 4:07 p.m. UTC | #1
On Thu, Jun 20, 2024, Dapeng Mi wrote:
> This small patchset refines KVM vPMU code and relevant selftests.
> Patch 1/2 defines new macro KVM_PMC_MAX_GENERIC to avoid the Intel
> specific macro KVM_INTEL_PMC_MAX_GENERIC to be used in vPMU x86 common
> code. Patch 2/2 reduces the verbosity of "Random seed" messages to avoid
> the hugh number of messages to flood the regular output of selftests.

In the future, please post these as separate patches, they are completely unrelated.
Mi, Dapeng June 21, 2024, 12:28 a.m. UTC | #2
On 6/21/2024 12:07 AM, Sean Christopherson wrote:
> On Thu, Jun 20, 2024, Dapeng Mi wrote:
>> This small patchset refines KVM vPMU code and relevant selftests.
>> Patch 1/2 defines new macro KVM_PMC_MAX_GENERIC to avoid the Intel
>> specific macro KVM_INTEL_PMC_MAX_GENERIC to be used in vPMU x86 common
>> code. Patch 2/2 reduces the verbosity of "Random seed" messages to avoid
>> the hugh number of messages to flood the regular output of selftests.
> In the future, please post these as separate patches, they are completely unrelated.

Sure. Thanks.