Re: [PATCH v3 7/9] xen/riscv: introduce and init SBI RFENCE extension

2024-08-07 Thread Jan Beulich
On 07.08.2024 13:29, oleksii.kuroc...@gmail.com wrote: > On Tue, 2024-07-30 at 11:17 +0200, Jan Beulich wrote: > + > +static void sbi_cpumask_to_hartmask(const struct cpumask > *cmask, > + struct cpumask *hmask) I doubt it is valud to re-use struct cpumask

Re: [PATCH v3 7/9] xen/riscv: introduce and init SBI RFENCE extension

2024-08-07 Thread oleksii . kurochko
On Tue, 2024-07-30 at 11:17 +0200, Jan Beulich wrote: > > > > + > > > > +static void sbi_cpumask_to_hartmask(const struct cpumask > > > > *cmask, > > > > + struct cpumask *hmask) > > > > > > I doubt it is valud to re-use struct cpumask for hart maps. > > Why not? Would it be better

Re: [PATCH v3 7/9] xen/riscv: introduce and init SBI RFENCE extension

2024-07-30 Thread Jan Beulich
On 30.07.2024 13:57, oleksii.kuroc...@gmail.com wrote: > On Tue, 2024-07-30 at 11:17 +0200, Jan Beulich wrote: >> On 30.07.2024 10:44, oleksii.kuroc...@gmail.com wrote: >>> On Mon, 2024-07-29 at 17:52 +0200, Jan Beulich wrote: On 24.07.2024 17:31, Oleksii Kurochko wrote: > +/* >>

Re: [PATCH v3 7/9] xen/riscv: introduce and init SBI RFENCE extension

2024-07-30 Thread oleksii . kurochko
On Tue, 2024-07-30 at 11:17 +0200, Jan Beulich wrote: > On 30.07.2024 10:44, oleksii.kuroc...@gmail.com wrote: > > On Mon, 2024-07-29 at 17:52 +0200, Jan Beulich wrote: > > > On 24.07.2024 17:31, Oleksii Kurochko wrote: > > > > > > > > > > +/* > > > > + * Send SFENCE_VMA to a set of target HARTs.

Re: [PATCH v3 7/9] xen/riscv: introduce and init SBI RFENCE extension

2024-07-30 Thread Jan Beulich
On 30.07.2024 10:44, oleksii.kuroc...@gmail.com wrote: > On Mon, 2024-07-29 at 17:52 +0200, Jan Beulich wrote: >> On 24.07.2024 17:31, Oleksii Kurochko wrote: >> >> >>> +/* >>> + * Send SFENCE_VMA to a set of target HARTs. >>> + * >>> + * @param hart_mask mask representing set of target HARTs >>> +

Re: [PATCH v3 7/9] xen/riscv: introduce and init SBI RFENCE extension

2024-07-30 Thread oleksii . kurochko
On Mon, 2024-07-29 at 17:52 +0200, Jan Beulich wrote: > On 24.07.2024 17:31, Oleksii Kurochko wrote: > > > > +/* > > + * Send SFENCE_VMA to a set of target HARTs. > > + * > > + * @param hart_mask mask representing set of target HARTs > > + * @param start virtual address start > > + * @param size

Re: [PATCH v3 7/9] xen/riscv: introduce and init SBI RFENCE extension

2024-07-29 Thread Jan Beulich
On 24.07.2024 17:31, Oleksii Kurochko wrote: > --- a/xen/arch/riscv/include/asm/sbi.h > +++ b/xen/arch/riscv/include/asm/sbi.h > @@ -14,6 +14,38 @@ > > #define SBI_EXT_0_1_CONSOLE_PUTCHAR 0x1 > > +#define SBI_EXT_BASE0x10 > +#define SBI_EXT_RFENCE

[PATCH v3 7/9] xen/riscv: introduce and init SBI RFENCE extension

2024-07-24 Thread Oleksii Kurochko
Introduces functions to work with SBI RFENCE extenstion which will be used to do various version of fences for remote ( not local ) CPU. Except that sbi_init() function and auxiliary functions and macros definitions are introduced to proper initialization and checking availability of SBI extenstio