-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: João Peixoto <[email protected]>
- Loading branch information
1 parent
bc79c0d
commit a431c50
Showing
7 changed files
with
374 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
# This is a list of people who contributed code to the bao hypervisor I/O dispatcher | ||
# Linux kernel module by chronological order of first contribution. | ||
# This is a list of people who contributed code to the Bao Hypervisor | ||
# Linux drivers by chronological order of first contribution. | ||
|
||
David Cerdeira <[email protected]> | ||
José Martins <[email protected]> | ||
João Peixoto <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Object files and module definition | ||
obj-m += bao_ipc.o | ||
bao_ipc-y := ipcshmem.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Bao Hypervisor IPC Through Shared-memory Kernel Module | ||
|
||
The IPC kernel module enables communication between two VMs via a mutually established shared memory region. | ||
|
||
### Setup instructions | ||
|
||
1. Setup global environment variables: | ||
``` | ||
export ARCH=arm64|arm32|riscv | ||
export CROSS_COMPILE=path/to/your/toolchain | ||
export KERN_DIR=path/to/your/linux | ||
``` | ||
|
||
2. Build the out of tree kernel module: | ||
``` | ||
make ipc | ||
``` | ||
|
||
3. Copy the `bao_ipc.ko` file to your target filesystem. | ||
|
||
### Run instructions | ||
|
||
1. When the Backend VM boots up, insert the kernel module: | ||
``` | ||
insmod bao_ipc.ko | ||
``` | ||
|
||
2. From now on, you should be able to see the `/dev/baoipcX` device node if configured any Bao IPC object. |
Oops, something went wrong.