git: test/nvmm: Add a demo for demonstration of libnvmm(3) API
Aaron LI
aly at crater.dragonflybsd.org
Tue Jul 20 16:30:25 PDT 2021
commit 8368e25f758b85c2863fe95506b40c66b86379d5
Author: Aaron LI <aly at aaronly.me>
Date: Fri May 28 07:28:27 2021 +0800
test/nvmm: Add a demo for demonstration of libnvmm(3) API
The demo consists of two components:
* toyvirt: a toy virtualizer, that executes in a VM the 64bit ELF binary
given as argument;
* smallkern: an example of such binary.
Obtained from: https://www.netbsd.org/~maxv/nvmm/nvmm-demo.zip
Summary of changes:
test/nvmm/demo/README.txt | 103 ++++++
test/nvmm/demo/smallkern/Makefile | 7 +
test/nvmm/demo/smallkern/console.c | 70 ++++
test/nvmm/demo/smallkern/locore.S | 512 ++++++++++++++++++++++++++++
test/nvmm/demo/smallkern/main.c | 320 +++++++++++++++++
test/nvmm/demo/smallkern/pdir.h | 85 +++++
test/nvmm/demo/smallkern/smallkern.h | 68 ++++
test/nvmm/demo/smallkern/smallkern.ldscript | 52 +++
test/nvmm/demo/smallkern/trap.S | 199 +++++++++++
test/nvmm/demo/toyvirt/Makefile | 6 +
test/nvmm/demo/toyvirt/common.h | 48 +++
test/nvmm/demo/toyvirt/elf.c | 112 ++++++
test/nvmm/demo/toyvirt/main.c | 434 +++++++++++++++++++++++
test/nvmm/demo/toyvirt/toydev.c | 137 ++++++++
14 files changed, 2153 insertions(+)
create mode 100644 test/nvmm/demo/README.txt
create mode 100644 test/nvmm/demo/smallkern/Makefile
create mode 100644 test/nvmm/demo/smallkern/console.c
create mode 100644 test/nvmm/demo/smallkern/locore.S
create mode 100644 test/nvmm/demo/smallkern/main.c
create mode 100644 test/nvmm/demo/smallkern/pdir.h
create mode 100644 test/nvmm/demo/smallkern/smallkern.h
create mode 100644 test/nvmm/demo/smallkern/smallkern.ldscript
create mode 100644 test/nvmm/demo/smallkern/trap.S
create mode 100644 test/nvmm/demo/toyvirt/Makefile
create mode 100644 test/nvmm/demo/toyvirt/common.h
create mode 100644 test/nvmm/demo/toyvirt/elf.c
create mode 100644 test/nvmm/demo/toyvirt/main.c
create mode 100644 test/nvmm/demo/toyvirt/toydev.c
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8368e25f758b85c2863fe95506b40c66b86379d5
--
DragonFly BSD source repository
More information about the Commits
mailing list