[osv-dev] [COMMIT osv master] sched.hh: add missing include

2019-06-20 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master sched.hh: add missing include sched.hh now uses strlcpy(), which is defined in so we should include it directly instead of hoping that the code including sched.hh will also include string.h. Refs #1022. Signed-off-by: Nadav Har'El

[osv-dev] [COMMIT osv master] Move kernel to 0x40200000 address (1 GiB higher) in virtual memory

2019-06-23 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Nadav Har'El Branch: master Move kernel to 0x4020 address (1 GiB higher) in virtual memory This patch provides all necessary changes to move OSv kernel by 1 GiB higher in virtual memory space to start at 0x4020. Most changes involve adding or subtract

[osv-dev] [COMMIT osv master] Allow running non-PIE executables that do not collide with kernel

2019-06-23 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Nadav Har'El Branch: master Allow running non-PIE executables that do not collide with kernel This patch provides necessary changes to OSv dynamic linker to allow running non-PIEs (Position Dependant Executables) as long as they do not collide in virtual memo

[osv-dev] [COMMIT osv master] Make RAMFS not to free file data when file is still opened

2019-06-24 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Make RAMFS not to free file data when file is still opened Even though it is valid to delete a file its data (i-node) should not be deleted until all file descriptors are closed. This patch fixes the bug in file deletion logi

[osv-dev] [COMMIT osv master] Fix slow write/append to files on ramfs

2019-06-24 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Fix slow write/append to files on ramfs This patch improves performance and memory utilization when writing/appending to files on ramfs. Before this patch every write to a file when size needed to increase required allocating

[osv-dev] [COMMIT osv master] hpet: Support 32-bit counter

2019-06-29 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Nadav Har'El Branch: master hpet: Support 32-bit counter This patch adds very limited support of hpets with 32-bit main counter. For now it does not handle wrap-around (typically around 7 minutes) but is enough to run 'hello world' example on platforms that s

[osv-dev] [COMMIT osv master] mprotect: page-align len parameter instead of returning error

2019-06-30 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Nadav Har'El Branch: master mprotect: page-align len parameter instead of returning error Signed-off-by: Waldemar Kozaczuk Message-Id: <20190629040727.9569-1-jwkozac...@gmail.com> --- diff --git a/libc/mman.cc b/libc/mman.cc --- a/libc/mman.cc +++ b/libc/mm

[osv-dev] [COMMIT osv master] procfs: populate maps file with i-node numbers

2019-07-01 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Nadav Har'El Branch: master procfs: populate maps file with i-node numbers This patch refines the implementation of procfs to generate maps file that contains correct file i-node numbers instead of 0s for file VMAs as shown below: 0-0 ---p 00:00 0 1

[osv-dev] [COMMIT osv master] procfs: Add device ID information to the maps file

2019-07-01 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master procfs: Add device ID information to the maps file Signed-off-by: Waldemar Kozaczuk --- diff --git a/core/mmu.cc b/core/mmu.cc --- a/core/mmu.cc +++ b/core/mmu.cc @@ -1687,6 +1687,7 @@ file_vma::file_vma(addr_range range, un

[osv-dev] [COMMIT osv master] firecracker: bumped the version to 0.17.0

2019-07-01 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master firecracker: bumped the version to 0.17.0 Signed-off-by: Waldemar Kozaczuk --- diff --git a/scripts/firecracker.py b/scripts/firecracker.py --- a/scripts/firecracker.py +++ b/scripts/firecracker.py @@ -93,7 +93,8 @@ def conf

[osv-dev] [COMMIT osv master] syscall: add getpid

2019-07-02 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master syscall: add getpid Signed-off-by: Waldemar Kozaczuk --- diff --git a/linux.cc b/linux.cc --- a/linux.cc +++ b/linux.cc @@ -418,6 +418,7 @@ long syscall(long number, ...) SYSCALL4(fstatat, int, const char *, struct stat

[osv-dev] [COMMIT osv master] signal: tag user handler thread as an application one

2019-07-02 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master signal: tag user handler thread as an application one Signed-off-by: Waldemar Kozaczuk --- diff --git a/libc/signal.cc b/libc/signal.cc --- a/libc/signal.cc +++ b/libc/signal.cc @@ -345,6 +345,9 @@ int kill(pid_t pid, int si

[osv-dev] [COMMIT osv master] Make OSv boot as vmlinuz

2019-07-02 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Make OSv boot as vmlinuz This patch adds new type of build artifact - vmlinuz.bin - that allows OSv boot as vmlinuz image. Essentialy the vmlinuz.bin wraps the uncompressed version of OSv loader.elf by prepending it with 1K-lo

[osv-dev] [COMMIT osv master] Prepare for local-exec TLS patch

2019-07-03 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Prepare for local-exec TLS patch This patch mostly adds comments in relevant places of the code related to relocating ELF symbols in order to make it easier to review the follow-up patch adding support of local exec TLS. Sign

[osv-dev] [COMMIT osv master] Clean boot logic from redundant passing OSV_KERNEL_BASE

2019-07-06 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Clean boot logic from redundant passing OSV_KERNEL_BASE This patch removes unnecessary operations in booting code of passing OSV_KERNEL_BASE as a parameter. Signed-off-by: Waldemar Kozaczuk --- diff --git a/arch/x64/boot.S

[osv-dev] [COMMIT osv-apps master] Update graalvm-example to use latest version 19.1.0

2019-07-08 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Update graalvm-example to use latest version 19.1.0 This patch also converts the app to build as a regular self-contained Linux executable that runs as-is on OSv. The previous version of this example built it as a shared libra

[osv-dev] [COMMIT osv-apps master] Added GraalVM version of native java httpserver app

2019-07-08 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Added GraalVM version of native java httpserver app Signed-off-by: Waldemar Kozaczuk --- diff --git a/graalvm-httpserver/Makefile b/graalvm-httpserver/Makefile --- a/graalvm-httpserver/Makefile +++ b/graalvm-httpserver/Makef

[osv-dev] [COMMIT osv-apps master] Add graalvm netty plot example to demonstrate more complex example using isolates

2019-07-08 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Add graalvm netty plot example to demonstrate more complex example using isolates Signed-off-by: Waldemar Kozaczuk --- diff --git a/graalvm-netty-plot/Makefile b/graalvm-netty-plot/Makefile --- a/graalvm-netty-plot/Makefi

[osv-dev] [COMMIT osv master] update apps submodule

2019-07-09 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master update apps submodule Signed-off-by: Nadav Har'El --- diff --git a/apps b/apps --- a/apps +++ b/apps @@ -1 +1 @@ -Subproject commit 1807b4dbf14df922269d08f20153d7fc4ca4dd75 +Subproject commit 36bc528cd0e450ef677fc37bc7a56f979b025e87

[osv-dev] [COMMIT osv master] Support PVH/HVM direct kernel boot

2019-07-09 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Nadav Har'El Branch: master Support PVH/HVM direct kernel boot QEMU 4.0 and later supports new way of booting Linux by specifying 64-bit vmlinux ELF. Please see this for details - https://patchwork.kernel.org/patch/10741013/. This patch enhances OSv boot log

[osv-dev] [COMMIT osv master] Enhance scripts/test.py to allow running unit tests on firecracker

2019-07-09 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Enhance scripts/test.py to allow running unit tests on firecracker This patch enhances scripts/test.py to allow running unit tests on firecracker. It does so by adding new parameter: -p HYPERVISOR. Please note that the scr

[osv-dev] [COMMIT osv master] Refine confstr() to conform more closely to Linux spec

2019-07-10 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Refine confstr() to conform more closely to Linux spec Please see https://linux.die.net/man/3/confstr for more details. Signed-off-by: Waldemar Kozaczuk --- diff --git a/runtime.cc b/runtime.cc --- a/runtime.cc +++ b/runtim

[osv-dev] [COMMIT osv master] Enhanced manifest_from_host.sh to support building apps from host and docker images

2019-07-11 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Enhanced manifest_from_host.sh to support building apps from host and docker images Signed-off-by: Waldemar Kozaczuk --- diff --git a/scripts/manifest_from_host.sh b/scripts/manifest_from_host.sh --- a/scripts/manifest_fr

[osv-dev] [COMMIT osv-apps master] Refined java-example to run with any java app

2019-07-11 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Refined java-example to run with any java app Signed-off-by: Waldemar Kozaczuk --- diff --git a/java-example/module.py b/java-example/module.py --- a/java-example/module.py +++ b/java-example/module.py @@ -2,4 +2,4 @@ api.

[osv-dev] [COMMIT osv-apps master] Added java-from-host app

2019-07-11 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Added java-from-host app Signed-off-by: Waldemar Kozaczuk --- diff --git a/java-from-host/Makefile b/java-from-host/Makefile --- a/java-from-host/Makefile +++ b/java-from-host/Makefile @@ -0,0 +1,14 @@ +.PHONY: module clean

[osv-dev] [COMMIT osv-apps master] Added node-from-host app

2019-07-11 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Added node-from-host app Signed-off-by: Waldemar Kozaczuk --- diff --git a/node-from-host/Makefile b/node-from-host/Makefile --- a/node-from-host/Makefile +++ b/node-from-host/Makefile @@ -0,0 +1,12 @@ +.PHONY: module clean

[osv-dev] [COMMIT osv-apps master] Added openjdk12 app

2019-07-11 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Added openjdk12 app Signed-off-by: Waldemar Kozaczuk --- diff --git a/openjdk12-zulu-java-base/Makefile b/openjdk12-zulu-java-base/Makefile --- a/openjdk12-zulu-java-base/Makefile +++ b/openjdk12-zulu-java-base/Makefile @

[osv-dev] [COMMIT osv-apps master] Added openjdk12 app that builds from docker image

2019-07-11 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Added openjdk12 app that builds from docker image Signed-off-by: Waldemar Kozaczuk --- diff --git a/openjdk12-jre-from-docker/Makefile b/openjdk12-jre-from-docker/Makefile --- a/openjdk12-jre-from-docker/Makefile +++ b/op

[osv-dev] [COMMIT osv master] Updated apps

2019-07-11 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Updated apps Signed-off-by: Waldemar Kozaczuk --- diff --git a/apps b/apps --- a/apps +++ b/apps @@ -1 +1 @@ -Subproject commit 36bc528cd0e450ef677fc37bc7a56f979b025e87 +Subproject commit 95972085454860848bf1901e63e0eea933c2

[osv-dev] [COMMIT osv-apps master] openjdk: updated latest scripts to pull openjdk zulu distributions from other new location

2019-07-15 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master openjdk: updated latest scripts to pull openjdk zulu distributions from other new location Signed-off-by: Waldemar Kozaczuk --- diff --git a/openjdk10-zulu-java-base/latest.sh b/openjdk10-zulu-java-base/latest.sh --- a

[osv-dev] [COMMIT osv master] Updated apps; should fix broken download of zulu openjdk8

2019-07-15 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Updated apps; should fix broken download of zulu openjdk8 Signed-off-by: Waldemar Kozaczuk --- diff --git a/apps b/apps --- a/apps +++ b/apps @@ -1 +1 @@ -Subproject commit 95972085454860848bf1901e63e0eea933c2e448 +Subprojec

[osv-dev] [COMMIT osv master] Fixed compilation errors in modules mostly related to strlcpy

2019-07-21 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Nadav Har'El Branch: master Fixed compilation errors in modules mostly related to strlcpy Signed-off-by: Waldemar Kozaczuk Message-Id: <20190720195201.6959-1-jwkozac...@gmail.com> --- diff --git a/modules/cloud-init/Makefile b/modules/cloud-init/Makefile --

[osv-dev] [COMMIT osv master] Enhance scripts/build to allow passing arguments to modules/apps

2019-07-23 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Enhance scripts/build to allow passing arguments to modules/apps This patch enhances scripts/build to allow passing arguments to modules/apps makefiles like so: ./script/build JAVA_VERSION=11 JAVA_MODULES=java.base,java.sql

[osv-dev] [COMMIT osv master] Updated apps

2019-07-24 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Updated apps Signed-off-by: Waldemar Kozaczuk --- diff --git a/apps b/apps --- a/apps +++ b/apps @@ -1 +1 @@ -Subproject commit 5ef2b1ffb70d3cd6477a8258a739df76cb389247 +Subproject commit 9e1539a5547eb8defb0d297c05fa577a196b

[osv-dev] [COMMIT osv master] Remove obsolete loader.bin build artifact and related source files

2019-07-24 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Remove obsolete loader.bin build artifact and related source files At some point long time ago the loader.bin artifact was added as a way to boot OSv on multiboot bootloaders. Unfortunately it got abandoned with time, then r

[osv-dev] [COMMIT osv master] Add --help|-h option to build script to explain usage

2019-07-24 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Add --help|-h option to build script to explain usage Signed-off-by: Waldemar Kozaczuk --- diff --git a/scripts/build b/scripts/build --- a/scripts/build +++ b/scripts/build @@ -4,6 +4,52 @@ # This first runs "make" with th

[osv-dev] [COMMIT osv-apps master] Refines openjdk8-zulu-full and replaces all openjdk?-zulu-java-base with common openjdk-zulu-9-and-above

2019-07-27 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Refines openjdk8-zulu-full and replaces all openjdk?-zulu-java-base with common openjdk-zulu-9-and-above This patch allows creating customized openjdk apps for Java 9 and above for specified JAVA version (11 is a default) a

[osv-dev] [COMMIT osv-apps master] New lua example that pull lua binaries from host

2019-07-28 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master New lua example that pull lua binaries from host Signed-off-by: Waldemar Kozaczuk --- diff --git a/lua-hello-from-host/Makefile b/lua-hello-from-host/Makefile --- a/lua-hello-from-host/Makefile +++ b/lua-hello-from-host/Make

[osv-dev] [COMMIT osv master] Updated apps

2019-07-28 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Updated apps Signed-off-by: Waldemar Kozaczuk --- diff --git a/apps b/apps --- a/apps +++ b/apps @@ -1 +1 @@ -Subproject commit 9e1539a5547eb8defb0d297c05fa577a196b4fb5 +Subproject commit d6d37ccb03cd51603c681c3527c2c03ebef8

[osv-dev] [COMMIT osv master] Remove reference to external from httpserver-api makefile

2019-07-29 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Remove reference to external from httpserver-api makefile The patch 7eda847a12dd2d89ea4ce516544a063635abf040 addressed the compilation issues related to 'strlcpy' by refactoring some modules makefiles to reference modules/java

[osv-dev] [COMMIT osv master] Removed remains of externals reference from httpserver-api Makefile

2019-07-29 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Removed remains of externals reference from httpserver-api Makefile Signed-off-by: Waldemar Kozaczuk --- diff --git a/modules/httpserver-api/Makefile b/modules/httpserver-api/Makefile --- a/modules/httpserver-api/Makefile

[osv-dev] [COMMIT osv master] scripts: hardened manifest_from_host.hs to verify lddtree is installed on the system

2019-07-30 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master scripts: hardened manifest_from_host.hs to verify lddtree is installed on the system Signed-off-by: Waldemar Kozaczuk --- diff --git a/scripts/manifest_from_host.sh b/scripts/manifest_from_host.sh --- a/scripts/manifest_f

[osv-dev] [COMMIT osv master] scripts: remove old Ubuntu and Fedora from setup.py; added support of Fedora 29

2019-07-30 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master scripts: remove old Ubuntu and Fedora from setup.py; added support of Fedora 29 Signed-off-by: Waldemar Kozaczuk --- diff --git a/scripts/setup.py b/scripts/setup.py --- a/scripts/setup.py +++ b/scripts/setup.py @@ -61,48

[osv-dev] [COMMIT osv master] scripts: fixed typo in setup.py

2019-07-30 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master scripts: fixed typo in setup.py Signed-off-by: Waldemar Kozaczuk --- diff --git a/scripts/setup.py b/scripts/setup.py --- a/scripts/setup.py +++ b/scripts/setup.py @@ -94,7 +94,7 @@ class Fedora_29(object): ec2_pack

[osv-dev] [COMMIT osv master] Reverted some changes related to upgrading openssl that got checked in prematurely

2019-07-31 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Reverted some changes related to upgrading openssl that got checked in prematurely Signed-off-by: Waldemar Kozaczuk --- diff --git a/scripts/setup.py b/scripts/setup.py --- a/scripts/setup.py +++ b/scripts/setup.py @@ -69

[osv-dev] [COMMIT osv master] scripts: Enhanced manifest_from_host.sh to better support regular expressions and filter x86_64 ELF files

2019-07-31 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master scripts: Enhanced manifest_from_host.sh to better support regular expressions and filter x86_64 ELF files Signed-off-by: Waldemar Kozaczuk --- diff --git a/scripts/manifest_from_host.sh b/scripts/manifest_from_host.sh ---

[osv-dev] [COMMIT osv master] Fixed compilation errors in modules httpserver-jolokia-plugin, josvsym and monitoring-agent mostly related to strlcpy

2019-07-31 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Fixed compilation errors in modules httpserver-jolokia-plugin, josvsym and monitoring-agent mostly related to strlcpy Signed-off-by: Waldemar Kozaczuk --- diff --git a/modules/httpserver-jolokia-plugin/Makefile b/module

[osv-dev] [COMMIT osv master] Fixed httpserver file system integration test

2019-07-31 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Fixed httpserver file system integration test Signed-off-by: Waldemar Kozaczuk --- diff --git a/modules/httpserver-api/tests/api/testfs.py b/modules/httpserver-api/tests/api/testfs.py --- a/modules/httpserver-api/tests/ap

[osv-dev] [COMMIT osv-apps master] lua-hello-from-host: hardened the makefile to make it work with lua5.3 executable name

2019-08-01 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master lua-hello-from-host: hardened the makefile to make it work with lua5.3 executable name Signed-off-by: Waldemar Kozaczuk --- diff --git a/lua-hello-from-host/Makefile b/lua-hello-from-host/Makefile --- a/lua-hello-from-hos

[osv-dev] [COMMIT osv master] Added initial version of README under scripts directory

2019-08-02 Thread Commit Bot
From: WALDEMAR KOZACZUK Committer: GitHub Branch: master Added initial version of README under scripts directory --- diff --git a/scripts/README.md b/scripts/README.md --- a/scripts/README.md +++ b/scripts/README.md @@ -0,0 +1,37 @@ +This directory contains number of scripts aimed to help **bu

[osv-dev] [COMMIT osv-apps master] Revised main README.md

2019-08-02 Thread Commit Bot
From: WALDEMAR KOZACZUK Committer: GitHub Branch: master Revised main README.md --- diff --git a/README.md b/README.md --- a/README.md +++ b/README.md @@ -4,8 +4,16 @@ OSv Applications Introduction -This repository contains the necessary glue to compile a bunch of -applications

[osv-dev] [COMMIT osv master] ramfs: fix arithmetic bug leading to write overflows

2019-08-06 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master ramfs: fix arithmetic bug leading to write overflows This patch fixes quite obvious bug (single line) in write operation logic that would lead to overflows and page faults due to overwritten data. It also adds couple of invari

[osv-dev] [COMMIT osv master] scheduler: Initialize _cpu field in detached_state struct

2019-08-08 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master scheduler: Initialize _cpu field in detached_state struct The patch 97fe8aa3d2d8f2c938fcaa379c44ae5a80dfbf33 enhanced OSv to start using physical memory below 2MiB. The second MiB is part of the memory where OSv copies compres

[osv-dev] [COMMIT osv-apps master] Merge branch 'master' of https://github.com/cloudius-systems/osv-apps

2019-08-10 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Merge branch 'master' of https://github.com/cloudius-systems/osv-apps --- diff --git a/README.md b/README.md --- a/README.md +++ b/README.md @@ -4,8 +4,16 @@ OSv Applications Introduction -This repository conta

[osv-dev] [COMMIT osv-apps master] java: add standard /usr/bin/java executable to jdk apps

2019-08-10 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master java: add standard /usr/bin/java executable to jdk apps This patch tweaks openjdk* makefiles to retain bin/java executable and makes module.py create a symlink /usr/bin/java pointing to the JDK java executable. Signed-off-by:

[osv-dev] [COMMIT osv-apps master] Upgraded jetty to the latest 9.4.19.v20190610

2019-08-10 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Upgraded jetty to the latest 9.4.19.v20190610 Signed-off-by: Waldemar Kozaczuk --- diff --git a/jetty/GET b/jetty/GET --- a/jetty/GET +++ b/jetty/GET @@ -2,8 +2,8 @@ set -ex mkdir upstream cd upstream -JETTY_VERSION="9.2.

[osv-dev] [COMMIT osv-apps master] Added version of lighttpd that takes files from host

2019-08-10 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Added version of lighttpd that takes files from host Signed-off-by: Waldemar Kozaczuk --- diff --git a/lighttpd-from-host/Makefile b/lighttpd-from-host/Makefile --- a/lighttpd-from-host/Makefile +++ b/lighttpd-from-host/Make

[osv-dev] [COMMIT osv master] semaphores: fix sem_trywait

2019-08-11 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Nadav Har'El Branch: master semaphores: fix sem_trywait This patch fixes a subtle but critical bug in sem_trywait() underlying implementation (semaphore.cc) which for example prevented new version of Java 12 and above hang on startup in infinite loop. It als

[osv-dev] [COMMIT osv master] pthreads: implement pthread_attr_getdetachstate

2019-08-11 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Nadav Har'El Branch: master pthreads: implement pthread_attr_getdetachstate This function is used by Java when enabling logging at trace level Signed-off-by: Waldemar Kozaczuk Message-Id: <20190810042907.16905-1-jwkozac...@gmail.com> --- diff --git a/libc/

[osv-dev] [COMMIT osv master] pthreads: make implementation of pthread_attr_getdetachstate more correct

2019-08-11 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master pthreads: make implementation of pthread_attr_getdetachstate more correct Signed-off-by: Waldemar Kozaczuk --- diff --git a/libc/pthread.cc b/libc/pthread.cc --- a/libc/pthread.cc +++ b/libc/pthread.cc @@ -642,7 +642,7 @@ in

[osv-dev] [COMMIT osv-apps master] java: removed usr.manifest from java-from-host app

2019-08-11 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master java: removed usr.manifest from java-from-host app Signed-off-by: Waldemar Kozaczuk --- diff --git a/java-from-host/.gitignore b/java-from-host/.gitignore --- a/java-from-host/.gitignore +++ b/java-from-host/.gitignore @@ -0

[osv-dev] [COMMIT osv master] Updated apps

2019-08-11 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Updated apps Signed-off-by: Waldemar Kozaczuk --- diff --git a/apps b/apps --- a/apps +++ b/apps @@ -1 +1 @@ -Subproject commit d6d37ccb03cd51603c681c3527c2c03ebef83b2e +Subproject commit 0f95e65ce017f1398aa56ec3a589884642b7

[osv-dev] [COMMIT osv master] java: add basic java test that does NOT use OSv wrapper

2019-08-11 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master java: add basic java test that does NOT use OSv wrapper Signed-off-by: Waldemar Kozaczuk --- diff --git a/modules/java-tests/tests/src/main/java/io/osv/BasicTest.java b/modules/java-tests/tests/src/main/java/io/osv/BasicTe

[osv-dev] [COMMIT osv master] Made maven more quiet and only show errors

2019-08-11 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Made maven more quiet and only show errors Signed-off-by: Waldemar Kozaczuk --- diff --git a/modules/httpserver-jolokia-plugin/Makefile b/modules/httpserver-jolokia-plugin/Makefile --- a/modules/httpserver-jolokia-plugin/

[osv-dev] [COMMIT osv-apps master] Tweaked java-from-host to filter out libX* libraries

2019-08-11 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Tweaked java-from-host to filter out libX* libraries Signed-off-by: Waldemar Kozaczuk --- diff --git a/java-from-host/Makefile b/java-from-host/Makefile --- a/java-from-host/Makefile +++ b/java-from-host/Makefile @@ -9,7 +9,

[osv-dev] [COMMIT osv master] java: tweaked openjdk7 to add /usr/bin/java symlink

2019-08-11 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master java: tweaked openjdk7 to add /usr/bin/java symlink Signed-off-by: Waldemar Kozaczuk --- diff --git a/modules/openjdk7/module.py b/modules/openjdk7/module.py --- a/modules/openjdk7/module.py +++ b/modules/openjdk7/module.py

[osv-dev] [COMMIT osv master] setup: add pax-utils package for Ubuntu and Fedora

2019-08-12 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master setup: add pax-utils package for Ubuntu and Fedora Fairly recently added script - manifest_from_host.sh - uses lddtree tool which can recursively scan ELF files for dependencies. This patch adds the package that provides lddtr

[osv-dev] [COMMIT osv master] Add docker files to help setup OSv build environment for Ubuntu/Fedora

2019-08-13 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Add docker files to help setup OSv build environment for Ubuntu/Fedora Signed-off-by: Waldemar Kozaczuk --- diff --git a/docker/Dockerfile b/docker/Dockerfile --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -0,0 +1 @@ +Do

[osv-dev] [COMMIT osv-apps master] Added python-from-host app

2019-08-14 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Added python-from-host app Signed-off-by: Waldemar Kozaczuk --- diff --git a/python-from-host/.gitignore b/python-from-host/.gitignore --- a/python-from-host/.gitignore +++ b/python-from-host/.gitignore @@ -0,0 +1 @@ +usr.ma

[osv-dev] [COMMIT osv master] Upgrade cli, lua and httpserver-api modules to use OpenSSL 1.1 and Lua 5.3

2019-08-15 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Nadav Har'El Branch: master Upgrade cli, lua and httpserver-api modules to use OpenSSL 1.1 and Lua 5.3 As the issue #1022 explains, building the default OSv image that implicitly adds cli module that in turn implicitly pulls httpserver-api and cli modules, re

[osv-dev] [COMMIT osv master] dynamic linker: adjust message when symbol missing

2019-08-15 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master dynamic linker: adjust message when symbol missing This patch adjusts the message displayed by dynamic linker to better reflect the case when symbol is missing and should be ignored when loading ELF objects with BIND_NOW. Sig

[osv-dev] [COMMIT osv master] docs: Updated main README to make it better reflect current state of OSv

2019-08-18 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master docs: Updated main README to make it better reflect current state of OSv Signed-off-by: Waldemar Kozaczuk --- diff --git a/README.md b/README.md --- a/README.md +++ b/README.md @@ -1,115 +1,103 @@ # OSv -OSv is a new open-

[osv-dev] [COMMIT osv master] hpet: handle wrap-around with 32-bit counter

2019-08-19 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master hpet: handle wrap-around with 32-bit counter This patch enhances the hpet clock with 32-bit main counter to handle wrap-arounds. It does it by maintaining separate upper 32-bit counter per-cpu and incrementing it when wrap aro

[osv-dev] [COMMIT osv master] Fix bug in arch_setup_free_memory

2019-08-21 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Nadav Har'El Branch: master Fix bug in arch_setup_free_memory The commit 97fe8aa3d2d8f2c938fcaa379c44ae5a80dfbf33 adjusted logic in arch_setup_free_memory() to improve memory utilization by making OSv use memory below kernel (<= 2MB). Ironically the new logi

[osv-dev] [COMMIT osv master] memory: enforce physical free memory ranges do not start at 0

2019-08-24 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Nadav Har'El Branch: master memory: enforce physical free memory ranges do not start at 0 Most of the time the kernel code references memory using virtual addresses. However some allocated system structures like page tables use physical addresses. For that

[osv-dev] [COMMIT osv-apps master] Revised mono-example app and add from-host version of Makefile

2019-08-25 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Revised mono-example app and add from-host version of Makefile Signed-off-by: Waldemar Kozaczuk --- diff --git a/mono-example/.gitignore b/mono-example/.gitignore --- a/mono-example/.gitignore +++ b/mono-example/.gitignore @

[osv-dev] [COMMIT osv master] memory setup: ignore 0-sized e820 region

2019-08-25 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master memory setup: ignore 0-sized e820 region This patch also adds extra comments to mmu::free_initial_memory_range(). Signed-off-by: Waldemar Kozaczuk --- diff --git a/core/mmu.cc b/core/mmu.cc --- a/core/mmu.cc +++ b/core/mmu.

[osv-dev] [COMMIT osv master] pthreads: provide minimal implementation to handle SCHED_OTHER policy

2019-08-25 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master pthreads: provide minimal implementation to handle SCHED_OTHER policy Signed-off-by: Waldemar Kozaczuk --- diff --git a/libc/pthread.cc b/libc/pthread.cc --- a/libc/pthread.cc +++ b/libc/pthread.cc @@ -928,30 +928,45 @@ void

[osv-dev] [COMMIT osv master] libc: added __exp2_finite wrapper needed by newer libx265

2019-08-27 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master libc: added __exp2_finite wrapper needed by newer libx265 Signed-off-by: Waldemar Kozaczuk --- diff --git a/libc/math/aliases.c b/libc/math/aliases.c --- a/libc/math/aliases.c +++ b/libc/math/aliases.c @@ -5,6 +5,11 @@ doubl

[osv-dev] [COMMIT osv master] elf: skip old version symbols during lookup

2019-08-29 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Nadav Har'El Branch: master elf: skip old version symbols during lookup This patch modifies dynamic loader lookup logic to make it skip old symbols which are marked as such per version symbols table. This gap in symbols lookup logic would affect some executa

[osv-dev] [COMMIT osv master] syscall: add set_mempolicy and sched_setaffinity needed by libnuma

2019-08-30 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master syscall: add set_mempolicy and sched_setaffinity needed by libnuma Signed-off-by: Waldemar Kozaczuk --- diff --git a/linux.cc b/linux.cc --- a/linux.cc +++ b/linux.cc @@ -156,6 +156,14 @@ static long get_mempolicy(int *polic

[osv-dev] [COMMIT osv master] Ignore missing symbols when processing certain relocation types on load

2019-08-31 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master Ignore missing symbols when processing certain relocation types on load The commit https://github.com/cloudius-systems/osv/commit/f5cc12d56dd986d2c7982c5738b1f859702b07fb addressed the issue #993 to relax handling of missing

[osv-dev] [COMMIT osv-apps master] elasticsearch: upgraded to latest 7.3.1

2019-09-03 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master elasticsearch: upgraded to latest 7.3.1 Signed-off-by: Waldemar Kozaczuk --- diff --git a/elasticsearch/Makefile b/elasticsearch/Makefile --- a/elasticsearch/Makefile +++ b/elasticsearch/Makefile @@ -1,10 +1,10 @@ -VERSION:=

[osv-dev] [COMMIT osv-apps master] ffmpeg: added version that takes binaries from host

2019-09-03 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master ffmpeg: added version that takes binaries from host Signed-off-by: Waldemar Kozaczuk --- diff --git a/ffmpeg-from-host/Makefile b/ffmpeg-from-host/Makefile --- a/ffmpeg-from-host/Makefile +++ b/ffmpeg-from-host/Makefile @@ -

[osv-dev] [COMMIT osv-apps master] ffmpeg: upgraded to 4.2 and tweaked Makefile to produce smaller executable

2019-09-04 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master ffmpeg: upgraded to 4.2 and tweaked Makefile to produce smaller executable Signed-off-by: Waldemar Kozaczuk --- diff --git a/ffmpeg/Makefile b/ffmpeg/Makefile --- a/ffmpeg/Makefile +++ b/ffmpeg/Makefile @@ -6,7 +6,7 @@ #

[osv-dev] [COMMIT osv master] fs: add subset of sysfs implementation needed by numa library

2019-09-04 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master fs: add subset of sysfs implementation needed by numa library Signed-off-by: Waldemar Kozaczuk --- diff --git a/Makefile b/Makefile --- a/Makefile +++ b/Makefile @@ -1804,6 +1804,7 @@ fs_objs += rofs/rofs_vfsops.o \ fs_obj

[osv-dev] [COMMIT osv master] procfs: add minimum subset of status file intended for linuma consumption

2019-09-04 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master procfs: add minimum subset of status file intended for linuma consumption Signed-off-by: Waldemar Kozaczuk --- diff --git a/fs/procfs/procfs_vnops.cc b/fs/procfs/procfs_vnops.cc --- a/fs/procfs/procfs_vnops.cc +++ b/fs/procf

[osv-dev] [COMMIT osv master] fs: extracted common pseudofs logic

2019-09-04 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master fs: extracted common pseudofs logic Signed-off-by: Waldemar Kozaczuk --- diff --git a/Makefile b/Makefile --- a/Makefile +++ b/Makefile @@ -1802,6 +1802,7 @@ fs_objs += rofs/rofs_vfsops.o \ rofs/rofs_cache.o \

[osv-dev] [COMMIT osv master] ramfs: make sure to pass absolute paths for mkbootfs.py

2019-09-05 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master ramfs: make sure to pass absolute paths for mkbootfs.py Signed-off-by: Waldemar Kozaczuk --- diff --git a/Makefile b/Makefile --- a/Makefile +++ b/Makefile @@ -1928,8 +1928,8 @@ $(bootfs_manifest_dep): phony $(out)/bootfs.b

[osv-dev] [COMMIT osv master] firecracker: upgraded to 0.18

2019-09-05 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master firecracker: upgraded to 0.18 Signed-off-by: Waldemar Kozaczuk --- diff --git a/scripts/firecracker.py b/scripts/firecracker.py --- a/scripts/firecracker.py +++ b/scripts/firecracker.py @@ -134,7 +134,7 @@ def find_firecrack

[osv-dev] [COMMIT osv-apps master] mysql:upgraded to latest 5.6.45 and reduced patch

2019-09-05 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master mysql:upgraded to latest 5.6.45 and reduced patch Signed-off-by: Waldemar Kozaczuk --- diff --git a/mysql/GET b/mysql/GET --- a/mysql/GET +++ b/mysql/GET @@ -1,6 +1,6 @@ #!/bin/sh -VERSION=5.6.40 +VERSION=5.6.45 BASEDIR=$

[osv-dev] [COMMIT osv master] apps: updated to the latests one

2019-09-05 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master apps: updated to the latests one Signed-off-by: Waldemar Kozaczuk --- diff --git a/apps b/apps --- a/apps +++ b/apps @@ -1 +1 @@ -Subproject commit 0f95e65ce017f1398aa56ec3a589884642b732e9 +Subproject commit 21cbb0a740936212

[osv-dev] [COMMIT osv master] ramfs: make sure i-node number stay the same after node allocation

2019-09-05 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master ramfs: make sure i-node number stay the same after node allocation This patch effectively fixes a bug in ramfs implementation that would make fstat() calls return different st_ino every time for the same node. It would cause s

[osv-dev] [COMMIT osv master] scripts: fix export_manifest.py to handle all symlinks properly

2019-09-11 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master scripts: fix export_manifest.py to handle all symlinks properly Signed-off-by: Waldemar Kozaczuk --- diff --git a/scripts/export_manifest.py b/scripts/export_manifest.py --- a/scripts/export_manifest.py +++ b/scripts/export_

[osv-dev] [COMMIT osv master] scripts: enhance manifest_from_host.sh to put cmdline example for executables

2019-09-11 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master scripts: enhance manifest_from_host.sh to put cmdline example for executables Signed-off-by: Waldemar Kozaczuk --- diff --git a/scripts/build b/scripts/build --- a/scripts/build +++ b/scripts/build @@ -231,6 +231,9 @@ fi

[osv-dev] [COMMIT osv master] httpserver: make test images use openjdk8 as new jetty app requires it

2019-09-11 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master httpserver: make test images use openjdk8 as new jetty app requires it Signed-off-by: Waldemar Kozaczuk --- diff --git a/modules/httpserver-api/Makefile b/modules/httpserver-api/Makefile --- a/modules/httpserver-api/Makef

[osv-dev] [COMMIT osv master] httpserver: enhance test script to accept different location of test image

2019-09-11 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master httpserver: enhance test script to accept different location of test image Signed-off-by: Waldemar Kozaczuk --- diff --git a/modules/httpserver-api/tests/basetest.py b/modules/httpserver-api/tests/basetest.py --- a/module

[osv-dev] [COMMIT osv master] loader: print boot command line and expanded runscript line if applicable

2019-09-11 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master loader: print boot command line and expanded runscript line if applicable Very often it is not clear what the resolved boot command line for a built image might be. It makes a big difference to see the command line for trouble

[osv-dev] [COMMIT osv-apps master] kafka: upgrade kafka to 2.3.0 and added targets for native java executables

2019-09-11 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master kafka: upgrade kafka to 2.3.0 and added targets for native java executables Signed-off-by: Waldemar Kozaczuk --- diff --git a/apache-kafka/Makefile b/apache-kafka/Makefile --- a/apache-kafka/Makefile +++ b/apache-kafka/Makef

[osv-dev] [COMMIT osv-apps master] spring-boot-example: added runs for native java and made it build to run on Java 11

2019-09-12 Thread Commit Bot
From: Waldemar Kozaczuk Committer: Waldemar Kozaczuk Branch: master spring-boot-example: added runs for native java and made it build to run on Java 11 Signed-off-by: Waldemar Kozaczuk --- diff --git a/spring-boot-example/Makefile b/spring-boot-example/Makefile --- a/spring-boot-example/M

<    1   2   3   4   5   6   7   8   9   10   >