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
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
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:
> +/*
>>
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.
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
>>> +
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
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
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