diff options
author | Ruslan Bukin <br@FreeBSD.org> | 2024-12-17 10:35:24 +0000 |
---|---|---|
committer | Ruslan Bukin <br@FreeBSD.org> | 2024-12-17 10:35:44 +0000 |
commit | a7bf553d175a27b03cbad7d0f94e40991df2958b (patch) | |
tree | 79ec9ffec37d7cb30695ffff22d2ce821970a85f /lib | |
parent | 5d1219378dd5d9b031926cf7806455f33677792b (diff) |
riscv vmm: add SSTC extension check.
Check if RISC-V SSTC is available and advertise to the guest.
This is needed for Eswin EIC7700 that does not include SSTC.
As we don't have a mechanism for reporting extension presence
from the kernel to userspace, then use vm_cap_type for now.
Reviewed by: mhorne, markj
Differential Revision: https://reviews.freebsd.org/D48058
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libvmmapi/riscv/vmmapi_machdep.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libvmmapi/riscv/vmmapi_machdep.c b/lib/libvmmapi/riscv/vmmapi_machdep.c index 9c70185942c9..4da2fb909f61 100644 --- a/lib/libvmmapi/riscv/vmmapi_machdep.c +++ b/lib/libvmmapi/riscv/vmmapi_machdep.c @@ -40,6 +40,7 @@ #include "internal.h" const char *vm_capstrmap[] = { + [VM_CAP_SSTC] = "sstc", [VM_CAP_MAX] = NULL, }; |