|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH] xen/riscv: print the actual FID for unsupported vSBI extensions
> vsbi_handle_ecall() reports an unsupported extension with
> "FID #%lu" and regs->a1, but the SBI calling convention puts the
> function ID in a6, already read into fid a few lines up; a1 is the
> second argument. Print fid instead.
>
> The decimal format is kept as the SBI spec refers to function IDs
> in decimal (e.g. "FID #3"), which makes the log easy to match
> against the spec.
>
> Tested on QEMU with a guest module calling EID 0x0a000000, FID 5,
> a1=0x1234: the log read "FID #4660" before and reads "FID #5" now.
>
> Fixes: e717a5a4 ("xen/riscv: introduce vSBI extension framework")
> Assisted-by: Claude:claude-opus-5-5
> Signed-off-by: Bruno Verachten <gounthar@xxxxxxxxx>
> Signed-off-by: Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>
>
Nit (style): the commit message doesn't use the full 80-column width
allowed. I know it is a very small nit, but it can hurt readability.
Here is a version that uses the full width, feel free to skip it:
```
vsbi_handle_ecall() reports an unsupported extension with "FID #%lu" and
regs->a1, but the SBI calling convention puts the function ID in a6,
already read into fid a few lines up; a1 is the second argument. Print
fid instead.
The decimal format is kept as the SBI spec refers to function IDs in
decimal (e.g. "FID #3"), which makes the log easy to match against the
spec.
Tested on QEMU with a guest module calling EID 0x0a000000, FID 5,
a1=0x1234: the log read "FID #4660" before and reads "FID #5" now.
```
Anyway lgtm, thanks!
Reviewed-by: Baptiste Le Duc <baptiste.le-duc@xxxxxxxxxx>
--
Baptiste Le Duc <baptiste.le-duc@xxxxxxxxxx>
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |