Re: [PATCH 2/5] xen/perfc: Add perfc_defn.h to asm-generic

2025-01-07 Thread Oleksii Kurochko
On 1/2/25 8:25 PM, Andrew Cooper wrote: ... and hook it up for RISC-V and PPC. On RISC-V at least, no combination of headers pulls in errno.h, so include it explicitly. Guard the hypercalls array declaration based on NR_hypercalls existing. This is sufficient to get PERF_COUNTERS fully worki

Re: [PATCH 2/5] xen/perfc: Add perfc_defn.h to asm-generic

2025-01-06 Thread Stefano Stabellini
On Sat, 4 Jan 2025, Nicola Vetrini wrote: > On 2025-01-04 00:29, Stefano Stabellini wrote: > > On Thu, 2 Jan 2025, Andrew Cooper wrote: > > > ... and hook it up for RISC-V and PPC. > > > > > > On RISC-V at least, no combination of headers pulls in errno.h, so include > > > it > > > explicitly. > >

Re: [PATCH 2/5] xen/perfc: Add perfc_defn.h to asm-generic

2025-01-06 Thread Andrew Cooper
On 06/01/2025 10:29 am, Jan Beulich wrote: > On 02.01.2025 20:25, Andrew Cooper wrote: >> ... and hook it up for RISC-V and PPC. >> >> On RISC-V at least, no combination of headers pulls in errno.h, so include it >> explicitly. >> >> Guard the hypercalls array declaration based on NR_hypercalls exi

Re: [PATCH 2/5] xen/perfc: Add perfc_defn.h to asm-generic

2025-01-06 Thread Jan Beulich
On 02.01.2025 20:25, Andrew Cooper wrote: > ... and hook it up for RISC-V and PPC. > > On RISC-V at least, no combination of headers pulls in errno.h, so include it > explicitly. > > Guard the hypercalls array declaration based on NR_hypercalls existing. This > is sufficient to get PERF_COUNTERS

Re: [PATCH 2/5] xen/perfc: Add perfc_defn.h to asm-generic

2025-01-04 Thread Nicola Vetrini
On 2025-01-04 00:29, Stefano Stabellini wrote: On Thu, 2 Jan 2025, Andrew Cooper wrote: ... and hook it up for RISC-V and PPC. On RISC-V at least, no combination of headers pulls in errno.h, so include it explicitly. Guard the hypercalls array declaration based on NR_hypercalls existing. T

Re: [PATCH 2/5] xen/perfc: Add perfc_defn.h to asm-generic

2025-01-03 Thread Stefano Stabellini
On Thu, 2 Jan 2025, Andrew Cooper wrote: > ... and hook it up for RISC-V and PPC. > > On RISC-V at least, no combination of headers pulls in errno.h, so include it > explicitly. > > Guard the hypercalls array declaration based on NR_hypercalls existing. This > is sufficient to get PERF_COUNTERS

[PATCH 2/5] xen/perfc: Add perfc_defn.h to asm-generic

2025-01-02 Thread Andrew Cooper
... and hook it up for RISC-V and PPC. On RISC-V at least, no combination of headers pulls in errno.h, so include it explicitly. Guard the hypercalls array declaration based on NR_hypercalls existing. This is sufficient to get PERF_COUNTERS fully working on RISC-V and PPC, so drop the randconfig