1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00

return error code if the single-kernel version tries to initialize iRCCE

This commit is contained in:
Stefan Lankes 2016-08-27 08:16:25 +02:00
parent 5ee4481976
commit 079f687a02
2 changed files with 10 additions and 0 deletions

View file

@ -64,6 +64,7 @@ The demo applications are stored in their subdirectories `hermit/usr/{tests,benc
## HermitCore as classical standalone unikernel
HermitCore applications can be directly started as standalone kernel within a virtual machine.
In this case, iRCCE isnt supported.
Please register the loader like the multi-kernel version of HermitCore (see bullet 4 in section *Building and testing HermitCore on a real machine*).
If the environment variable `HERMIT_ISLE` is set to `qemu`, the application will be started within a VM.
Please note that the loader requires Qemu **with** KVM support and expects that the executable name is *qemu-system-x86_64*.

View file

@ -463,6 +463,9 @@ int sys_rcce_init(int session_id)
int i, err = 0;
size_t paddr = 0;
if (is_single_kernel())
return -ENOSYS;
if (session_id <= 0)
return -EINVAL;
@ -514,6 +517,9 @@ size_t sys_rcce_malloc(int session_id, int ue)
size_t vaddr = 0;
int i, counter = 0;
if (is_single_kernel())
return -ENOSYS;
if (session_id <= 0)
return -EINVAL;
@ -566,6 +572,9 @@ int sys_rcce_fini(int session_id)
// we have to free the MPB
if (is_single_kernel())
return -ENOSYS;
if (session_id <= 0)
return -EINVAL;