From TUDOS-Wiki
Jump to: navigation, search

L4Linux shared memory network

The driver l4shmnet can connect two L4Linuxes, providing network interfaces and using a shared memory to exchange data. To use the driver to make sure to include in your L4Linux build, it's available under that L4Linux/stub drivers menu.

For the first Linux add as a kernel parameter:


For the second add as a kernel parameter:


In the start script, add:

local shmns = L4.default_loader:create_namespace({ shm = "placeholder" });

and add shmns with rw rights to both L4Linuxes:

caps = { .... , shmns = shmns:mode("rw"), .... }

When starting the Linuxes you should see a ethX in each instance running. Add (different) IPs and pinging should work.