Re: [PATCH 1/4] RISC-V: KVM: Disable the kernel perf counter during configure

2025-02-27 Thread Andrew Jones
On Wed, Feb 26, 2025 at 12:25:03PM -0800, Atish Patra wrote: > The perf event should be marked disabled during the creation as > it is not ready to be scheduled until there is SBI PMU start call > or config matching is called with auto start. Otherwise, event add/start > gets called during perf_eve

[PATCH 1/4] RISC-V: KVM: Disable the kernel perf counter during configure

2025-02-26 Thread Atish Patra
The perf event should be marked disabled during the creation as it is not ready to be scheduled until there is SBI PMU start call or config matching is called with auto start. Otherwise, event add/start gets called during perf_event_create_kernel_counter function. It will be enabled and scheduled t