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:
parent
5ee4481976
commit
079f687a02
2 changed files with 10 additions and 0 deletions
|
@ -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 isn’t 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*.
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue