locally in HVM mode
Fixes #1043
Signed-off-by: Waldemar Kozaczuk
---
Makefile | 7 +-
arch/x64/arch-setup.cc| 39 ++
arch/x64/boot.S | 41 +---
arch/x64/entry-xen.S | 3 ++-
arch/x64/loader.ld
higher at the end of the 2GiB
limit (small memory model)
and thus support virtually any non-PIE built using small memory model.
Fixes #1043
Signed-off-by: Waldemar Kozaczuk
---
Makefile | 6 +++--
arch/x64/arch-setup.cc| 39 +---
arch/x64/boot.S
the vmlinux boot code (used with firecracker) by making sure
that all data segment registers (ES, DS, etc) are setup correctly to point
to OSv GDT table (see start32) which is critical when kernel
is not mapped 1:1.
Signed-off-by: Waldemar Kozaczuk
---
arch/x64/boot.S | 28 +++
arch
re-built when
kernel_base is changed.
Signed-off-by: Waldemar Kozaczuk
---
Makefile | 8 ++--
arch/aarch64/arch-dtb.cc | 1 +
arch/aarch64/arch.hh | 2 +-
arch/x64/arch-setup.cc | 1 +
arch/x64/arch.hh | 2 +-
arch/x64/boot16.S
almost 10M of
memory.
Fixes #1012
Signed-off-by: Waldemar Kozaczuk
---
arch/x64/arch-setup.cc | 14 --
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/arch/x64/arch-setup.cc b/arch/x64/arch-setup.cc
index 9317dd25..62236486 100644
--- a/arch/x64/arch-setup.cc
+++ b/arch
using -Wl,-Ttext-segment,0x?? option.
2) Change kernel_base in OSv makefile to a higher address that
makes it not collide with the executable (for example 0xa0);
most non-PIEs by default load at 0x40
Signed-off-by: Waldemar Kozaczuk
---
core/elf.cc| 35
This patch provides full implementation of epoll_pwait
and exposes it as a public function which is needed
by Node.JS 10.
The implementation is modeled after pselect/select.
Signed-off-by: Waldemar Kozaczuk
---
core/epoll.cc | 11 +++
linux.cc | 14 +-
2 files changed
is stored by using std::map where keys are file offsets
and values are file segments at that offset. This
eliminates the need to copy data as well as only allocates
enough memory needed for next 10% of file or desired increase.
Fixes #884
Signed-off-by: Waldemar Kozaczuk
---
fs/ramfs/ramfs.h
This patch also effectively makes unmodified coreutils
find work as expected:
./scripts/manifest_from_host.sh -w find && ./scripts/build fs=rofs
--append-manifest
./scripts/run.py -e '/find / -ls'
Signed-off-by: Waldemar Kozaczuk
---
fs/vfs/main.cc | 11 ++-
tests/tst-fs
This patch also fixes __libc_start_main() used for example
by java to terminate any remaining app threads by _post_main.
Signed-off-by: Waldemar Kozaczuk
---
core/app.cc| 8
include/osv/app.hh | 1 -
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/core/app.cc b
This patch also reverts the commit a0dcf8530c352536ab6633952b6f614f73eed154.
Signed-off-by: Waldemar Kozaczuk
---
fs/vfs/main.cc | 5 -
fs/vfs/vfs_syscalls.cc | 4
fs/vfs/vfs_task.cc | 4
3 files changed, 4 insertions(+), 9 deletions(-)
diff --git a/fs/vfs/main.cc b
.
In order to run unmodified JVM on OSV without OSV 'java wrapper'
we need to allow an ability to pass a suffix '!' in command line that gives
a hint to OSv to terminate any remaining application threads like so:
./scripts/run.py -e '/usr/bin/java -cp / Hello !'
Signed-off-by: Waldemar Kozaczuk
---
core
Signed-off-by: Waldemar Kozaczuk
---
fs/vfs/main.cc | 11 ++-
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/fs/vfs/main.cc b/fs/vfs/main.cc
index 889aa268..876ae2ba 100644
--- a/fs/vfs/main.cc
+++ b/fs/vfs/main.cc
@@ -592,10 +592,6 @@ extern "C"
int __fxstat
to run unmodified JVM on OSV without OSV 'java wrapper'
we need to allows ability to pass a suffix '!' in command line that gives
a hint to OSv to terminate any remaining application threads like so:
./scripts/run.py -e '/usr/bin/java -cp / Hello !'
Signed-off-by: Waldemar Kozaczuk
---
core/app.cc
-by: Waldemar Kozaczuk
---
fs/ramfs/ramfs.h| 2 ++
fs/ramfs/ramfs_vnops.cc | 38 +++---
tests/tst-mmap-file.cc | 31 +++
3 files changed, 68 insertions(+), 3 deletions(-)
diff --git a/fs/ramfs/ramfs.h b/fs/ramfs/ramfs.h
index 88ccbe72
ler copies of
those variables.
Fixes #689
Signed-off-by: Waldemar Kozaczuk
---
core/elf.cc | 13 +++
include/osv/elf.hh | 4 +
libc/misc/getopt.cc | 9 +-
libc/misc/getopt.hh | 66 +++
libc/misc/getopt_long.cc | 5 +-
modules/tests/Makefile | 9 +-
ler copies of
those variables.
Fixes #689
Signed-off-by: Waldemar Kozaczuk
---
core/elf.cc | 13 +++
include/osv/elf.hh | 4 +
libc/misc/getopt.cc | 54 -
libc/misc/getopt.hh | 21
libc/misc/getopt_long.cc | 7 +-
modules/tests/Makefile | 9 +-
Signed-off-by: Waldemar Kozaczuk
---
libc/stdio/fopen.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/libc/stdio/fopen.c b/libc/stdio/fopen.c
index 83452407..c6053c21 100644
--- a/libc/stdio/fopen.c
+++ b/libc/stdio/fopen.c
@@ -10,6 +10,11 @@ FILE *fopen(const char *restrict filename
for 'ls'
executable and build image
Signed-off-by: Waldemar Kozaczuk
---
scripts/build | 13 ++-
scripts/manifest_from_host.sh | 180 ++
2 files changed, 192 insertions(+), 1 deletion(-)
create mode 100755 scripts/manifest_from_host.sh
diff --git a
be sufficient for most applications
which either use tiny TLS (Golang uses 8-bytes long) if at all.
Rust ELFs tend to rely on quite large TLS in which case the limit
in loader.ld needs to be increased accordingly and loader.elf
relinked.
Fixes #352
Signed-off-by: Waldemar Kozaczuk
---
arch/x64
This patch adds GNU libc extension variables __progname and __progname_full
used by coreutils. These seem to come from BSD as 'BSD' paragraph
explains - https://rosettacode.org/wiki/Program_name#C.
Signed-off-by: Waldemar Kozaczuk
---
libc/libc.cc | 3 +++
1 file changed, 3 insertions(+)
diff
ler copies of
those variables.
Fixes #689
Signed-off-by: Waldemar Kozaczuk
---
core/elf.cc | 14 +++
include/osv/elf.hh | 4 +
libc/misc/getopt.cc | 62 +--
libc/misc/getopt_long.cc | 37 ++-
modules/tests/Makefile | 9 +-
tests/tst-getopt.cc
Signed-off-by: Waldemar Kozaczuk
---
Makefile | 4 +--
libc/misc/getopt.cc | 77
libc/misc/getopt_long.cc | 61 +++
3 files changed, 140 insertions(+), 2 deletions(-)
create mode 100644 libc/misc
Waldemar Kozaczuk (2):
Move getopt* files to libc folder and convert to C++
Enhance getopt family of functions to work with PIEs
Makefile | 4 +-
core/elf.cc | 14 +++
include/osv/elf.hh | 4 +
libc/misc/getopt.cc | 125 +
libc
This patch adds GNU libc extension variables __progname and __progname_full
used by coreutils. These seem to come from BSD as 'BSD' paragraph
explains - https://rosettacode.org/wiki/Program_name#C.
Signed-off-by: Waldemar Kozaczuk
---
core/app.cc | 6 --
libc/libc.cc | 4
2 files
This patch adds GNU libc extension function error()
as specified at https://linux.die.net/man/3/error.
This function is used by core utils programs on Linux.
Signed-off-by: Waldemar Kozaczuk
---
Makefile | 1 +
libc/misc/error.c | 37 +
2 files
qemu-nbd as of QEMU 3.1.5 stopped supporting old style of handshake.
This patch updates nbd_client.py to use new handshake.
Signed-off-by: Waldemar Kozaczuk
---
scripts/nbd_client.py | 21 -
1 file changed, 16 insertions(+), 5 deletions(-)
diff --git a/scripts/nbd_client.py
Signed-off-by: Waldemar Kozaczuk
---
core/chart.cc | 7 +++
include/osv/boot.hh | 1 +
loader.cc | 3 +++
3 files changed, 11 insertions(+)
diff --git a/core/chart.cc b/core/chart.cc
index 59311a93..c3355907 100644
--- a/core/chart.cc
+++ b/core/chart.cc
@@ -45,3 +45,10
---
core/chart.cc | 7 +++
include/osv/boot.hh | 1 +
loader.cc | 3 +++
3 files changed, 11 insertions(+)
diff --git a/core/chart.cc b/core/chart.cc
index 59311a93..c3355907 100644
--- a/core/chart.cc
+++ b/core/chart.cc
@@ -45,3 +45,10 @@ void boot_time_chart::print_chart()
This patch:
- refactors firecracker.py to better handle error scenarios
- adds ability to use external networking bridge through -b parameter (see
scripts/setup-external-bridge.sh)
- adds ability to specify custom location of kernel and image files
Signed-off-by: Waldemar Kozaczuk
---
scripts
Signed-off-by: Waldemar Kozaczuk
---
scripts/setup-external-bridge.sh | 27 +++
1 file changed, 27 insertions(+)
create mode 100755 scripts/setup-external-bridge.sh
diff --git a/scripts/setup-external-bridge.sh b/scripts/setup-external-bridge.sh
new file mode 100755
Adds implementation of virtio mmio devices
needed to support block and networking devices
on firecracker.
Signed-off-by: Waldemar Kozaczuk
---
Makefile | 1 +
arch/x64/arch-setup.cc | 5 +
drivers/virtio-mmio.cc | 216 +
drivers/virtio
Signed-off-by: Waldemar Kozaczuk
---
Makefile | 2 +
arch/x64/arch-setup.cc| 124 +-
arch/x64/arch-setup.hh| 39
arch/x64/boot.S | 55 +
arch/x64/loader.ld| 2 +-
arch/x64/setup.S
Adds logic to parse information about CPUs on
system where ACPI is not available. It does it
by parsing so called MP table. If MP table
not found assumes single vCPU.
Signed-off-by: Waldemar Kozaczuk
---
arch/x64/smp.cc | 125 ++--
1 file changed, 111
edge interrupt handlers that will
be used by virtio mmio drivers code in next patch
Signed-off-by: Waldemar Kozaczuk
---
drivers/virtio-blk.cc| 46
drivers/virtio-blk.hh| 20 +---
drivers/virtio-device.hh | 4
drivers
Fixes #956
Signed-off-by: Waldemar Kozaczuk
---
fs/vfs/main.cc | 33 +
linux.cc | 1 +
2 files changed, 34 insertions(+)
diff --git a/fs/vfs/main.cc b/fs/vfs/main.cc
index 7cc4291d..4adf4434 100644
--- a/fs/vfs/main.cc
+++ b/fs/vfs/main.cc
@@ -1760,6
This patch adds simple Python script that allows
booting OSv loader.elf on firecracker.
It also automates process of downloading and installing
firecracker. Evenntually it might be incorporated
into scripts/run.py
Signed-off-by: Waldemar Kozaczuk
---
scripts/firecracker.py | 126
probing panic driver as it
relies on ACPI as well.
Lastly we skip MADT table parsing if APCI is off and
for now assume there is single vCPU only. Eventually
we should parse vCPU information from MP table as
an alternative.
Signed-off-by: Waldemar Kozaczuk
---
arch/x64/power.cc | 30
This patch adds simple Python script that allows
booting OSv loader.elf on firecracker.
It also automates process of downloading and installing
firecracker. Evenntually it might be incorporated
into scripts/run.py
Signed-off-by: Waldemar Kozaczuk
---
scripts/firecracker.py | 100
probing panic driver as it
relies on ACPI as well.
Lastly we skip MADT table parsing if APCI is off and
for now assume there is single vCPU only. Eventually
we should parse vCPU information from MP table as
an alternative.
Signed-off-by: Waldemar Kozaczuk
---
arch/x64/power.cc | 26
time end
Signed-off-by: Waldemar Kozaczuk
---
Makefile | 1 +
arch/x64/arch-setup.cc | 180 -
arch/x64/boot.S| 37 -
arch/x64/loader.ld | 2 +-
arch/x64/power.cc | 14 +---
arch/x64/smp.cc| 16 +++-
drivers
/test.py --run_options '--virtio modern'
./scripts/test.py --run_options '--virtio modern -S'
Signed-off-by: Waldemar Kozaczuk
---
scripts/test.py | 8 +++-
scripts/tests/testing.py | 10 +++---
2 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/scripts/test.py b
or transitional
devices simulated by QEMU by passing correct
value of a new '--virtio' parameter to scripts/run.py.
Signed-off-by: Waldemar Kozaczuk
---
drivers/pci-function.cc | 16 ++-
drivers/pci-function.hh | 2 +
drivers/virtio-blk.cc| 22 -
drivers/virtio-device.hh | 1
Signed-off-by: Waldemar Kozaczuk
---
scripts/run.py | 24 +++-
1 file changed, 19 insertions(+), 5 deletions(-)
diff --git a/scripts/run.py b/scripts/run.py
index 92cd4e5f..17a21298 100755
--- a/scripts/run.py
+++ b/scripts/run.py
@@ -124,7 +124,7 @@ def start_osv_qemu
removes some unused code.
Signed-off-by: Waldemar Kozaczuk
---
Makefile | 1 +
drivers/pci-generic.cc | 25 +-
drivers/virtio-blk.cc| 37 +---
drivers/virtio-blk.hh| 6 +-
drivers/virtio-device.hh | 86 ++
drivers/virtio
n over 100 successful test runs where it would crash
almost every time
Fixes #1018 - based on over successful 50 test runs with /os/threads API being
used
in tight loop and before patch would crash sporadically
Signed-off-by: Waldemar Kozaczuk
---
arch/x64/arch-cpu.hh| 5 +++
arch/x64/arch-swit
OSv is a unikernel and exit() in OSv terminates
both app and kernel, it makes sense for sys_exit_group() do the same thing.
Signed-off-by: Waldemar Kozaczuk
---
linux.cc | 8
1 file changed, 8 insertions(+)
diff --git a/linux.cc b/linux.cc
index d548db93..1eff6ffc 100644
--- a/linux.cc
THIS is just for testing -> is not meant to be applied to OSv github tree.
Helps recreating and testing issues #536, #1010 and #1018
Signed-off-by: Waldemar Kozaczuk
---
fpu_test_scripts/poll_threads.sh | 16 +
fpu_test_scripts/run_cassandra.sh |
irtio MMIO devices,
we have decided to remove it from OSv codebase.
In future if somebody finds it useful again we will bring it back
and adjust accordingly.
Signed-off-by: Waldemar Kozaczuk
---
Makefile | 1 -
arch/x64/arch-setup.cc | 9 +-
drivers/virtio-assign.cc
Tweaked virtio device initialization to conform to more
stricter enforcement of protocol on firecracker side
Makes OSv boot on newest firecracker.
Signed-off-by: Waldemar Kozaczuk
---
drivers/virtio-blk.cc | 5 -
drivers/virtio-net.cc | 21 ++---
drivers/virtio-net.hh | 7
of creating/registering
proper interrupt logic for each transport.
Signed-off-by: Waldemar Kozaczuk
---
Makefile | 1 +
drivers/device.hh| 2 +
drivers/pci-generic.cc | 25 +++-
drivers/virtio-assign.cc | 40 ++-
drivers/virtio-blk.cc| 29
'Accept: application/json' \
-H 'Content-Type: application/json'\
-d '{
"action_type": "InstanceStart"
}'
Signed-off-by: Waldemar Kozaczuk
---
Makefile | 2 +
arch/x64/arch-setup.cc | 180 +++---
most every time
Fixes #1018 - based on over successful 50 test runs with /os/threads API being
used
in tight loop and before patch would crash sporadically
Signed-off-by: Waldemar Kozaczuk
---
arch/x64/arch-cpu.cc| 10 ++
arch/x64/arch-switch.hh | 8 +
modules/tests/Makefile | 4
.
In order to use it one needs to as smbfs to an image and then
mount desired share by using REST app API (see mount-samba.sh)
or add an init script to call mount-fs.so.
Signed-off-by: Waldemar Kozaczuk
---
Makefile | 3 +-
fs/smbfs/smbfs_null_vfsops.cc
around 125K
and new scheme uses ~44 pages (176K) of memory to satisfy all requests.
With this patch it is possible to run native example
with 18.5M of memory:
./scripts/build -j6 fs=rofs image=native-example
./scripts/run.py -c 1 -m 19M
Fixes #270
Signed-off-by: Waldemar Kozaczuk
---
core/memp
around 125K
and new scheme uses ~44 pages (176K) of memory to satisfy all requests.
Fixes #270
Signed-off-by: Waldemar Kozaczuk
---
core/mempool.cc| 144 -
include/osv/mempool.hh | 10 +++
2 files changed, 152 insertions(+), 2 deletions(-)
diff
would avoid
unnecessary instructions involved in calling a function.
Signed-off-by: Waldemar Kozaczuk
---
Makefile| 1 +
libc/math/aliases.c | 26 ++
2 files changed, 27 insertions(+)
create mode 100644 libc/math/aliases.c
diff --git a/Makefile b/Makefile
around 125K
and new scheme uses ~44 pages (176K) of memory to satisfy all requests.
Fixes #270
Signed-off-by: Waldemar Kozaczuk
---
core/mempool.cc| 133 -
include/osv/mempool.hh | 5 ++
2 files changed, 136 insertions(+), 2 deletions(-)
diff
unnecessary instructions involved in calling a function.
Signed-off-by: Waldemar Kozaczuk
---
Makefile | 5 +
libc/math/exp.c | 6 ++
libc/math/log.c | 6 ++
libc/math/log10.c | 6 ++
libc/math/log2.c | 6 ++
libc/math/pow.c | 6 ++
6 files changed, 35
Signed-off-by: Waldemar Kozaczuk
---
core/mempool.cc | 2 +-
tests/tst-small-malloc.cc | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/core/mempool.cc b/core/mempool.cc
index 23dc67da..102e4e6e 100644
--- a/core/mempool.cc
+++ b/core/mempool.cc
@@ -1547,7
scenarios.
Signed-off-by: Waldemar Kozaczuk
---
core/mempool.cc | 13 +++---
tests/tst-small-malloc.cc | 52 ++-
2 files changed, 49 insertions(+), 16 deletions(-)
diff --git a/core/mempool.cc b/core/mempool.cc
index deb7a0bb..23dc67da 100644
--- a/core
#1011
Signed-off-by: Waldemar Kozaczuk
---
core/mempool.cc | 5 +++--
modules/tests/Makefile| 2 +-
tests/tst-small-malloc.cc | 45 +++
3 files changed, 49 insertions(+), 3 deletions(-)
create mode 100644 tests/tst-small-malloc.cc
diff --git
Signed-off-by: Waldemar Kozaczuk
---
bsd/sys/kern/uipc_socket.cc | 11 +++
bsd/sys/net/raw_usrreq.cc | 3 ++-
bsd/sys/net/rtsock.cc | 5 ++---
bsd/sys/netinet/raw_ip.cc | 3 ++-
bsd/sys/netinet/tcp_usrreq.cc | 6 --
bsd/sys/netinet/udp_usrreq.cc | 3 ++-
bsd
. Eventually it fixes
permissions of PT_LOAD sections to make it non-writable.
This patch most notably allows to run GraalVM generated
Java apps.
Fixes #1004
Signed-off-by: Waldemar Kozaczuk
---
core/elf.cc| 47 +++---
include/osv/elf.hh | 5
it fixes
permissions of PT_LOAD sections to make it non-writable.
This patch most notably allows to run GraalVM generated
Java apps.
Fixes #1004
Signed-off-by: Waldemar Kozaczuk
---
core/elf.cc| 47 +++---
include/osv/elf.hh | 5 -
modules
be565320c082c00069614c850d29b42831b3dea6
Signed-off-by: Waldemar Kozaczuk
---
Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 44a86c01..2270206b 100644
--- a/Makefile
+++ b/Makefile
@@ -1869,9 +1869,9 @@ $(out)/loader.elf: $(stage1_targets)
arch/$(arch)/loader.ld $(out
can boot and execute in around 50ms.
This is an example of how to execute OSv on hyperkit:
hyperkit -A -m 512M \
-s 0:0,hostbridge \
-s 31,lpc \
-l com1,stdio \
-s 4,virtio-blk,build/release/usr.img \
-f multiboot,build/release/loader.bin,,'/hello.so'
Signed-off-by: Waldemar Kozaczuk
lzkernel_base to
build bigger ramfs images.
Fixes #985
Signed-off-by: Waldemar Kozaczuk
---
Makefile| 12 ++-
arch/x64/lzloader.ld| 1 +
fastlz/fastlz.h | 20 +++
fastlz/lz.cc| 69 ++---
fastlz
logic
to setup large stack.
Signed-off-by: Waldemar Kozaczuk
---
arch/x64/arch-switch.hh | 55 +++--
1 file changed, 35 insertions(+), 20 deletions(-)
diff --git a/arch/x64/arch-switch.hh b/arch/x64/arch-switch.hh
index e376954..223e4db 100644
logic
to setup large stack.
Signed-off-by: Waldemar Kozaczuk
---
arch/x64/arch-switch.hh | 52 +
1 file changed, 32 insertions(+), 20 deletions(-)
diff --git a/arch/x64/arch-switch.hh b/arch/x64/arch-switch.hh
index e3769540..817ea7ed 100644
--- a/arch/x64
logic to setup large stack.
Tiny stack had to be increased to 4096 bytes to accomodate
mmap call.
Signed-off-by: Waldemar Kozaczuk
---
arch/x64/arch-switch.hh | 40 ++--
1 file changed, 26 insertions(+), 14 deletions(-)
diff --git a/arch/x64/arch-switch.hh b
multiboot info structure into the low memory.
Signed-off-by: Waldemar Kozaczuk
---
Makefile | 5 +++--
arch/x64/boot32.S | 2 +-
scripts/run.py| 16 ++--
3 files changed, 18 insertions(+), 5 deletions(-)
diff --git a/Makefile b/Makefile
index 770b28d0..0ca95c64 100644
multiboot info structure in low memory.
Signed-off-by: Waldemar Kozaczuk
---
Makefile | 5 +++--
arch/x64/boot32.S | 2 +-
scripts/run.py| 10 ++
3 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index 770b28d0..0ca95c64 100644
--- a/Makefile
referenced later. So in essence we are postponing
abort until absolutely necessary.
Fixes #993
Signed-off-by: Waldemar Kozaczuk
---
arch/aarch64/arch-elf.cc | 11 ---
arch/x64/arch-elf.cc | 11 ---
core/elf.cc | 21 -
include/osv/elf.hh
referenced later. So in essence we are postponing
abort until absolutely necessary.
Fixes #993
Signed-off-by: Waldemar Kozaczuk
---
arch/aarch64/arch-elf.cc | 11 ---
arch/x64/arch-elf.cc | 11 ---
core/elf.cc | 22 +-
include/osv/elf.hh |
likely not aligned
which possibly means slower access. This could be improved by
making individual files aligned in bootfs.bin.
Fixes #977
Signed-off-by: Waldemar Kozaczuk
---
fs/ramfs/ramfs.h| 1 +
fs/ramfs/ramfs_vnops.cc | 38 ++
fs/vfs/main.cc
likely not aligned
which possibly means slower access. This could be improved by
making individual files aligned in bootfs.bin.
Fixes #977
Signed-off-by: Waldemar Kozaczuk
---
fs/ramfs/ramfs.h| 1 +
fs/ramfs/ramfs_vnops.cc | 38 ++
fs/vfs/main.cc
lzkernel_base to
build bigger ramfs images
Fixes #985
Signed-off-by: Waldemar Kozaczuk
---
Makefile| 11 --
arch/x64/lzloader.ld| 1 +
fastlz/fastlz.h | 20 +++
fastlz/lz.cc| 69 ++---
fastlz
referenced later. So in essence we are postponing
abort until absolutely necessary.
Fixes #993
Signed-off-by: Waldemar Kozaczuk
---
arch/aarch64/arch-elf.cc | 11 ---
arch/x64/arch-elf.cc | 11 ---
core/elf.cc | 19 ---
include/osv/elf.hh |
Signed-off-by: Waldemar Kozaczuk
---
libc/include/sys/random.h | 9 +
libc/random.c | 7 +++
2 files changed, 16 insertions(+)
diff --git a/libc/include/sys/random.h b/libc/include/sys/random.h
index 143ccb26..ef7eaa27 100644
--- a/libc/include/sys/random.h
+++ b/libc
Fixes #989
Signed-off-by: Waldemar Kozaczuk
---
Makefile | 1 +
include/api/sys/random.h | 1 +
include/api/x64/bits/syscall.h | 1 +
libc/include/sys/random.h | 13 ++
libc/random.c | 44 ++
linux.cc
This patch renames python27 to python2x and improves it
by discovering Python home directory by reading sys.* variables.
Signed-off-by: Waldemar Kozaczuk
---
python27/README | 8
{python27 => python2x}/GET | 17 ++---
{python27 => py
This patch adds libc __wcscpy_chk needed by Python 3. Please see
http://refspecs.linux-foundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/libc---wcscpy-chk-1.html
for details.
Signed-off-by: Waldemar Kozaczuk
---
Makefile | 1 +
libc/string/__wcscpy_chk.c | 15
e9
0x00396c0e
0x00395a66
0x00427379
, std::allocator > const&,
0x10402fbf
0x616e2d64616f6c78
Test tst-namespace.so FAILED
There are actually more tests failing in similar way
as tst-libc-locking which seems to indicate
lack of necessary lock in some pl
performance is achieved when using
fairl new version of QEMU/KVM (>= 2.11).
Fixes cloudius-systems/osv#955
Signed-off-by: Waldemar Kozaczuk <jwkozac...@gmail.com>
---
mysql/GET | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mysql/GET b/mysql/GET
index 2e3d673..788f8
Updated Makefile and dopatch to properly patch new version 8.11.2
and older one.
Signed-off-by: Waldemar Kozaczuk <jwkozac...@gmail.com>
---
node/Makefile | 3 ++-
node/dopatch | 21 +
2 files changed, 23 insertions(+), 1 deletion(-)
diff --git a/node/Makefile
Upgrade mysql, nginx and node
Waldemar Kozaczuk (3):
Upgraded nginx to 1.12.2
Upgraded mysql to 5.6.40
Upgraded node to 8.11.2
mysql/GET | 4 ++--
nginx/Makefile | 2 +-
nginx/module.py | 1 +
node/Makefile | 3 ++-
node/dopatch| 21 +
5 files changed
Signed-off-by: Waldemar Kozaczuk <jwkozac...@gmail.com>
---
mysql/GET | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mysql/GET b/mysql/GET
index edc033e..2e3d673 100755
--- a/mysql/GET
+++ b/mysql/GET
@@ -1,6 +1,6 @@
#!/bin/sh
-VERSION=5.6.21
+VERSION=5.6.40
B
Signed-off-by: Waldemar Kozaczuk <jwkozac...@gmail.com>
---
nginx/Makefile | 2 +-
nginx/module.py | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/nginx/Makefile b/nginx/Makefile
index 3ef2359..4fae78f 100644
--- a/nginx/Makefile
+++ b/nginx/Makefile
@@ -1,4 +1,4 @@
-V
Golang 1.10.x started using epoll_pwait instead of regular
epoll_wait and the golang-httpserver app does not work anymore.
This patch adds basic implementation of epoll_pwait that returns
error if non-null sigmask was passed otherwise delegates to
epoll_wait.
Signed-off-by: Waldemar Kozaczuk
original patch provided by @Hawxchen.
Fixes #808
Signed-off-by: Waldemar Kozaczuk <jwkozac...@gmail.com>
---
arch/x64/arch-switch.hh | 108
arch/x64/arch-tls.hh| 19 +
arch/x64/entry.S| 95 +
original patch provided by @Hawxchen.
Fixes #808
Signed-off-by: Waldemar Kozaczuk <jwkozac...@gmail.com>
---
arch/x64/arch-switch.hh | 108
arch/x64/arch-tls.hh| 19 +
arch/x64/entry.S| 100 +++
original patch provided by @Hawxchen.
Fixes #808
Signed-off-by: Waldemar Kozaczuk <jwkozac...@gmail.com>
---
arch/x64/arch-switch.hh | 108
arch/x64/arch-tls.hh| 19 +
arch/x64/entry.S| 99 +++
(around 10-15K request per second with 4 cpus setup).
Fixes #859
Signed-off-by: Waldemar Kozaczuk <jwkozac...@gmail.com>
---
bsd/sys/netinet/tcp_input.cc| 1 +
bsd/sys/netinet/tcp_syncache.cc | 3 ---
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/bsd/sys/netinet/tcp_input.cc
This patch adds new Golang app to demonstrate simple httpserver in Golang.
It also modifies existing golang-example app to be bootstrapped
by tiny golang front-end.
Signed-off-by: Waldemar Kozaczuk <jwkozac...@gmail.com>
---
golang-example/.gitignore | 3 +++
golang-example/Ma
.
Fixes #850
Signed-off-by: Waldemar Kozaczuk <jwkozac...@gmail.com>
---
core/app.cc | 26 +++---
include/osv/app.hh| 17 ++---
modules/golang/.gitignore | 3 +++
modules/golang/Makefile | 34 ++
modules/
it
+
+module: init $(TARGET).so
+ echo '/go.so: $${MODULE_DIR}/go.so' > usr.manifest
+
+clean:
+ rm -f $(TARGET)*.so usr.manifest
+ $(call very-quiet, $(RM) -rf obj)
diff --git a/modules/golang/go.cc b/modules/golang/go.cc
new file mode 100644
index 000..0bb1986
--- /d
This patch enhances ramfs implementation to handle time and
mode node attributes. Additionally it adds extra checks
in relevant places to enforce maximum name length.
Signed-off-by: Waldemar Kozaczuk <jwkozac...@gmail.com>
---
fs/ramfs/ramfs.h| 4 +++
fs/ramfs/ramfs_vnops.c
This patch enhances ramfs implementation to handle time and
mode node attributes. Additionally it adds extra checks
in relevant places to enforce maximum name length.
Signed-off-by: Waldemar Kozaczuk <jwkozac...@gmail.com>
---
fs/ramfs/ramfs.h| 4 ++
fs/ramfs/ramfs_vnops.cc
ys
in memory forever as there is no LRU logic implemented that could limit
memory used.
Signed-off-by: Waldemar Kozaczuk <jwkozac...@gmail.com>
---
Makefile | 1 +
fs/rofs/rofs.hh| 29 +-
fs/rofs/rofs_cache.cc | 274 +++
401 - 500 of 560 matches
Mail list logo