Re: [PATCH bpf-next 2/5] riscv, bpf: Relax restrictions on Zbb instructions

Conor Dooley
2024-04-03T12:29:55Z

[-- Attachment #1: Type: text/plain, Size: 582 bytes --]

On Wed, Apr 03, 2024 at 06:05:38PM +0800, Pu Lehui wrote:
> Hi Conor and Björn,
>
> Thanks for your explanation. I totally agree with what you said,
> "CONFIG_RISCV_ISA_ZBB only controls whether optimizations for Zbb are built
> so that if Zbb is detected they can be used.".
>
> Since the instructions emited by bpf jit are in kernel space, they should
> indeed be aligned in this regard.
>
> PS: It's a bit difficult to understand this,😅 if I'm wrong please don't
> hesitate to tell me.

I think your understanding is correct. Sorry if I confused you at all!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]