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: >>>> >>>> >>>>> +/* >>>>> + * 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 virtual address size >>>> >>>> Are these really virtual addresses, not somehow a bias and a >>>> number >>>> of bits (CPUs) or elements? From the rest of the patch I can't >>>> deduce >>>> what these two parameters express. >>> According to SBI doc start is an virtual address: >>> https://github.com/riscv-non-isa/riscv-sbi-doc/blob/master/src/ext-rfence.adoc?plain=1#L44 >> >> Oh, so these are describing the VA range to be flushed. Okay. >> >>> and hart_mask is: >>> • unsigned long hart_mask is a scalar bit-vector containing hartids >> >> Biased by hart_mask_base in the actual SBI call. > What word "biased" mean here?
The meaning of e.g. bit 0 in hart_mask will, aiui, be determined by hart_mask_base. If the latter is non-zero, the bit will not name hart 0. Jan