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 by

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 operati

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 in

[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
or further information, here is a slideset 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-to

[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/s

[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 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/s

[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
stem-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 arc

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

[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
dev0.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

[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/s

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

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 09/10] lib: libos build scripts and documentation

2015-04-21 Thread Hajime Tazaki
). > > 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

[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/Mak

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

2015-04-19 Thread Hajime Tazaki
i/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

Re: [RFC PATCH v2 02/11] slab: add private memory allocator header for arch/lib

2015-04-17 Thread Hajime Tazaki
At Fri, 17 Apr 2015 17:08:22 +0200, Richard Weinberger wrote: > add header includion for CONFIG_LIB to wrap kmalloc and co. This will > bring malloc(3) based allocator used by arch/lib. > >>> > >>> Maybe add another allocator insteadl? SLLB which implements memory > >>> management using

Re: [RFC PATCH v2 02/11] slab: add private memory allocator header for arch/lib

2015-04-17 Thread Hajime Tazaki
Hi Christoph, Richard, At Fri, 17 Apr 2015 14:44:35 +0200, Richard Weinberger wrote: > > Am 17.04.2015 um 14:17 schrieb Christoph Lameter: > > On Fri, 17 Apr 2015, Hajime Tazaki wrote: > > > >> add header includion for CONFIG_LIB to wrap kmalloc and co. This will

[RFC PATCH v2 04/11] lib: memory management (kernel glue code)

2015-04-17 Thread Hajime Tazaki
Signed-off-by: Hajime Tazaki --- arch/lib/slab.c | 203 1 file changed, 203 insertions(+) create mode 100644 arch/lib/slab.c diff --git a/arch/lib/slab.c b/arch/lib/slab.c new file mode 100644 index 000..a08f736 --- /dev/null +++ b

[RFC PATCH v2 09/11] lib: asm-generic files

2015-04-17 Thread Hajime Tazaki
Signed-off-by: Hajime Tazaki --- arch/lib/include/asm/Kbuild | 57 +++ arch/lib/include/asm/atomic.h | 50 ++ arch/lib/include/asm/barrier.h| 8 + arch/lib/include/asm/bitsperlong.h| 12 arch

[RFC PATCH v2 02/11] slab: add private memory allocator header for arch/lib

2015-04-17 Thread Hajime Tazaki
add header includion for CONFIG_LIB to wrap kmalloc and co. This will bring malloc(3) based allocator used by arch/lib. Signed-off-by: Hajime Tazaki --- include/linux/slab.h | 12 1 file changed, 12 insertions(+) diff --git a/include/linux/slab.h b/include/linux/slab.h index

[RFC PATCH v2 06/11] lib: context and scheduling handling (kernel glue code)

2015-04-17 Thread Hajime Tazaki
Signed-off-by: Hajime Tazaki --- arch/lib/sched.c | 406 +++ arch/lib/softirq.c | 108 ++ arch/lib/tasklet.c | 76 ++ arch/lib/workqueue.c | 242 ++ 4 files changed, 832 insertions(+) create

[RFC PATCH v2 11/11] lib: tools used for test scripts

2015-04-17 Thread Hajime Tazaki
These auxiliary files are used for make test ARCH=lib. Signed-off-by: Hajime Tazaki --- tools/testing/libos/.gitignore | 6 + tools/testing/libos/Makefile | 38 +++ tools/testing/libos/README | 15 +++ tools/testing/libos/bisect.sh| 10

[RFC PATCH v2 10/11] lib: libos build scripts and documentation

2015-04-17 Thread Hajime Tazaki
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 | 121 +++ arch/lib/Makefile

[RFC PATCH v2 08/11] lib: other kernel glue layer code

2015-04-17 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 v2 07/11] lib: sysctl handling (kernel glue code)

2015-04-17 Thread Hajime Tazaki
This interacts with fs/proc_fs.c for sysctl-like interface accessed 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 v2 05/11] lib: time handling (kernel glue code)

2015-04-17 Thread Hajime Tazaki
Signed-off-by: Hajime Tazaki --- arch/lib/hrtimer.c | 122 +++ arch/lib/tasklet-hrtimer.c | 57 +++ arch/lib/time.c| 144 +++ arch/lib/timer.c | 238 + 4 files changed

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

2015-04-17 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 v2 03/11] lib: public headers and API implementations for userspace programs

2015-04-17 Thread Hajime Tazaki
userspace programs access via 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 ++ arch/lib/include/sim

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

2015-04-17 Thread Hajime Tazaki
ary-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 (11): sysctl: make some functions unstatic to access by arch/lib slab: add private memory allocator heade

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

2015-04-13 Thread Hajime Tazaki
At Thu, 09 Apr 2015 10:36:23 +0200, Richard Weinberger wrote: > > Am 31.03.2015 um 09:47 schrieb Hajime Tazaki: > > right now arch/lib/Makefile isn't fully on the Kbuild > > system: build file dependency is not tracked at all. > > > > while I should learn mor

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

2015-04-02 Thread Hajime Tazaki
Thanks Rusty, At Wed, 01 Apr 2015 11:59:39 +1030, Rusty Russell wrote: > > Hajime Tazaki writes: > > the issue here is the decision between 'no-ops' and > > 'assert(false)' depends on the context. an auto-generated > > mechanism needs some hand-writt

Re: [RFC PATCH 08/11] lib: other kernel glue layer code

2015-04-02 Thread Hajime Tazaki
Hi Richard, At Tue, 31 Mar 2015 16:36:55 +0900, Hajime Tazaki wrote: > now I'm trying to minimize those stubs by reusing the original > codes (i.e., fs/filesystems.c for register_filesystem()). I > will let you know once I've done (maybe v2 RFC if you think > it's

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

2015-03-31 Thread Hajime Tazaki
At Mon, 30 Mar 2015 08:41:52 +0200, Richard Weinberger wrote: > > one more concern on the out-of-arch-tree design is that how > > to handle our asm-generic-based header files > > (arch/lib/include/asm). we have been heavily used > > 'generic-y' in the Kbuild file to reuse header files. > > As no

Re: [RFC PATCH 08/11] lib: other kernel glue layer code

2015-03-31 Thread Hajime Tazaki
Hi Richard, thanks again. At Sun, 29 Mar 2015 20:17:02 +0200, Richard Weinberger wrote: > > Am 24.03.2015 um 14:10 schrieb Hajime Tazaki: > > These files are used to provide the same function calls so that other > > network stack code keeps untouched. > > > >

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

2015-03-29 Thread Hajime Tazaki
At Sat, 28 Mar 2015 22:17:40 +0100, Richard Weinberger wrote: > > Continuous testing is paramount. Running the kernel as > > a lib provides an unparalleled method for testing most of > > the kernel. It will improve testing capabilities > > dramatically, > > and on the flipside it will keep the

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

2015-03-29 Thread Hajime Tazaki
Hi Richard, At Fri, 27 Mar 2015 10:21:59 +0100, Richard Weinberger wrote: > Just an idea popping out of my head... > > What about putting libos into tools/testing/ and make it much more generic > and framework alike. it's trivial though, libos is not only for the testing (i.e., NUSE). # of co

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

2015-03-26 Thread Hajime Tazaki
Hi Richard, At Thu, 26 Mar 2015 19:55:06 +0100, Richard Weinberger wrote: > >> feeling that "lib" is the wrong name. > >> It has not much do to with an architecture. > > > > could you care to elaborate your feeling more explicitly ? > > > > what is an architecture here and what is _not_ an > >

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

2015-03-26 Thread Hajime Tazaki
Hi Rusty, At Fri, 27 Mar 2015 14:01:22 +1030, Rusty Russell wrote: > > Richard Weinberger writes: > > This also infers that arch/lib will be broken most of the time as > > every time the networking stack references a new symbol it > > has to be duplicated into arch/lib. > > > > But this does no

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

2015-03-26 Thread Hajime Tazaki
Hi Richard, At Wed, 25 Mar 2015 23:50:23 +0100, Richard Weinberger wrote: > > Hi! > > Am 25.03.2015 um 15:48 schrieb Hajime Tazaki: > > > > At Tue, 24 Mar 2015 16:27:51 +0100, > > Richard Weinberger wrote: > >> > >> I'd say you sho

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

2015-03-25 Thread Hajime Tazaki
At Tue, 24 Mar 2015 09:13:39 -0700, Joe Perches wrote: > > On Tue, 2015-03-24 at 22:10 +0900, Hajime Tazaki wrote: > > libos (arch/lib) emulates a sysctl-like interface by a function call of > > userspace by enumerating sysctl tree from sysctl_table_root. It requires

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

2015-03-25 Thread Hajime Tazaki
At Tue, 24 Mar 2015 16:27:51 +0100, Richard Weinberger wrote: > > I'd say you should try hard to re-use/integrate your work in arch/um. > With um we already have an architecture which targets userspace, > having two needs a very good justification. in addition to the case of my previous email, l

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

2015-03-24 Thread Hajime Tazaki
At Tue, 24 Mar 2015 15:32:05 +0100, Richard Weinberger wrote: > > Am 24.03.2015 um 15:25 schrieb Hajime Tazaki: > > At Tue, 24 Mar 2015 14:21:49 +0100, > > Richard Weinberger wrote: > >> > >> Am 24.03.2015 um 14:10 schrieb Hajime Tazaki: > >> >

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

2015-03-24 Thread Hajime Tazaki
Hi, thanks for your comment. At Tue, 24 Mar 2015 14:21:49 +0100, Richard Weinberger wrote: > > Am 24.03.2015 um 14:10 schrieb Hajime Tazaki: > > == More information == > > > > The crucial difference between UML (user-mode linux) and this approach > > is that w

[RFC PATCH 05/11] lib: time handling (kernel glue code)

2015-03-24 Thread Hajime Tazaki
Signed-off-by: Hajime Tazaki --- arch/lib/hrtimer.c | 122 arch/lib/tasklet-hrtimer.c | 57 +++ arch/lib/time.c| 149 + arch/lib/timer.c | 230 + 4 files

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

2015-03-24 Thread Hajime Tazaki
userspace programs access via 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 ++ arch/lib/include/sim

[RFC PATCH 07/11] lib: sysctl handling (kernel glue code)

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

[RFC PATCH 02/11] slab: add private memory allocator header for arch/lib

2015-03-24 Thread Hajime Tazaki
add header includion for CONFIG_LIB to wrap kmalloc and co. This will bring malloc(3) based allocator used by arch/lib. Signed-off-by: Hajime Tazaki --- include/linux/slab.h | 12 1 file changed, 12 insertions(+) diff --git a/include/linux/slab.h b/include/linux/slab.h index

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

2015-03-24 Thread Hajime Tazaki
information, here is a slideset 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

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

2015-03-24 Thread Hajime Tazaki
Signed-off-by: Hajime Tazaki Signed-off-by: Ryo Nakamura --- Documentation/virtual/libos-howto.txt | 143 MAINTAINERS | 9 + arch/lib/.gitignore | 8 + arch/lib/Kconfig | 121 +++ arch/lib/Makefile

[RFC PATCH 09/11] lib: asm-generic files

2015-03-24 Thread Hajime Tazaki
Signed-off-by: Hajime Tazaki --- arch/lib/include/asm/Kbuild | 55 +++ arch/lib/include/asm/atomic.h | 47 ++ arch/lib/include/asm/barrier.h| 8 + arch/lib/include/asm/bitsperlong.h| 12 arch

[RFC PATCH 06/11] lib: context and scheduling handling (kernel glue code)

2015-03-24 Thread Hajime Tazaki
Signed-off-by: Hajime Tazaki --- arch/lib/sched.c | 365 +++ arch/lib/softirq.c | 104 +++ arch/lib/tasklet.c | 76 +++ arch/lib/workqueue.c | 242 ++ 4 files changed, 787 insertions

[RFC PATCH 08/11] lib: other kernel glue layer code

2015-03-24 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/cred.c | 16 +++ arch/lib/dcache.c | 93 +++ arch/lib/filemap.c | 27 + arch/lib/fs.c

[RFC PATCH 04/11] lib: memory management (kernel glue code)

2015-03-24 Thread Hajime Tazaki
Signed-off-by: Hajime Tazaki --- arch/lib/slab.c | 200 1 file changed, 200 insertions(+) create mode 100644 arch/lib/slab.c diff --git a/arch/lib/slab.c b/arch/lib/slab.c new file mode 100644 index 000..93ff183c --- /dev/null +++ b

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

2015-03-24 Thread Hajime Tazaki
These auxiliary files are used for make test ARCH=lib. Signed-off-by: Hajime Tazaki --- tools/testing/libos/.gitignore | 6 + tools/testing/libos/Makefile | 38 +++ tools/testing/libos/README | 15 +++ tools/testing/libos/bisect.sh| 10

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

2015-03-24 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 | 16 1 file