summaryrefslogtreecommitdiff
path: root/arch/riscv/kvm
diff options
context:
space:
mode:
authorAndy Chiu <andy.chiu@sifive.com>2023-06-05 14:07:17 +0300
committerPalmer Dabbelt <palmer@rivosinc.com>2023-06-08 17:16:52 +0300
commit50724efcb370c61c64f75614763fb411e087f70c (patch)
treef016c4c6479f4f2e3d2fdd3e68bd635254a0e961 /arch/riscv/kvm
parent0f4b82579716b12bb88257bd7ea80f25c791fb2c (diff)
downloadlinux-50724efcb370c61c64f75614763fb411e087f70c.tar.xz
riscv: hwcap: change ELF_HWCAP to a function
Using a function is flexible to represent ELF_HWCAP. So the kernel may encode hwcap reflecting supported hardware features just at the moment of the start of each program. This will be helpful when we introduce prctl/sysctl interface to control per-process availability of Vector extension in following patches. Programs started with V disabled should see V masked off in theirs ELF_HWCAP. Signed-off-by: Andy Chiu <andy.chiu@sifive.com> Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20230605110724.21391-21-andy.chiu@sifive.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/riscv/kvm')
0 files changed, 0 insertions, 0 deletions