From: Iori YONEJI
Committer: Iori YONEJI
Branch: master
Add `yaml-cpp' in package list for Arch Linux in README
---
diff --git a/README.md b/README.md
--- a/README.md
+++ b/README.md
@@ -50,7 +50,7 @@ apt-get install build-essential
From: Nadav Har'El
Committer: Nadav Har'El
Branch: master
tests: add missing include in tst-rcu-hashtable.cc
tests/tst-rcu-hashtable.cc uses std::default_random_engine but forgot
to #include . Somehow it still worked in older versions of
Gcc, but no
From: Nadav Har'El
Committer: Nadav Har'El
Branch: master
sched: ignore thread in wrong wakeup queue
With this patch, if handle_incoming_wakeups() discovers in a CPU's wakeup
queue a thread which does not actually belong to it, it simply ignores it.
This
From: Nadav Har'El
Committer: Nadav Har'El
Branch: master
sched: add _pinned flag for threads
Threads currently have a _migration_lock_counter which, when positive,
prevent the thread from being migrated to a different CPU. Using
sched::thread::pin() can
From: Nadav Har'El
Committer: Nadav Har'El
Branch: master
scripts/setup.py: add support for Fedora 24
Add support for setup.py installing the prerequisite packages on Fedora 24.
It appears that the same list of Fedora 23 works also on Fedora 24.
From: Nadav Har'El
Committer: Nadav Har'El
Branch: master
net: Allow SIOCGIFBRDADDR even without IFF_BROADCAST
On Linux, one may query even a network interface that doesn't have the
"BROADCAST" flag with SIOCGIFBRDADDR - for example, the loopback
From: Nadav Har'El
Committer: Nadav Har'El
Branch: master
Fix if_nameindex()
The if_nameindex() implementation we got from Musl is based on various
ioctls explained in netdevice(7). As that manual page explains, these
ioctls "can be used on any socket's
From: Nadav Har'El
Committer: Nadav Har'El
Branch: master
Delete libc/network/getifaddrs.c
The file libc/network/getifaddrs.c was not used - the Makefile was using
the one from musl/. And it's not working anyway (issue #783).
Signed-off-by: Nadav Har'El
From: Waldemar Kozaczuk
Committer: Avi Kivity
Branch: master
Provide alternative java.so to start jvm without classloader and log
manager isolation in order to run JRE compact profiles.
In order to run a JVM app using compact profile 1, 2 or 3 JRE
From: Nadav Har'El
Committer: Nadav Har'El
Branch: master
pthread: change type of pthread_t
Our pthread_t type was a pointer, while in Linux it was an unsigned long.
This was ok for binary compatibility, because both have the same size,
but the
From: Nadav Har'El
Committer: Avi Kivity
Branch: master
sched: fix key type of thread_map
Justin Cinkelj noticed that there is no reason for
the key of "thread_map" to be unsigned long, while our actual thread::id()
is unsigned
From: Nadav Har'El
Committer: Nadav Har'El
Branch: master
- remove _KERNEL restriction
In , all of the osv::application:: API was hidden with a
'#ifdef _KERNEL', probably to avoid header file conflicts in applications
which include the normal Linux
From: Nadav Har'El
Committer: Nadav Har'El
Branch: master
math: add nearbyint() and friends
nearbyint() is just like rint(), with slightly different handling of
"inexact" exceptions. Just use the Musl implementation (we need to
ignore warnings on
From: Nadav Har'El
Committer: Nadav Har'El
Branch: master
sched::with_thread_by_id()
The existing function sched::thread::find_by_id() efficiently finds a
sched::thread object given a numerical id. However, if this call races
with the thread's exit, the
From: Justin Cinkelj
Committer: Nadav Har'El
Branch: master
httpserver: return thread ID of the started app
The caller will use returned thread ID to check if that app finished.
The check-if-finished will be implemented in a follow-up patch.
From: Justin Cinkelj
Committer: Nadav Har'El
Branch: master
run.py: add option for additional cloud-init disk
The additional disk has to be second device on (virtio) bus,
as only /dev/vblk1 is tested for magic header.
See also
From: Justin Cinkelj
Committer: Nadav Har'El
Branch: master
gdb: allow to pass hostname:port to connect to
Patch enables debugging VMs on remote hosts.
When connecting to localhost on non-default port, a ':PORT' string
can be used. So almost no
From: Justin Cinkelj
Committer: Nadav Har'El
Branch: master
libc: add pthread_gettid_np to get thread ID of arbitrary pthread_t
The added pthread_gettid_np is not portable, and differs even from
pthread_getthreadid_np (that one works for current
From: Quentin Barnes' via OSv Development
Committer: Nadav Har'El
Branch: master
Add RHEL 7.{1,2,3} support.
Signed-off-by: Quentin Barnes
Message-Id: <20170204015406.ef9a0c11e...@sanddesert.champ.corp.yahoo.com>
---
diff
From: Nadav Har'El
Committer: Nadav Har'El
Branch: master
makefile: avoid known warning for exp2l.c
In musl/src/math/exp2l.c we have a known warning:
musl/src/math/exp2l.c:206:22: warning: unused variable ‘v’
[-Wunused-variable]
We already made sure
From: Nadav Har'El
Committer: Nadav Har'El
Branch: master
get rid of osv::run_background()
Remove the osv::run_background() function - nothing calls it now, and it
is nothing more than an alias to osv::application::run(). Before commit
From: Nadav Har'El
Committer: Nadav Har'El
Branch: master
makefile: avoid known warning for lgamma*
In musl/src/math/lgamma*.c we have a known warning wrongly complaining
about a "maybe uninitialized" variable.
We already made sure this warning doesn't
From: Quentin Barnes' via OSv Development
Committer: Nadav Har'El
Branch: master
The mkostemp() function is missing in Makefile.
Fixes #604.
Signed-off-by: Quentin Barnes
Message-Id:
From: Justin Cinkelj
Committer: Nadav Har'El
Branch: master
elf.cc: expect .note.osv-mlock section with no strings
Code to remove \0 at end of string tried to copy strlen()-1 data bytes.
It didn't expect the .note.osv-mlock section to contains only
From: Justin Cinkelj
Committer: Nadav Har'El
Branch: master
libc: implement sched_getcpu
Signed-off-by: Justin Cinkelj
Message-Id: <20170123104417.14205-1-justin.cink...@xlab.si>
---
diff --git a/libc/libc.cc b/libc/libc.cc
From: Justin Cinkelj
Committer: Nadav Har'El
Branch: master
libc: implement gethostid and sethostid
MAC address of first "real" ethernet interface is used as unique
host identifier.
Fixes #841.
Signed-off-by: Justin Cinkelj
From: Waldemar Kozaczuk
Committer: Nadav Har'El
Branch: master
Added json -> application/json mapping in mime_types in httpserver module
Added json -> application/json mapping in mime_types.cc in httpserver
module to make it return
correct
From: Nadav Har'El
Committer: Nadav Har'El
Branch: master
update osv-gui submodule
Signed-off-by: Nadav Har'El
---
diff --git a/modules/httpserver/osv-gui b/modules/httpserver/osv-gui
--- a/modules/httpserver/osv-gui
+++
From: Justin Cinkelj
Committer: Nadav Har'El
Branch: master
httpserver: unify string to bool parameter conversion
boolean parameter type is used in file, network and trace.json.
Corresponding .cc files have diffrent string to bool conversions.
And
From: Justin Cinkelj
Committer: Nadav Har'El
Branch: master
httpserver: optionaly start app in new ELF namespace
Running multiple instances of same program at the same time (or even
same program multiple times) can fail as ELF object and requied
From: Waldemar Kozaczuk
Committer: Nadav Har'El
Branch: master
Changed java.policy file to give all permissions to jolokia agent
Some java applications like apache derby or elasticsearch 2.4.* enable java
security manager. Java security
manager uses
From: Justin Cinkelj
Committer: Nadav Har'El
Branch: master
command line: report if runscript file is missing
Previously, if runscript file was missing, std::instream constructor
silently failed to open the file. The filebuf descriptor likely
From: Nadav Har'El
Committer: GitHub
Branch: master
Merge pull request #842 from sa-kib/aarch64-xen-v2
[RFC][V2] aarch64: basic Xen support
Reviewed-by: Nadav Har'El
---
diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
From: Sergiy Kibrik
Committer: Sergiy Kibrik
Branch: master
osv: use __ASSEMBLY__ instead of ASSEMBLY
__ASSEMBLY__ definition is used extensively throughout bsd/ tree so
make ASFLAGS compatible with its usage.
Signed-off-by:
From: Sergiy Kibrik
Committer: Sergiy Kibrik
Branch: master
osv: add Xen console basic driver
Primitive driver that uses HYPERVISOR_console_io hypercall to provide early
console.
Signed-off-by: Sergiy Kibrik
From: Sergiy Kibrik
Committer: Sergiy Kibrik
Branch: master
bsd: xen: console_io hypercall accepts constant string
Modify HYPERVISOR_console_write() interface to accept const *char as
argument,
so it is compliant with
From: Sergiy Kibrik
Committer: Sergiy Kibrik
Branch: master
aarch64: detect Xen hypervisor
Xen crafts and provides a DTB with special node by which we can know
which hypervisor we're using and load corresponding drivers.
is_xen()
From: Sergiy Kibrik
Committer: Sergiy Kibrik
Branch: master
aarch64: preboot: add magic Linux header
Add Linux-resembling header at the begining of image,
so that it can be recognized and loaded by Xen ARM64 image loader,
and
From: Waldemar Kozaczuk
Committer: Nadav Har'El
Branch: master
Changed json formatter to escape strings according to the spec
Changed formatter::to_json methods that format string to JSON to properly
escape according to http://www.json.org/.
Fixes
From: Nadav Har'El
Committer: Nadav Har'El
Branch: master
sched::thread: add unpin() method
This patch adds an unpin() method to undo a pin() operation on a thread
(operating on either the current thread or on a different thread is
supported). After an
From: Justin Cinkelj
Committer: Nadav Har'El
Branch: master
cloud-init: allow multiple parameters in NFS mount options
NFS mount options can be in format "uid=NUM,gid=NUM".
In this case, mount-nfs.so requires replacement of "," with "&",
and whole
From: Sergiy Kibrik' via OSv Development
Committer: Nadav Har'El
Branch: master
scripts/setup.py: separate openjdk versions for Ubuntu
Move openjdk-7-jdk package from distro packages list to per-distro version
packages, as newer distros already
From: Sergiy Kibrik' via OSv Development
Committer: Nadav Har'El
Branch: master
scripts/setup.py: add support for Ubuntu 16.04
Signed-off-by: Sergiy Kibrik
Message-Id:
From: Nadav Har'El
Committer: Nadav Har'El
Branch: master
mount: fix deadlock
This patch fixes a deadlock caused by lock order inversion. This deadlock,
described in issue #817, sometimes hangs the entire VFS when a mount is
attempted.
Most of the VFS
From: Nadav Har'El
Committer: Nadav Har'El
Branch: master
mount: use OSv mutex instead of std::mutex
There's no reason to use std::mutex where we can use Osv's "mutex".
std::mutex basically wraps OSv's mutex by a Posix mutex and then C++'s
mutex
From: Nadav Har'El
Committer: Nadav Har'El
Branch: master
scripts/test.py: forgive old files in build directory
This patch fixes a failure report in our Jenkins build machine, which
includes a build directory that hasn't been "make clean"ed in 6 months:
From: Waldemar Kozaczuk
Committer: Nadav Har'El
Branch: master
Fixes failing tracing_smoke_test.
Changed Guest and SupervisedProcess classes in testing.py to allow for
conditional detection of 'Failed to load object' error which needs to be
handled
From: Nadav Har'El
Committer: Nadav Har'El
Branch: master
Update apps/
Adds golang-example (doesn't work yet, but it might be useful for
debugging).
Signed-off-by: Nadav Har'El
---
diff --git a/apps b/apps
--- a/apps
+++ b/apps
@@
From: Nadav Har'El
Committer: Nadav Har'El
Branch: master
tests/tst-tcp-siocoutq: don't forget to close listening socket
If we keep the listening socket open at the end of the test, we can't
run in the same VM another test which needs the same port
From: Sergiy Kibrik' via OSv Development
Committer: Nadav Har'El
Branch: master
osv: xen: make shared structures arch-independent
xen_shared_info & xen_vcpu_info are different on x64/aarch64, so couple of
fixes
needed so that shared data is
From: Sergiy Kibrik' via OSv Development
Committer: Nadav Har'El
Branch: master
bsd: remove unused xenfunc.h header
It contains definitions of non-existing (in OSv tree) routines, which had
been
used in original BSD code and have absolutely no
From: Sergiy Kibrik' via OSv Development
Committer: Nadav Har'El
Branch: master
osv: xen_intr: use evtchn.h
Replace local declaration of unmask_evtchn() and evtchn_from_irq()
with inclusion of evtchn.h where they're declared.
Additionally declare
From: Benoit Canet
Committer: Nadav Har'El
Branch: master
signal: Make room for 64th signal
The last signal of the list didn't have enough room for
him because signal numbers start at 1.
Make him some room so sigaction won't fail for him
when
From: Nadav Har'El
Committer: Nadav Har'El
Branch: master
syscall: change stack alignment trick
The stack alignment trick I used in syscall_entry() worked, but the
CFI code was actually wrong and only worked in for certain alignments
but not others.
To
From: Nadav Har'El
Committer: Nadav Har'El
Branch: master
syscall: fix CFI information for debugging with GDB
GDB uses DWARF CFI meta-instructions to know how to backtrace through
function call frames, and which registers get saved where.
This patch
From: Nadav Har'El
Committer: Nadav Har'El
Branch: master
syscall: fix (again) gdb support
The CFI code in syscall_entry still was not perfect (sorry...) - when
the application uses -fomit-frame-pointer, and %rbp was not set by the
caller, we didn't tell
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 d9cfadc10e80f0ddf87571c026a6f7be669f03fe
From: Waldemar Kozaczuk
Committer: Nadav Har'El
Branch: master
Added OpenJDK Zulu compact profile base images and example apps for each
profile
The three apps openjdk8-zulu-compact* provide base images for Java 8
compact profiles. Each of the 3
From: Nadav Har'El
Committer: Nadav Har'El
Branch: master
run.py: do not add port redirection for SSH
OSv does not include by default (or at all) an SSH server for a long time,
so the forwarding of the guest's port 22 to port on the guest is
pretty
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 211e58ba3e0f729b445f464cc9d09f42086d4124
From: Benoit Canet
Committer: Nadav Har'El
Branch: master
x64: 'syscall' instruction support
Enable "fast system calls" via the 'syscall' instruction on OSv. The
instruction is used by Go programs on Linux/x86-64 for system calls.
Fixes #590
From: Nadav Har'El
Committer: Nadav Har'El
Branch: master
osv::run() - also restore thread's name
application::start_and_join(), and therefore osv::run(), now run the
new application on the same thread. When the application ends, the
thread resumes and we
From: Nadav Har'El
Committer: Pekka Enberg
Branch: master
Partial fix for syscall instruction
We need to set up the LSTAR MSR and friends on each processor - it is not
enough to do it on processor 0. Otherwise, a system call instruction will
always
From: Benoit Canet
Committer: Nadav Har'El
Branch: master
syscall: implement rt_sigprocmask
This is the next syscall required by the go hello world
Signed-off-by: BenoÃt Canet
Message-Id:
From: Nadav Har'El
Committer: Nadav Har'El
Branch: master
syscall: save also %rbp and align stack
Not saving and restoring the rbp register causes tst-syscall to crash in
the debug build. With this patch, the debug build of this test no longer
crashes.
From: Benoit Canet
Committer: Nadav Har'El
Branch: master
syscall: implement rt_sigaction
This is one of the first syscall used by go binaries.
The kernel syscall have some custom layout that must
be convert forth and back to and from libc.
From: Nadav Har'El
Committer: Nadav Har'El
Branch: master
syscall: set syscall_entry() symbol size to non-zero
With "readelf --dyn-syms" the syscall_entry symbol appears to have a zero
size. This causes our print_backtrace() code to not display the name
From: Nadav Har'El
Committer: Nadav Har'El
Branch: master
pthread: implement pthread_key_delete()
Implement pthread_key_delete().
Currently, it will not mark the key available for re-use.
The danger in allowing re-use is that if we leave data with that
From: Nadav Har'El
Committer: Nadav Har'El
Branch: master
osv::run(): run pthread TSD destructors before resetting app runtime
The change to osv::run() (and friends) to reuse the calling thread rather
than start a new one to run a new shared-object
From: Benoît Canet
Committer: Nadav Har'El
Branch: master
golang: Properly build the go hello world.
My toolchain path can be different than your
toolchain path.
Also take care of making the module a C module
and exporting proper GoMain() as
From: Justin Cinkelj
Committer: Nadav Har'El
Branch: master
dhcp: set src and dest IP in DHCP release packet
DHCP release packet should have valid IP header. There is no need
to use INADDR_ANY/INADDR_BROADCAST as src/dest address.
Signed-off-by:
From: Justin Cinkelj
Committer: Nadav Har'El
Branch: master
cloud-init: trigger dynamic DNS update on hostname change
When cloud-init changes VM hostname, VM DNS name should be updated too.
We try to do this by releasing DHCP lease and requesting new
From: Justin Cinkelj
Committer: Nadav Har'El
Branch: master
Return list of all threads in given application
Signed-off-by: Justin Cinkelj
Message-Id: <1467703325-17598-1-git-send-email-justin.cink...@xlab.si>
---
diff --git
From: Justin Cinkelj
Committer: Nadav Har'El
Branch: master
dhcp: remove IP from interface when DHCP release is send
Currently, when DHCP release was send, IP was not removed from VM.
So VM was still responding to ping etc.
Fix this by removing IP
From: Justin Cinkelj
Committer: Nadav Har'El
Branch: master
dhcp: remove DNS resolvers when DHCP release is send
Signed-off-by: Justin Cinkelj
Message-Id: <20161124202854.23662-3-justin.cink...@xlab.si>
---
diff --git
From: Justin Cinkelj
Committer: Nadav Har'El
Branch: master
command line: allow runscript with multiple lines
Signed-off-by: Justin Cinkelj
Message-Id: <1479825169-15499-5-git-send-email-justin.cink...@xlab.si>
---
diff
From: Justin Cinkelj
Committer: Nadav Har'El
Branch: master
tests: add test for commandline runscript option
Also, double 'return false' is removed from one function.
Signed-off-by: Justin Cinkelj
Message-Id:
From: Rick Payne
Committer: Nadav Har'El
Branch: master
shmget: Handle calls for non-existant object without IPC_CREAT
Signed-off-by: Rick Payne
Message-Id:
---
diff --git
From: Rick Payne
Committer: Nadav Har'El
Branch: master
Ensure that the argument to osv_system() is saved in allocated memory
before we spawn the pthread
Signed-off-by: Rick Payne
Message-Id:
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 f8731d0253a7537a15c12321151ef8c6168ad902
From: Nadav Har'El
Committer: Nadav Har'El
Branch: master
dhcp: ignore empty hostname
If the DHCP server does not send back a hostname, the existing code
called sethostname() with an empty host name. Do not do that.
Signed-off-by: Nadav Har'El
From: Justin Cinkelj
Committer: Nadav Har'El
Branch: master
cloud-init: mount specified mountpoints
cloud-init allows to specify mountpoints via its configuration.
This commit implements actual mount action. Only NFS mountpoints are
assumed, as so
From: Waldemar Kozaczuk
Committer: Nadav Har'El
Branch: master
Support building and running Java apps in non-isolated mode
Added new java-non-isolated module and refactored
scripts/module.py to provide isolated_jvm and non_isolated_jvm as a way to
From: Waldemar Kozaczuk
Committer: Nadav Har'El
Branch: master
Added openjdk8-fedora-non-isolated and modified openjdk8-zulu-compact* to
support running apps in non-isolated mode
Added openjdk8-fedora-non-isolated and modified
From: Nadav Har'El
Committer: Nadav Har'El
Branch: master
Update apps/ to latest version
Signed-off-by: Nadav Har'El
---
diff --git a/apps b/apps
--- a/apps
+++ b/apps
@@ -1 +1 @@
-Subproject commit
From: Waldemar Kozaczuk
Committer: Nadav Har'El
Branch: master
Renamed openjdk9 app folder to a name without dot so that capstan image can
be built
Fixed wrong folder name in module.py
Signed-off-by: Waldemar Kozaczuk
From: Nadav Har'El
Committer: Nadav Har'El
Branch: master
Update apps/ to latest version
Signed-off-by: Nadav Har'El
---
diff --git a/apps b/apps
--- a/apps
+++ b/apps
@@ -1 +1 @@
-Subproject commit
From: Waldemar Kozaczuk
Committer: Nadav Har'El
Branch: master
Added new Java apps and modified exiting OpenJDK 8 base apps to include new
policy file and new location of runjava.jar
Added elasticsearch app.
Added apache derby app.
Added Java 9
From: Timmons C. Player
Committer: Nadav Har'El
Branch: master
uipc_socket.cc: prevent use after free bug in soisdisconnected
Simultaneously closing a socket from both the network and user
space sides can trigger a use after free bug in
From: Benoît Canet
Committer: Nadav Har'El
Branch: master
libc/getifaddrs: Also return ifaddrs with ether hw addresses
Before this patch, OSv's getifaddrs() returns for each network interface
a single entry, with the AF_INET address family
From: Benoît Canet
Committer: Nadav Har'El
Branch: master
libc/getifaddrs: Extract and use allocate_and_add_ifaddrs
The code will need to allocate twice as much
ifaddr_storage structure to be able to return mac
addresses in their own ifaddrs
From: rean' via OSv Development
Committer: Nadav Har'El
Branch: master
ttyname_r/ttyname: Add OSV-specific ttyname_r and ttyname implementation +
test
nodejs prep (pt.1)
Signed-off-by: rean
Message-Id:
From: Justin Cinkelj
Committer: Nadav Har'El
Branch: master
command line: allow --env in runscript
If multiple scripts try to set the same environment variable, then the
last one wins.
Fixes #819
Signed-off-by: Justin Cinkelj
From: Justin Cinkelj
Committer: Nadav Har'El
Branch: master
cloud-init: use Linux-compatible syntax for mounts
Previous syntax was for mounts was slightly different as for Linux.
In particular, the first entry was tailor made for libnfs
From: Nadav Har'El
Committer: Nadav Har'El
Branch: master
test for feenableexcept() and friends
A test for feeenableexcept() and SIGFPE.
Works on both Linux and OSv.
Signed-off-by: Nadav Har'El
Message-Id:
From: Nadav Har'El
Committer: Nadav Har'El
Branch: master
Implement feenableexcept() and friends
Implement the functions feenableexcept(), fedisableexcept() and
fegetexcept(), non-standard glibc functions which allows controlling
which FPU events generate
From: Nadav Har'El
Committer: Nadav Har'El
Branch: master
exceptions: support #XM
The #XM exception ("SIMD exception") may be generated when we request
(via feenableexcept()) to trap exceptional FPU cases such as floating
point division by zero. We should
From: Nadav Har'El
Committer: Nadav Har'El
Branch: master
signal: remove "nested signals" protection
This reverts commit 4af3677117a5bb2f4660d750fa4eddc6ef44e7f2 which
aborted on a "nested signal" (handling a signal handler while inside
a signal handler).
From: Nadav Har'El
Committer: Nadav Har'El
Branch: master
Add feenableexcept() and friends to fenv.h
Our include/api/fenv.h (copied from Musl) was missing those functions.
Signed-off-by: Nadav Har'El
Message-Id:
From: Justin Cinkelj
Committer: Nadav Har'El
Branch: master
loader: start do_main_thread unpinned
main_cont is pinned to CPU 0. The #761 asks for pthread_create
to use caller thread CPU pinning for new thread
(in case there is no explicit pinning
1 - 100 of 1504 matches
Mail list logo