Re: [PATCH] um: ubd: Fix crash from option parsing

2021-01-21 Thread Hajime Tazaki
Hello, On Wed, 20 Jan 2021 03:19:45 +0900, Paul Lawrence wrote: > > Below patch will cause NULL ptr dereferences if the optional filenames > are not present. > > Fixes: ef3ba87cb7c9 (um: ubd: Set device serial attribute from cmdline) > Signed-off-by: Paul Lawrence This was addressed/fixed

Re: [RFC PATCH 00/28] Linux Kernel Library

2015-11-08 Thread Hajime Tazaki
Hello Octavian, At Tue, 3 Nov 2015 22:20:31 +0200, Octavian Purdila wrote: > > > Q: How is LKL different from LibOS? > A: LibOS re-implements high-level kernel APIs for timers, softirqs, > scheduling, sysctl, SLAB/SLUB, etc. LKL behaves like any arch port, > implementing the arch level

Re: [RFC PATCH 00/28] Linux Kernel Library

2015-11-08 Thread Hajime Tazaki
Hello Octavian, At Tue, 3 Nov 2015 22:20:31 +0200, Octavian Purdila wrote: > > > Q: How is LKL different from LibOS? > A: LibOS re-implements high-level kernel APIs for timers, softirqs, > scheduling, sysctl, SLAB/SLUB, etc. LKL behaves like any arch port, > implementing the arch level

Re: [RFC PATCH 04/28] lkl: host interface

2015-11-03 Thread Hajime Tazaki
At Tue, 3 Nov 2015 22:20:35 +0200, Octavian Purdila wrote: > > This patch introduces the host operations that define the interface > between the LKL and the host. These operations must be provided either > by a host library or by the application itself. (snip) > +struct lkl_host_operations { >

Re: [RFC PATCH 00/28] Linux Kernel Library

2015-11-03 Thread Hajime Tazaki
At Tue, 3 Nov 2015 22:45:45 +, Richard W.M. Jones wrote: > > > * cptofs/cpfromfs - a tool that copies files to/from a filesystem image > > > > Seeing forward to have a libguestfs port. :-) > > Thanks - I was keeping an eye on libos (and on the NetBSD rump kernel > stuff before), ready to

Re: [RFC PATCH 00/28] Linux Kernel Library

2015-11-03 Thread Hajime Tazaki
At Tue, 3 Nov 2015 22:45:45 +, Richard W.M. Jones wrote: > > > * cptofs/cpfromfs - a tool that copies files to/from a filesystem image > > > > Seeing forward to have a libguestfs port. :-) > > Thanks - I was keeping an eye on libos (and on the NetBSD rump kernel > stuff before), ready to

Re: [RFC PATCH 04/28] lkl: host interface

2015-11-03 Thread Hajime Tazaki
At Tue, 3 Nov 2015 22:20:35 +0200, Octavian Purdila wrote: > > This patch introduces the host operations that define the interface > between the LKL and the host. These operations must be provided either > by a host library or by the application itself. (snip) > +struct lkl_host_operations { >

[PATCH v6 04/10] lib: time handling (kernel glue code)

2015-09-03 Thread Hajime Tazaki
timer related (internal) functions such as add_timer(), do_gettimeofday() of kernel are trivially reimplemented for libos. these eventually call the functions registered by lib_init() API. Signed-off-by: Hajime Tazaki --- arch/lib/hrtimer.c | 117 ++ arch/lib/tasklet

[PATCH v6 08/10] lib: auxiliary files for auto-generated asm-generic files of libos

2015-09-03 Thread Hajime Tazaki
these files works as stubs in order to transparently run the other kernel part (e.g., net/) on libos environment. Signed-off-by: Hajime Tazaki --- arch/lib/include/asm/Kbuild | 57 arch/lib/include/asm/atomic.h | 62

[PATCH v6 05/10] lib: context and scheduling functions (kernel glue code) for libos

2015-09-03 Thread Hajime Tazaki
context primitives of kernel such as soft interrupts, scheduling, tasklet are implemented for libos. these functions eventually call the functions registered by lib_init() API as well. Signed-off-by: Hajime Tazaki --- arch/lib/sched.c | 406

[PATCH v6 09/10] lib: libos build scripts and documentation

2015-09-03 Thread Hajime Tazaki
document and build scripts for libos architecture. Signed-off-by: Hajime Tazaki Signed-off-by: Ryo Nakamura --- Documentation/virtual/libos-howto.txt | 144 MAINTAINERS | 9 + arch/lib/.gitignore | 3 + arch/lib/Kconfig

[PATCH v6 07/10] lib: other kernel glue layer code

2015-09-03 Thread Hajime Tazaki
These files are used to provide the same function calls so that other network stack code keeps untouched. Signed-off-by: Hajime Tazaki Signed-off-by: Christoph Paasch --- arch/lib/capability.c | 25 + arch/lib/filemap.c| 32 ++ arch/lib/fs.c | 70 + arch/lib

[PATCH v6 10/10] lib: tools used for test scripts

2015-09-03 Thread Hajime Tazaki
These auxiliary files are used for testing and debugging of net/ code with libos. a simple test is implemented with make test ARCH=lib. Signed-off-by: Hajime Tazaki --- tools/testing/libos/.gitignore | 6 + tools/testing/libos/Makefile | 38 +++ tools/testing

[PATCH v6 06/10] lib: sysctl handling (kernel glue code)

2015-09-03 Thread Hajime Tazaki
This interacts with fs/proc_fs.c for sysctl-like interface registered via lib_init() API. Signed-off-by: Hajime Tazaki --- arch/lib/sysctl.c | 270 ++ 1 file changed, 270 insertions(+) create mode 100644 arch/lib/sysctl.c diff --git a/arch

[PATCH v6 00/10] an introduction of Linux library operating system (LibOS)

2015-09-03 Thread Hajime Tazaki
lideset presented at the last netdev0.1 conference. http://www.slideshare.net/hajimetazaki/library-operating-system-for-linux-netdev01 I would appreciate any kind of your feedback regarding to upstream this feature. *1 https://github.com/libos-nuse/linux-libos-tools Hajime Tazaki (10): sysctl:

[PATCH v6 03/10] lib: public headers and API implementations for userspace programs

2015-09-03 Thread Hajime Tazaki
userspace programs which uses libos access via a public API, lib_init(), with passed arguments struct SimImported and struct SimExported. Signed-off-by: Hajime Tazaki Signed-off-by: Ryo Nakamura --- arch/lib/include/sim-assert.h | 23 +++ arch/lib/include/sim-init.h | 134

[PATCH v6 02/10] slab: add SLIB (Library memory allocator) for arch/lib

2015-09-03 Thread Hajime Tazaki
add SLIB allocator for arch/lib (CONFIG_LIB) to wrap kmalloc and co. This will bring user's own allocator of libos: malloc(3) etc. Signed-off-by: Hajime Tazaki --- include/linux/slab.h | 6 +- include/linux/slib_def.h | 21 + mm/Makefile | 1 + mm/slab.h

[PATCH v6 01/10] sysctl: make some functions unstatic to access by arch/lib

2015-09-03 Thread Hajime Tazaki
libos (arch/lib) emulates a sysctl-like interface by a function call of userspace by enumerating sysctl tree from sysctl_table_root. It requires to be publicly accessible to this symbol and related functions. Signed-off-by: Hajime Tazaki --- fs/proc/proc_sysctl.c | 36

[PATCH v6 09/10] lib: libos build scripts and documentation

2015-09-03 Thread Hajime Tazaki
document and build scripts for libos architecture. Signed-off-by: Hajime Tazaki <thehaj...@gmail.com> Signed-off-by: Ryo Nakamura <u...@haeena.net> --- Documentation/virtual/libos-howto.txt | 144 MAINTAINERS | 9 + arch/lib/.gitignore

[PATCH v6 08/10] lib: auxiliary files for auto-generated asm-generic files of libos

2015-09-03 Thread Hajime Tazaki
these files works as stubs in order to transparently run the other kernel part (e.g., net/) on libos environment. Signed-off-by: Hajime Tazaki <thehaj...@gmail.com> --- arch/lib/include/asm/Kbuild | 57 arch/lib/include/asm/atomic.h

[PATCH v6 05/10] lib: context and scheduling functions (kernel glue code) for libos

2015-09-03 Thread Hajime Tazaki
context primitives of kernel such as soft interrupts, scheduling, tasklet are implemented for libos. these functions eventually call the functions registered by lib_init() API as well. Signed-off-by: Hajime Tazaki <thehaj...@gmail.com> --- arch/lib/sched.c

[PATCH v6 10/10] lib: tools used for test scripts

2015-09-03 Thread Hajime Tazaki
These auxiliary files are used for testing and debugging of net/ code with libos. a simple test is implemented with make test ARCH=lib. Signed-off-by: Hajime Tazaki <thehaj...@gmail.com> --- tools/testing/libos/.gitignore | 6 + tools/testing/libos/Makefile

[PATCH v6 07/10] lib: other kernel glue layer code

2015-09-03 Thread Hajime Tazaki
These files are used to provide the same function calls so that other network stack code keeps untouched. Signed-off-by: Hajime Tazaki <thehaj...@gmail.com> Signed-off-by: Christoph Paasch <christoph.paa...@gmail.com> --- arch/lib/capability.c | 25 + arch/lib/filema

[PATCH v6 06/10] lib: sysctl handling (kernel glue code)

2015-09-03 Thread Hajime Tazaki
This interacts with fs/proc_fs.c for sysctl-like interface registered via lib_init() API. Signed-off-by: Hajime Tazaki <thehaj...@gmail.com> --- arch/lib/sysctl.c | 270 ++ 1 file changed, 270 insertions(+) create mode 100644 arch/lib/sy

[PATCH v6 03/10] lib: public headers and API implementations for userspace programs

2015-09-03 Thread Hajime Tazaki
userspace programs which uses libos access via a public API, lib_init(), with passed arguments struct SimImported and struct SimExported. Signed-off-by: Hajime Tazaki <thehaj...@gmail.com> Signed-off-by: Ryo Nakamura <u...@haeena.net> --- arch/lib/include/sim-assert.h | 23 +++ arch

[PATCH v6 01/10] sysctl: make some functions unstatic to access by arch/lib

2015-09-03 Thread Hajime Tazaki
libos (arch/lib) emulates a sysctl-like interface by a function call of userspace by enumerating sysctl tree from sysctl_table_root. It requires to be publicly accessible to this symbol and related functions. Signed-off-by: Hajime Tazaki <thehaj...@gmail.com> --- fs/proc/proc_sysctl.

[PATCH v6 02/10] slab: add SLIB (Library memory allocator) for arch/lib

2015-09-03 Thread Hajime Tazaki
add SLIB allocator for arch/lib (CONFIG_LIB) to wrap kmalloc and co. This will bring user's own allocator of libos: malloc(3) etc. Signed-off-by: Hajime Tazaki <thehaj...@gmail.com> --- include/linux/slab.h | 6 +- include/linux/slib_def.h | 21 + mm/Makefile | 1

[PATCH v6 04/10] lib: time handling (kernel glue code)

2015-09-03 Thread Hajime Tazaki
timer related (internal) functions such as add_timer(), do_gettimeofday() of kernel are trivially reimplemented for libos. these eventually call the functions registered by lib_init() API. Signed-off-by: Hajime Tazaki <thehaj...@gmail.com> --- arch/lib/hrtimer.c

[PATCH v6 00/10] an introduction of Linux library operating system (LibOS)

2015-09-03 Thread Hajime Tazaki
lideset presented at the last netdev0.1 conference. http://www.slideshare.net/hajimetazaki/library-operating-system-for-linux-netdev01 I would appreciate any kind of your feedback regarding to upstream this feature. *1 https://github.com/libos-nuse/linux-libos-tools Hajime Tazaki (10): sysctl:

[PATCH v5 06/10] lib: sysctl handling (kernel glue code)

2015-05-12 Thread Hajime Tazaki
This interacts with fs/proc_fs.c for sysctl-like interface registered via lib_init() API. Signed-off-by: Hajime Tazaki --- arch/lib/sysctl.c | 270 ++ 1 file changed, 270 insertions(+) create mode 100644 arch/lib/sysctl.c diff --git a/arch

[PATCH v5 07/10] lib: other kernel glue layer code

2015-05-12 Thread Hajime Tazaki
These files are used to provide the same function calls so that other network stack code keeps untouched. Signed-off-by: Hajime Tazaki Signed-off-by: Christoph Paasch --- arch/lib/capability.c | 25 + arch/lib/filemap.c| 32 ++ arch/lib/fs.c | 70 arch/lib

[PATCH v5 10/10] lib: tools used for test scripts

2015-05-12 Thread Hajime Tazaki
These auxiliary files are used for testing and debugging of net/ code with libos. a simple test is implemented with make test ARCH=lib. Signed-off-by: Hajime Tazaki --- tools/testing/libos/.gitignore | 6 + tools/testing/libos/Makefile | 38 +++ tools/testing

[PATCH v5 08/10] lib: auxiliary files for auto-generated asm-generic files of libos

2015-05-12 Thread Hajime Tazaki
these files works as stubs in order to transparently run the other kernel part (e.g., net/) on libos environment. Signed-off-by: Hajime Tazaki --- arch/lib/include/asm/Kbuild | 57 + arch/lib/include/asm/atomic.h | 59

[PATCH v5 09/10] lib: libos build scripts and documentation

2015-05-12 Thread Hajime Tazaki
document and build scripts for libos architecture. Signed-off-by: Hajime Tazaki Signed-off-by: Ryo Nakamura --- Documentation/virtual/libos-howto.txt | 144 MAINTAINERS | 9 + arch/lib/.gitignore | 3 + arch/lib/Kconfig

[PATCH v5 05/10] lib: context and scheduling functions (kernel glue code) for libos

2015-05-12 Thread Hajime Tazaki
context primitives of kernel such as soft interrupts, scheduling, tasklet are implemented for libos. these functions eventually call the functions registered by lib_init() API as well. Signed-off-by: Hajime Tazaki --- arch/lib/sched.c | 406

[PATCH v5 04/10] lib: time handling (kernel glue code)

2015-05-12 Thread Hajime Tazaki
timer related (internal) functions such as add_timer(), do_gettimeofday() of kernel are trivially reimplemented for libos. these eventually call the functions registered by lib_init() API. Signed-off-by: Hajime Tazaki --- arch/lib/hrtimer.c | 122 +++ arch/lib

[PATCH v5 02/10] slab: add SLIB (Library memory allocator) for arch/lib

2015-05-12 Thread Hajime Tazaki
add SLIB allocator for arch/lib (CONFIG_LIB) to wrap kmalloc and co. This will bring user's own allocator of libos: malloc(3) etc. Signed-off-by: Hajime Tazaki --- include/linux/slab.h | 6 +- include/linux/slib_def.h | 21 + mm/Makefile | 1 + mm/slab.h

[PATCH v5 03/10] lib: public headers and API implementations for userspace programs

2015-05-12 Thread Hajime Tazaki
userspace programs which uses libos access via a public API, lib_init(), with passed arguments struct SimImported and struct SimExported. Signed-off-by: Hajime Tazaki Signed-off-by: Ryo Nakamura --- arch/lib/include/sim-assert.h | 23 +++ arch/lib/include/sim-init.h | 134

[PATCH v5 01/10] sysctl: make some functions unstatic to access by arch/lib

2015-05-12 Thread Hajime Tazaki
libos (arch/lib) emulates a sysctl-like interface by a function call of userspace by enumerating sysctl tree from sysctl_table_root. It requires to be publicly accessible to this symbol and related functions. Signed-off-by: Hajime Tazaki --- fs/proc/proc_sysctl.c | 36

[PATCH v5 00/10] an introduction of Linux library operating system (LibOS)

2015-05-12 Thread Hajime Tazaki
em-for-linux-netdev01 I would appreciate any kind of your feedback regarding to upstream this feature. *1 https://github.com/libos-nuse/linux-libos-tools Hajime Tazaki (10): sysctl: make some functions unstatic to access by arch/lib slab: add SLIB (Library memory allocator) for arch

[PATCH v5 06/10] lib: sysctl handling (kernel glue code)

2015-05-12 Thread Hajime Tazaki
This interacts with fs/proc_fs.c for sysctl-like interface registered via lib_init() API. Signed-off-by: Hajime Tazaki taz...@sfc.wide.ad.jp --- arch/lib/sysctl.c | 270 ++ 1 file changed, 270 insertions(+) create mode 100644 arch/lib/sysctl.c

[PATCH v5 07/10] lib: other kernel glue layer code

2015-05-12 Thread Hajime Tazaki
These files are used to provide the same function calls so that other network stack code keeps untouched. Signed-off-by: Hajime Tazaki taz...@sfc.wide.ad.jp Signed-off-by: Christoph Paasch christoph.paa...@gmail.com --- arch/lib/capability.c | 25 + arch/lib/filemap.c| 32 ++ arch

[PATCH v5 10/10] lib: tools used for test scripts

2015-05-12 Thread Hajime Tazaki
These auxiliary files are used for testing and debugging of net/ code with libos. a simple test is implemented with make test ARCH=lib. Signed-off-by: Hajime Tazaki taz...@sfc.wide.ad.jp --- tools/testing/libos/.gitignore | 6 + tools/testing/libos/Makefile | 38

[PATCH v5 08/10] lib: auxiliary files for auto-generated asm-generic files of libos

2015-05-12 Thread Hajime Tazaki
these files works as stubs in order to transparently run the other kernel part (e.g., net/) on libos environment. Signed-off-by: Hajime Tazaki taz...@sfc.wide.ad.jp --- arch/lib/include/asm/Kbuild | 57 + arch/lib/include/asm/atomic.h | 59

[PATCH v5 09/10] lib: libos build scripts and documentation

2015-05-12 Thread Hajime Tazaki
document and build scripts for libos architecture. Signed-off-by: Hajime Tazaki taz...@sfc.wide.ad.jp Signed-off-by: Ryo Nakamura u...@haeena.net --- Documentation/virtual/libos-howto.txt | 144 MAINTAINERS | 9 + arch/lib/.gitignore | 3

[PATCH v5 00/10] an introduction of Linux library operating system (LibOS)

2015-05-12 Thread Hajime Tazaki
feedback regarding to upstream this feature. *1 https://github.com/libos-nuse/linux-libos-tools Hajime Tazaki (10): sysctl: make some functions unstatic to access by arch/lib slab: add SLIB (Library memory allocator) for arch/lib lib: public headers and API implementations for userspace

[PATCH v5 03/10] lib: public headers and API implementations for userspace programs

2015-05-12 Thread Hajime Tazaki
userspace programs which uses libos access via a public API, lib_init(), with passed arguments struct SimImported and struct SimExported. Signed-off-by: Hajime Tazaki taz...@sfc.wide.ad.jp Signed-off-by: Ryo Nakamura u...@haeena.net --- arch/lib/include/sim-assert.h | 23 +++ arch/lib/include

[PATCH v5 01/10] sysctl: make some functions unstatic to access by arch/lib

2015-05-12 Thread Hajime Tazaki
libos (arch/lib) emulates a sysctl-like interface by a function call of userspace by enumerating sysctl tree from sysctl_table_root. It requires to be publicly accessible to this symbol and related functions. Signed-off-by: Hajime Tazaki taz...@sfc.wide.ad.jp --- fs/proc/proc_sysctl.c | 36

[PATCH v5 02/10] slab: add SLIB (Library memory allocator) for arch/lib

2015-05-12 Thread Hajime Tazaki
add SLIB allocator for arch/lib (CONFIG_LIB) to wrap kmalloc and co. This will bring user's own allocator of libos: malloc(3) etc. Signed-off-by: Hajime Tazaki taz...@sfc.wide.ad.jp --- include/linux/slab.h | 6 +- include/linux/slib_def.h | 21 + mm/Makefile | 1 + mm

[PATCH v5 04/10] lib: time handling (kernel glue code)

2015-05-12 Thread Hajime Tazaki
timer related (internal) functions such as add_timer(), do_gettimeofday() of kernel are trivially reimplemented for libos. these eventually call the functions registered by lib_init() API. Signed-off-by: Hajime Tazaki taz...@sfc.wide.ad.jp --- arch/lib/hrtimer.c | 122

[PATCH v5 05/10] lib: context and scheduling functions (kernel glue code) for libos

2015-05-12 Thread Hajime Tazaki
context primitives of kernel such as soft interrupts, scheduling, tasklet are implemented for libos. these functions eventually call the functions registered by lib_init() API as well. Signed-off-by: Hajime Tazaki taz...@sfc.wide.ad.jp --- arch/lib/sched.c | 406

Re: [PATCH v4 00/10] an introduction of Linux library operating system (LibOS)

2015-04-29 Thread Hajime Tazaki
At Mon, 27 Apr 2015 09:39:20 +0200, Richard Weinberger wrote: > > Hmm, it still does not build. This time I got: > > > > CC kernel/time/time.o > > In file included from kernel/time/time.c:44:0: > > kernel/time/timeconst.h:11:2: error: #error "kernel/timeconst.h has the > > wrong HZ

Re: [PATCH v4 00/10] an introduction of Linux library operating system (LibOS)

2015-04-29 Thread Hajime Tazaki
At Mon, 27 Apr 2015 09:39:20 +0200, Richard Weinberger wrote: Hmm, it still does not build. This time I got: CC kernel/time/time.o In file included from kernel/time/time.c:44:0: kernel/time/timeconst.h:11:2: error: #error kernel/timeconst.h has the wrong HZ value! #error

[PATCH v4 03/10] lib: public headers and API implementations for userspace programs

2015-04-26 Thread Hajime Tazaki
userspace programs which uses libos access via a public API, lib_init(), with passed arguments struct SimImported and struct SimExported. Signed-off-by: Hajime Tazaki Signed-off-by: Ryo Nakamura --- arch/lib/include/sim-assert.h | 23 +++ arch/lib/include/sim-init.h | 134

[PATCH v4 10/10] lib: tools used for test scripts

2015-04-26 Thread Hajime Tazaki
These auxiliary files are used for testing and debugging of net/ code with libos. a simple test is implemented with make test ARCH=lib. Signed-off-by: Hajime Tazaki --- tools/testing/libos/.gitignore | 6 + tools/testing/libos/Makefile | 38 +++ tools/testing

[PATCH v4 01/10] sysctl: make some functions unstatic to access by arch/lib

2015-04-26 Thread Hajime Tazaki
libos (arch/lib) emulates a sysctl-like interface by a function call of userspace by enumerating sysctl tree from sysctl_table_root. It requires to be publicly accessible to this symbol and related functions. Signed-off-by: Hajime Tazaki --- fs/proc/proc_sysctl.c | 36

[PATCH v4 07/10] lib: other kernel glue layer code

2015-04-26 Thread Hajime Tazaki
These files are used to provide the same function calls so that other network stack code keeps untouched. Signed-off-by: Hajime Tazaki Signed-off-by: Christoph Paasch --- arch/lib/capability.c | 25 + arch/lib/filemap.c| 32 ++ arch/lib/fs.c | 70 arch/lib

[PATCH v4 06/10] lib: sysctl handling (kernel glue code)

2015-04-26 Thread Hajime Tazaki
This interacts with fs/proc_fs.c for sysctl-like interface registed via lib_init() API. Signed-off-by: Hajime Tazaki --- arch/lib/sysctl.c | 270 ++ 1 file changed, 270 insertions(+) create mode 100644 arch/lib/sysctl.c diff --git a/arch/lib

[PATCH v4 04/10] lib: time handling (kernel glue code)

2015-04-26 Thread Hajime Tazaki
timer related (internal) functions such as add_timer(), do_gettimeofday() of kernel are trivially reimplemented for libos. these eventually call the functions registered by lib_init() API. Signed-off-by: Hajime Tazaki --- arch/lib/hrtimer.c | 122 +++ arch/lib

[PATCH v4 09/10] lib: libos build scripts and documentation

2015-04-26 Thread Hajime Tazaki
document and build scripts for libos architecture. Signed-off-by: Hajime Tazaki Signed-off-by: Ryo Nakamura --- Documentation/virtual/libos-howto.txt | 144 MAINTAINERS | 9 + arch/lib/.gitignore | 3 + arch/lib/Kconfig

[PATCH v4 08/10] lib: auxially files for auto-generated asm-generic files of libos

2015-04-26 Thread Hajime Tazaki
these files works as stubs in order to transparently run the other kernel part (e.g., net/) on libos environment. Signed-off-by: Hajime Tazaki --- arch/lib/include/asm/Kbuild | 57 +++ arch/lib/include/asm/atomic.h | 50

[PATCH v4 05/10] lib: context and scheduling functions (kernel glue code) for libos

2015-04-26 Thread Hajime Tazaki
contexnt primitives of kernel such as soft interupts, scheduling, tasklet are implemented for libos. these functions eventually call the functions registered by lib_init() API as well. Signed-off-by: Hajime Tazaki --- arch/lib/sched.c | 406

[PATCH v4 00/10] an introduction of Linux library operating system (LibOS)

2015-04-26 Thread Hajime Tazaki
1 conference. http://www.slideshare.net/hajimetazaki/library-operating-system-for-linux-netdev01 I would appreciate any kind of your feedback regarding to upstream this feature. *1 https://github.com/libos-nuse/linux-libos-tools Hajime Tazaki (10): sysctl: make some functions unstatic to acce

[PATCH v4 02/10] slab: add SLIB (Library memory allocator) for arch/lib

2015-04-26 Thread Hajime Tazaki
add SLIB allocator for arch/lib (CONFIG_LIB) to wrap kmalloc and co. This will bring user's own allocator of libos: malloc(3) etc. Signed-off-by: Hajime Tazaki --- include/linux/slab.h | 6 +- include/linux/slib_def.h | 21 + mm/Makefile | 1 + mm/slab.h

[PATCH v4 00/10] an introduction of Linux library operating system (LibOS)

2015-04-26 Thread Hajime Tazaki
/hajimetazaki/library-operating-system-for-linux-netdev01 I would appreciate any kind of your feedback regarding to upstream this feature. *1 https://github.com/libos-nuse/linux-libos-tools Hajime Tazaki (10): sysctl: make some functions unstatic to access by arch/lib slab: add SLIB (Library memory

[PATCH v4 02/10] slab: add SLIB (Library memory allocator) for arch/lib

2015-04-26 Thread Hajime Tazaki
add SLIB allocator for arch/lib (CONFIG_LIB) to wrap kmalloc and co. This will bring user's own allocator of libos: malloc(3) etc. Signed-off-by: Hajime Tazaki taz...@sfc.wide.ad.jp --- include/linux/slab.h | 6 +- include/linux/slib_def.h | 21 + mm/Makefile | 1 + mm

[PATCH v4 05/10] lib: context and scheduling functions (kernel glue code) for libos

2015-04-26 Thread Hajime Tazaki
contexnt primitives of kernel such as soft interupts, scheduling, tasklet are implemented for libos. these functions eventually call the functions registered by lib_init() API as well. Signed-off-by: Hajime Tazaki taz...@sfc.wide.ad.jp --- arch/lib/sched.c | 406

[PATCH v4 07/10] lib: other kernel glue layer code

2015-04-26 Thread Hajime Tazaki
These files are used to provide the same function calls so that other network stack code keeps untouched. Signed-off-by: Hajime Tazaki taz...@sfc.wide.ad.jp Signed-off-by: Christoph Paasch christoph.paa...@gmail.com --- arch/lib/capability.c | 25 + arch/lib/filemap.c| 32 ++ arch

[PATCH v4 06/10] lib: sysctl handling (kernel glue code)

2015-04-26 Thread Hajime Tazaki
This interacts with fs/proc_fs.c for sysctl-like interface registed via lib_init() API. Signed-off-by: Hajime Tazaki taz...@sfc.wide.ad.jp --- arch/lib/sysctl.c | 270 ++ 1 file changed, 270 insertions(+) create mode 100644 arch/lib/sysctl.c

[PATCH v4 04/10] lib: time handling (kernel glue code)

2015-04-26 Thread Hajime Tazaki
timer related (internal) functions such as add_timer(), do_gettimeofday() of kernel are trivially reimplemented for libos. these eventually call the functions registered by lib_init() API. Signed-off-by: Hajime Tazaki taz...@sfc.wide.ad.jp --- arch/lib/hrtimer.c | 122

[PATCH v4 09/10] lib: libos build scripts and documentation

2015-04-26 Thread Hajime Tazaki
document and build scripts for libos architecture. Signed-off-by: Hajime Tazaki taz...@sfc.wide.ad.jp Signed-off-by: Ryo Nakamura u...@haeena.net --- Documentation/virtual/libos-howto.txt | 144 MAINTAINERS | 9 + arch/lib/.gitignore | 3

[PATCH v4 03/10] lib: public headers and API implementations for userspace programs

2015-04-26 Thread Hajime Tazaki
userspace programs which uses libos access via a public API, lib_init(), with passed arguments struct SimImported and struct SimExported. Signed-off-by: Hajime Tazaki taz...@sfc.wide.ad.jp Signed-off-by: Ryo Nakamura u...@haeena.net --- arch/lib/include/sim-assert.h | 23 +++ arch/lib/include

[PATCH v4 10/10] lib: tools used for test scripts

2015-04-26 Thread Hajime Tazaki
These auxiliary files are used for testing and debugging of net/ code with libos. a simple test is implemented with make test ARCH=lib. Signed-off-by: Hajime Tazaki taz...@sfc.wide.ad.jp --- tools/testing/libos/.gitignore | 6 + tools/testing/libos/Makefile | 38

[PATCH v4 01/10] sysctl: make some functions unstatic to access by arch/lib

2015-04-26 Thread Hajime Tazaki
libos (arch/lib) emulates a sysctl-like interface by a function call of userspace by enumerating sysctl tree from sysctl_table_root. It requires to be publicly accessible to this symbol and related functions. Signed-off-by: Hajime Tazaki taz...@sfc.wide.ad.jp --- fs/proc/proc_sysctl.c | 36

[PATCH v4 08/10] lib: auxially files for auto-generated asm-generic files of libos

2015-04-26 Thread Hajime Tazaki
these files works as stubs in order to transparently run the other kernel part (e.g., net/) on libos environment. Signed-off-by: Hajime Tazaki taz...@sfc.wide.ad.jp --- arch/lib/include/asm/Kbuild | 57 +++ arch/lib/include/asm/atomic.h | 50

Re: [RFC PATCH v3 00/10] an introduction of library operating system for Linux (LibOS)

2015-04-24 Thread Hajime Tazaki
At Fri, 24 Apr 2015 10:59:21 +0200, Richard Weinberger wrote: > Am 24.04.2015 um 10:22 schrieb Hajime Tazaki: > >> You *really* need to shape up wrt the build process. > > > > at the moment, the implementation of libos can't automate to > > follow such changes in th

Re: [RFC PATCH v3 00/10] an introduction of library operating system for Linux (LibOS)

2015-04-24 Thread Hajime Tazaki
Hi Richard, At Fri, 24 Apr 2015 09:40:32 +0200, Richard Weinberger wrote: > > Hi! > > Am 19.04.2015 um 15:28 schrieb Hajime Tazaki: > > changes from v2: > > - Patch 02/11 ("slab: add private memory allocator header for arch/lib") > > * add new allocator

Re: [RFC PATCH v3 00/10] an introduction of library operating system for Linux (LibOS)

2015-04-24 Thread Hajime Tazaki
At Fri, 24 Apr 2015 10:59:21 +0200, Richard Weinberger wrote: Am 24.04.2015 um 10:22 schrieb Hajime Tazaki: You *really* need to shape up wrt the build process. at the moment, the implementation of libos can't automate to follow such changes in the build process. but good news is it's

Re: [RFC PATCH v3 00/10] an introduction of library operating system for Linux (LibOS)

2015-04-24 Thread Hajime Tazaki
Hi Richard, At Fri, 24 Apr 2015 09:40:32 +0200, Richard Weinberger wrote: Hi! Am 19.04.2015 um 15:28 schrieb Hajime Tazaki: changes from v2: - Patch 02/11 (slab: add private memory allocator header for arch/lib) * add new allocator named SLIB (Library Allocator): Patch 04/11

Re: [RFC PATCH v3 09/10] lib: libos build scripts and documentation

2015-04-21 Thread Hajime Tazaki
t; > On Sun, 2015-04-19 at 22:28 +0900, Hajime Tazaki wrote: > > --- /dev/null > > +++ b/arch/lib/Kconfig > > @@ -0,0 +1,124 @@ > > +menuconfig LIB > > + bool "LibOS-specific options" > > + def_bool n > > This is the start of the Kconf

Re: [RFC PATCH v3 09/10] lib: libos build scripts and documentation

2015-04-21 Thread Hajime Tazaki
-19 at 22:28 +0900, Hajime Tazaki wrote: --- /dev/null +++ b/arch/lib/Kconfig @@ -0,0 +1,124 @@ +menuconfig LIB + bool LibOS-specific options + def_bool n This is the start of the Kconfig parse for lib. (That would basically still be true even if you didn't set

[RFC PATCH v3 04/10] lib: time handling (kernel glue code)

2015-04-19 Thread Hajime Tazaki
timer related (internal) functions such as add_timer(), do_gettimeofday() of kernel are trivially reimplemented for libos. these eventually call the functions registered by lib_init() API. Signed-off-by: Hajime Tazaki --- arch/lib/hrtimer.c | 122 +++ arch/lib

[RFC PATCH v3 08/10] lib: auxially files for auto-generated asm-generic files of libos

2015-04-19 Thread Hajime Tazaki
these files works as stubs in order to transparently run the other kernel part (e.g., net/) on libos environment. Signed-off-by: Hajime Tazaki --- arch/lib/include/asm/Kbuild | 57 +++ arch/lib/include/asm/atomic.h | 50

[RFC PATCH v3 06/10] lib: sysctl handling (kernel glue code)

2015-04-19 Thread Hajime Tazaki
This interacts with fs/proc_fs.c for sysctl-like interface registed via lib_init() API. Signed-off-by: Hajime Tazaki --- arch/lib/sysctl.c | 270 ++ 1 file changed, 270 insertions(+) create mode 100644 arch/lib/sysctl.c diff --git a/arch/lib

[RFC PATCH v3 10/10] lib: tools used for test scripts

2015-04-19 Thread Hajime Tazaki
These auxiliary files are used for testing and debugging of net/ code with libos. a simple test is implemented with make test ARCH=lib. Signed-off-by: Hajime Tazaki --- tools/testing/libos/.gitignore | 6 + tools/testing/libos/Makefile | 38 +++ tools/testing

[RFC PATCH v3 09/10] lib: libos build scripts and documentation

2015-04-19 Thread Hajime Tazaki
document and build scripts for libos architecture. Signed-off-by: Hajime Tazaki Signed-off-by: Ryo Nakamura --- Documentation/virtual/libos-howto.txt | 144 MAINTAINERS | 9 + arch/lib/.gitignore | 8 + arch/lib/Kconfig

[RFC PATCH v3 07/10] lib: other kernel glue layer code

2015-04-19 Thread Hajime Tazaki
These files are used to provide the same function calls so that other network stack code keeps untouched. Signed-off-by: Hajime Tazaki Signed-off-by: Christoph Paasch --- arch/lib/capability.c | 47 + arch/lib/filemap.c| 32 ++ arch/lib/fs.c | 70 + arch

[RFC PATCH v3 01/10] sysctl: make some functions unstatic to access by arch/lib

2015-04-19 Thread Hajime Tazaki
libos (arch/lib) emulates a sysctl-like interface by a function call of userspace by enumerating sysctl tree from sysctl_table_root. It requires to be publicly accessible to this symbol and related functions. Signed-off-by: Hajime Tazaki --- fs/proc/proc_sysctl.c | 36

[RFC PATCH v3 02/10] slab: add SLIB (Library memory allocator) for arch/lib

2015-04-19 Thread Hajime Tazaki
add SLIB allocator for arch/lib (CONFIG_LIB) to wrap kmalloc and co. This will bring user's own allocator of libos: malloc(3) etc. Signed-off-by: Hajime Tazaki --- include/linux/slab.h | 6 +- include/linux/slib_def.h | 21 + init/Kconfig | 8 ++ mm/Makefile

[RFC PATCH v3 00/10] an introduction of library operating system for Linux (LibOS)

2015-04-19 Thread Hajime Tazaki
azaki/library-operating-system-for-linux-netdev01 I would appreciate any kind of your feedback regarding to upstream this feature. *1 https://github.com/libos-nuse/linux-libos-tools Hajime Tazaki (10): sysctl: make some functions unstatic to access by arch/lib slab: add SLIB (Library memory allocat

[RFC PATCH v3 05/10] lib: context and scheduling functions (kernel glue code) for libos

2015-04-19 Thread Hajime Tazaki
contexnt primitives of kernel such as soft interupts, scheduling, tasklet are implemented for libos. these functions eventually call the functions registered by lib_init() API as well. Signed-off-by: Hajime Tazaki --- arch/lib/sched.c | 406

[RFC PATCH v3 03/10] lib: public headers and API implementations for userspace programs

2015-04-19 Thread Hajime Tazaki
userspace programs which uses libos access via a public API, lib_init(), with passed arguments struct SimImported and struct SimExported. Signed-off-by: Hajime Tazaki Signed-off-by: Ryo Nakamura --- arch/lib/include/sim-assert.h | 23 +++ arch/lib/include/sim-init.h | 134

[RFC PATCH v3 04/10] lib: time handling (kernel glue code)

2015-04-19 Thread Hajime Tazaki
timer related (internal) functions such as add_timer(), do_gettimeofday() of kernel are trivially reimplemented for libos. these eventually call the functions registered by lib_init() API. Signed-off-by: Hajime Tazaki taz...@sfc.wide.ad.jp --- arch/lib/hrtimer.c | 122

[RFC PATCH v3 08/10] lib: auxially files for auto-generated asm-generic files of libos

2015-04-19 Thread Hajime Tazaki
these files works as stubs in order to transparently run the other kernel part (e.g., net/) on libos environment. Signed-off-by: Hajime Tazaki taz...@sfc.wide.ad.jp --- arch/lib/include/asm/Kbuild | 57 +++ arch/lib/include/asm/atomic.h | 50

[RFC PATCH v3 06/10] lib: sysctl handling (kernel glue code)

2015-04-19 Thread Hajime Tazaki
This interacts with fs/proc_fs.c for sysctl-like interface registed via lib_init() API. Signed-off-by: Hajime Tazaki taz...@sfc.wide.ad.jp --- arch/lib/sysctl.c | 270 ++ 1 file changed, 270 insertions(+) create mode 100644 arch/lib/sysctl.c

[RFC PATCH v3 10/10] lib: tools used for test scripts

2015-04-19 Thread Hajime Tazaki
These auxiliary files are used for testing and debugging of net/ code with libos. a simple test is implemented with make test ARCH=lib. Signed-off-by: Hajime Tazaki taz...@sfc.wide.ad.jp --- tools/testing/libos/.gitignore | 6 + tools/testing/libos/Makefile | 38

[RFC PATCH v3 09/10] lib: libos build scripts and documentation

2015-04-19 Thread Hajime Tazaki
document and build scripts for libos architecture. Signed-off-by: Hajime Tazaki taz...@sfc.wide.ad.jp Signed-off-by: Ryo Nakamura u...@haeena.net --- Documentation/virtual/libos-howto.txt | 144 MAINTAINERS | 9 + arch/lib/.gitignore | 8

[RFC PATCH v3 05/10] lib: context and scheduling functions (kernel glue code) for libos

2015-04-19 Thread Hajime Tazaki
contexnt primitives of kernel such as soft interupts, scheduling, tasklet are implemented for libos. these functions eventually call the functions registered by lib_init() API as well. Signed-off-by: Hajime Tazaki taz...@sfc.wide.ad.jp --- arch/lib/sched.c | 406

[RFC PATCH v3 03/10] lib: public headers and API implementations for userspace programs

2015-04-19 Thread Hajime Tazaki
userspace programs which uses libos access via a public API, lib_init(), with passed arguments struct SimImported and struct SimExported. Signed-off-by: Hajime Tazaki taz...@sfc.wide.ad.jp Signed-off-by: Ryo Nakamura u...@haeena.net --- arch/lib/include/sim-assert.h | 23 +++ arch/lib/include

[RFC PATCH v3 01/10] sysctl: make some functions unstatic to access by arch/lib

2015-04-19 Thread Hajime Tazaki
libos (arch/lib) emulates a sysctl-like interface by a function call of userspace by enumerating sysctl tree from sysctl_table_root. It requires to be publicly accessible to this symbol and related functions. Signed-off-by: Hajime Tazaki taz...@sfc.wide.ad.jp --- fs/proc/proc_sysctl.c | 36

  1   2   >