struct nvmm_caps { uint32_t version; uint32_t state_size; uint32_t max_machines; uint32_t max_vcpus; uint64_t max_ram; }; int nvmm_capability(struct nvmm_caps *caps);
This syscall fetches details about the NVMM implementation that the kernel
exposes to userland. version
is always 2 for Ironclad, but should be
checked as to future proof/portability.
This syscall returns 0
on success or -1
on failure, with the
errno:
EFAULT
The passed buffers were pointing to invalid memory.
ENOTSUPP
The current configuration doesn’t support NVMM.