Thread (12 messages) 12 messages, 5 authors, 2025-01-28

Re: [PATCH v3 4/6] kvm powerpc/book3s-apiv2: Introduce kvm-hv specific PMU

From: Madhavan Srinivasan <maddy@linux.ibm.com>
Date: 2025-01-28 11:57:57
Also in: kvm


On 1/27/25 1:06 PM, Vaibhav Jain wrote:
Hi Athira,

Thanks for reviewing this patch series. My responses to your review
comment inline below:


Athira Rajeev [off-list ref] writes:
quoted
quoted
On 23 Jan 2025, at 5:37 PM, Vaibhav Jain [off-list ref] wrote:

Introduce a new PMU named 'kvm-hv' to report Book3s kvm-hv specific
<snip>
quoted
Hi Vaibhav

All PMU specific code is under “arch/powerpc/perf in the kernel source. Here since we are introducing a kvm-hv specific PMU, can we please have it in arch/powerpc/perf ?
Is it common convention to put PMU specific code in
arch/powerpc/perf across ppc achitecture variants ? If its there can you
please mention the reasons behind it.
My concern is about fragmentation. Would prefer to have
the pmu code under perf folder. Secondly, we did handle
module case for vpa-pmu.

Maddy

Also the code for this PMU, will be part of kvm-hv kernel module as it
utilizes the functionality implemented there. Moving this PMU code to
arch/powerpc/perf will need this to be converted in yet another new
kernel module, adding a dependency to kvm-hv module and exporting a
bunch of functionality from kvm-hv. Which looks bit messy to me

<snip>
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help