- Oct 07, 2013
-
-
Pekka Enberg authored
Signed-off-by:
Pekka Enberg <penberg@cloudius-systems.com>
-
Pekka Enberg authored
The tst-mmap.so test case noticed the following breakage in msync(): Running mmap tests Assertion failed: msync(buf, 4096*9, MS_ASYNC) == 0 (../../tests/tst-mmap.cc: main: 207) Aborted The problem is that msync() uses the contains function which checks if [start, end) is in a vma range but we really are interested in whether the vma intersects with [start, end). Signed-off-by:
Pekka Enberg <penberg@cloudius-systems.com>
-
Benoît Canet authored
This Close issue #8 ""Make Java InetAddress.getHostName() works". Signed-off-by:
Benoit Canet <benoit@irqsave.net> Signed-off-by:
Avi Kivity <avi@cloudius-systems.com>
-
Benoît Canet authored
Signed-off-by:
Benoit Canet <benoit@irqsave.net> Signed-off-by:
Avi Kivity <avi@cloudius-systems.com>
-
Benoît Canet authored
Also convert it's header and change it's caller includes. This patch is done so the libc resolver will be able to retrieve the dns from OSv dns API. Signed-off-by:
Benoit Canet <benoit@irqsave.net> Signed-off-by:
Avi Kivity <avi@cloudius-systems.com>
-
Pekka Enberg authored
Make mincore() error-path compatible with Linux by requiring 'addr' to be page aligned. Signed-off-by:
Pekka Enberg <penberg@cloudius-systems.com>
-
Pekka Enberg authored
Linux requires mincore() addresses to be page aligned. Signed-off-by:
Pekka Enberg <penberg@cloudius-systems.com>
-
Pekka Enberg authored
Fix vma::sync() to return zero for msync'ing anonymous vmas like Linux does. Signed-off-by:
Pekka Enberg <penberg@cloudius-systems.com>
-
Pekka Enberg authored
Fix tst-mmap test on Linux by passing MAP_PRIVATE as a mmap flag. Signed-off-by:
Pekka Enberg <penberg@cloudius-systems.com>
-
Pekka Enberg authored
The mmap() function returns MAP_FAILED on error. Test for that. Signed-off-by:
Pekka Enberg <penberg@cloudius-systems.com>
-
Pekka Enberg authored
Use C++ APIs to remove dependency to OSv internals so that we can run the same test on Linux. Make the concurrency tests depend on OSv because C++ doesn't have a API for binding threads to specific CPUs and we don't want to clutter the test with pthread'isms. Signed-off-by:
Pekka Enberg <penberg@cloudius-systems.com>
-
Tomasz Grabiec authored
This is in order to make it send Ctrl+C to the guest instead of killing the VM. Leads to less surprises when working with interactive shell inside OSv. To suppress the new behavior run with --g or --with-graphic. Relates to issue #49. Signed-off-by:
Tomasz Grabiec <tgrabiec@cloudius-systems.com>
-
Tomasz Grabiec authored
In order to have consistent indentation. Signed-off-by:
Tomasz Grabiec <tgrabiec@cloudius-systems.com>
-
Tomasz Grabiec authored
The new command prints arguments set in the image. Signed-off-by:
Tomasz Grabiec <tgrabiec@cloudius-systems.com>
-
Tomasz Grabiec authored
This is needed to start the JVM with debugger interface. Signed-off-by:
Tomasz Grabiec <tgrabiec@cloudius-systems.com>
-
- Oct 06, 2013
-
-
Nadav Har'El authored
cosmetic: add missing linefeed Signed-off-by:
Nadav Har'El <nyh@cloudius-systems.com>
-
Nadav Har'El authored
Signed-off-by:
Nadav Har'El <nyh@cloudius-systems.com>
-
Nadav Har'El authored
We use the RunJava Java class to run Java applications (both java.so and the "java" CLI command use it). We used to have RunJava.class uncompressed, in the /java directory, but this caused two problems: 1. Or noticed that having a directory (/java) on the classpath causes thousands of stat() calls when Java tries to look for all classes in this directory. With a jar, its contents are read only once. 2. The "java" CLI command (java.groovy) didn't work because apparently Groovy cannot deal with classes being in the top-level package. So this patch moves RunJava into the io.osv package, and put it into a jar /java/runjava.jar. Note that java.groovy is changed in a separate patch (because it's in a different sub-repository....) Signed-off-by:
Nadav Har'El <nyh@cloudius-systems.com>
-
Benoît Canet authored
Debug build was broken by it since boost::asio was used. Signed-off-by:
Benoit Canet <benoit@irqsave.net> Signed-off-by:
Avi Kivity <avi@cloudius-systems.com>
-
- Oct 05, 2013
-
-
Benoît Canet authored
Signed-off-by:
Benoit Canet <benoit@irqsave.net> Signed-off-by:
Avi Kivity <avi@cloudius-systems.com>
-
Benoît Canet authored
boost's asio.hpp module init() function was calling pthread_key_create which tried to manipulate some libc/pthread.cc unitialized objects. pthread_key_create then returned -ENOMEM so an exception was thrown by boost causing the loader's premain() function to fail and the boot to loop. This patch lower the priority of the initialization of the libc/pthread.cc objects so they are ready when premain is calling the boost module init() function. Signed-off-by:
Benoit Canet <benoit@irqsave.net> Signed-off-by:
Avi Kivity <avi@cloudius-systems.com>
-
- Oct 04, 2013
-
-
Antti Kantee authored
-
- Oct 03, 2013
-
-
Benoît Canet authored
This patch uses boost::asio::ip::address* to cleanup the core dhcp code. Signed-off-by:
Benoit Canet <benoit@irqsave.net> Signed-off-by:
Avi Kivity <avi@cloudius-systems.com>
-
Benoît Canet authored
Signed-off-by:
Benoit Canet <benoit@irqsave.net> Signed-off-by:
Avi Kivity <avi@cloudius-systems.com>
-
Benoît Canet authored
Signed-off-by:
Benoit Canet <benoit@irqsave.net> Signed-off-by:
Avi Kivity <avi@cloudius-systems.com>
-
Benoît Canet authored
Signed-off-by:
Benoit Canet <benoit@irqsave.net> Signed-off-by:
Avi Kivity <avi@cloudius-systems.com>
-
Avi Kivity authored
bsd's ifconf conflicts with osv's; rename it. We use the bsd version in <osv/ioctl.h>, since we currently don't support the Linux-ABI variants of these ioctls. Signed-off-by:
Avi Kivity <avi@cloudius-systems.com> Tested-By:
Benoit Canet <benoit@irqsave.net>
-
Avi Kivity authored
The bsd ifaddr struct conflicts with the osv ifaddr struct, which is a public interface. Rename the bsd struct to avoid conflict. Signed-off-by:
Avi Kivity <avi@cloudius-systems.com> Tested-By:
Benoit Canet <benoit@irqsave.net>
-
Avi Kivity authored
Workaround a bytorder function conflict, and reconcile a declaration. Signed-off-by:
Avi Kivity <avi@cloudius-systems.com> Tested-By:
Benoit Canet <benoit@irqsave.net>
-
Avi Kivity authored
Some structures are duplicated; move the duplicates to a common header <netinet/__in.h>. Signed-off-by:
Avi Kivity <avi@cloudius-systems.com> Tested-By:
Benoit Canet <benoit@irqsave.net>
-
Avi Kivity authored
Some structures are duplicated; deduplicate them. A few are source-compatible but not binary-compatible; use the ones from <bits/socket.h>. Others are both source- and binary- compatible; put them in a new header <sys/__socket.h> which is included from both. Work around a problem with the byteorder functions/macros. Signed-off-by:
Avi Kivity <avi@cloudius-systems.com> Tested-By:
Benoit Canet <benoit@irqsave.net>
-
Nadav Har'El authored
Used somewhere within libcurses, so provide an implementation. Signed-off-by:
Nadav Har'El <nyh@cloudius-systems.com>
-
Nadav Har'El authored
The README contained out-of-date examples of how to run things in OSv. Fixed those. BTW, Much of the contents of the README don't really belong there. We already have separate documents for debugging in OSv, and how to compile C/C++ code for OSv, and these should probably be in documentation/ in the git repository, instead of in a Wiki or Google docs. Signed-off-by:
Nadav Har'El <nyh@cloudius-systems.com>
-
Nadav Har'El authored
This patch adds a few simple terminal-related libc functions that ncurses requires (needed to run curses-based applications on OSv). Signed-off-by:
Nadav Har'El <nyh@cloudius-systems.com>
-
Yang Bai authored
Allow specify test names to testrunner such as testrunner.so tst-foo1.so tst-foo2.so to run tst-foo1 and tst-foo2 only in the order they are specified. This does not change the default behavior that cmdline=testrunner.so will run all tests under /tests dir. This change can help developer to run the only test cases they need quickly to verify new feature or find possible regressions. Signed-off-by:
Yang Bai <hamo.by@gmail.com> Signed-off-by:
Pekka Enberg <penberg@cloudius-systems.com>
-
Pekka Enberg authored
Exit tracepoints are useful to record errors, and also for timing the mmap operation. Signed-off-by Pekka Enberg <penberg@cloudius-systems.com>
-
- Oct 02, 2013
-
-
Pekka Enberg authored
The page_size constant is not used in the code so lets just remove it. Signed-off-by:
Pekka Enberg <penberg@cloudius-systems.com>
-
Tomasz Grabiec authored
Added missing bench.jar file back to the image. Fixed an obsolete description in the README file. Signed-off-by:
Tomasz Grabiec <tgrabiec@cloudius-systems.com>
-
- Oct 01, 2013
-
-
Yang Bai authored
Fork project on github will cause submodule trying to fetch submodule under fork user not cloudius-system. Signed-off-by:
Yang Bai <hamo.by@gmail.com> Signed-off-by:
Avi Kivity <avi@cloudius-systems.com>
-
Pekka Enberg authored
In preparation for enabling demand paging, enable sleeping in fault context by using a per-thread exception stack for normal faults and per-CPU exception stack for nested faults. Avi Kivity explains: Before [demand paging] can even hope to work, we need to enable sleeping in fault context. Right now each cpu has its own exception stack, which leads immediately to stack corruption: thread 1 faults enters exception stack tries to take mutex scheduler switches to thread 2 thread 2 faults enters same exception stack So we need to switch stacks. This can be done in the same way as for interrupt stacks (see thread::switch_to()). Signed-off-by:
Pekka Enberg <penberg@cloudius-systems.com> Signed-off-by:
Avi Kivity <avi@cloudius-systems.com>
-