- 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>
-
Pekka Enberg authored
Before: [penberg@localhost osv]$ time make clean CLEAN GRADLE CLEAN real 0m4.026s user 0m8.732s sys 0m0.212s After: [penberg@localhost osv]$ time make clean CLEAN GRADLE CLEAN real 0m1.658s user 0m0.962s sys 0m0.162s Signeg-off-by:
Pekka Enberg <penberg@cloudius-systems.com>
-
Avi Kivity authored
- faster builds Signed-off-by:
Avi Kivity <avi@cloudius-systems.com>
-
Avi Kivity authored
Removing loader.img causes a null build to rebuild it and usr.img. Signed-off-by:
Avi Kivity <avi@cloudius-systems.com>
-
Avi Kivity authored
Drop implicit makefile rules; this prevents make from looking for fortran source files, etc. Signed-off-by:
Avi Kivity <avi@cloudius-systems.com>
-
Pekka Enberg authored
Fixes the following warning on OSv startup: Warning: default mime table not found: /usr/lib/jvm/jre/lib/content-types.properties Signed-off-by:
Pekka Enberg <penberg@cloudius-systems.com>
-
Pekka Enberg authored
Make kvmclock::probe() easier to follow by simplifying the processor feature checks. Cc: Venkatesh Srinivas <venkateshs@google.com> Signed-off-by:
Pekka Enberg <penberg@cloudius-systems.com>
-
- Sep 30, 2013
-
-
Venkatesh Srinivas authored
Older versions of KVM and user VMMs expose kvmclock MSRs at different MSR offsets. Detect the old flag in kvmclock::probe() and use the old MSRs if they are the only ones available. Signed-off-by:
Venkatesh Srinivas <venkateshs@google.com> Signed-off-by:
Glauber Costa <glommer@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
Speeds up mgmt null build considerably
-
- Sep 29, 2013
-
-
Nadav Har'El authored
Add a comment to condvar explaining that it makes a guarantee that POSIX Threads' condition variables do not - that there are no spurious wakeups. The comment goes on to explain that at least in one place (semaphore.cc) we make use of this added guarantee, so if the condition variable implementation is ever rewritten, we'll need to keep this guarantee. Signed-off-by:
Nadav Har'El <nyh@cloudius-systems.com>
-
Nadav Har'El authored
Add "-version" option to RunJava, and therefore to java.so and the "java" CLI command. java -version now shows: java version "1.7.0_25" OpenJDK Runtime Environment (1.7.0_25-mockbuild_2013_07_27_13_36-b00) OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode) I can't explain why the version on the second line is different than what "java -version" on Fedora 18 shows for the same libjvm.so: java version "1.7.0_25" OpenJDK Runtime Environment (fedora-2.3.10.4.fc18-x86_64) OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode) Signed-off-by:
Nadav Har'El <nyh@cloudius-systems.com> Signed-off-by:
Avi Kivity <avi@cloudius-systems.com>
-
Dmitry Fleytman authored
1. MSI-X printous fixed 2. Duplicate EOLs removed Signed-off-by:
Dmitry Fleytman <dmitry@daynix.com>
-
Nadav Har'El authored
Change the name of the argument of wake_with from "Pred" to "Action". This argument is a function to run, *not* a predicate (it's not supposed to return a boolean value), so it doesn't make sense to call it Pred. The implementation of wake_with already used the name "Action" - this patch fixes the prototype too. Signed-off-by:
Nadav Har'El <nyh@cloudius-systems.com>
-
Dmitry Fleytman authored
1. Netperf patch removed from repository 2. Documentation updated Signed-off-by:
Dmitry Fleytman <dmitry@daynix.com> Signed-off-by:
Nadav Har'El <nyh@cloudius-systems.com>
-
Nadav Har'El authored
This patch adds support for Linux's alarm(2) system call. alarm() is needed in some ancient Unix software, like netperf :( This implementation is fully compatible with Linux's alarm(), but please note that what alarm() does when the alarm times out is a kill(SIGALRM) - so all the caveats mentioned in the previous patch regarding kill(), will also apply here. Alarm() is implemented by running one "alarm thread", started on the first alarm() call. This alarm-thread waits for the alarm to expire, or for instructions to change the alarm. When an alarm expires the alarm thread does a kill(0,SIGALRM). tst-kill.cc (from the previous patch) includes a test to see that alarm() really sends a SIGALRM signal on time, and also that we can cancel a pending alarm and not receive a signal. Signed-off-by:
Nadav Har'El <nyh@cloudius-systems.com>
-
Avi Kivity authored
Some fixups to --trace-backtrace, plus symbol resolution in the log output. Signed-off-by:
Avi Kivity <avi@cloudius-systems.com>
-
Nadav Har'El authored
This patch adds support for the Linux kill(2) function. The next patch will add alarm(2) support, which uses kill(2). To be honest, we sort-of implement kill(). This implementation is compatible with the API, but the semantics are somewhat different: While in Linux kill() causes the signal handler to run on one of the existing threads, in this implementation, the signal handler is run in a *new* thread. Implementing the exact Linux semantics in OSv would require tracking when OSv runs kernel code (i.e., code in the main executable, not a shared object) so we can delay running the signal handler until returning to the user code. Moreover, we'll need to be able to interrupt sleeping kernel code. This is complicated and adds overhead even if signals aren't used (and they aren't used in most modern code). I expect that this code will be "good enough" in many use cases. This code will *not* be good in enough in programs that expect one of the following: 1. A program that by using Posix Thread's "signal masks" tried to ensure that the signal is delivered to one specific thread, and not to an arbitrary thread. 2. A program that used kill() or alarm() not intending to run a signal handler, but rather intending to interrupt a sleeping system call like sleep() or read(). Our kill() does not interrupt sleeping OSv function calls, which will continue to sleep on the thread they run on. The support in this patch (and see next patch, for alarm()) is good enough for netperf's use of alarm(). P.S. kill() can be used only to send a signal to the current process, the only process we have in OSv (you can also use pid=0 and pid=-1 to achieve the same results). This patch also adds a test for kill() and alarm(). The alarm() test will fail until the next patch :-) Signed-off-by:
Nadav Har'El <nyh@cloudius-systems.com>
-
Avi Kivity authored
Signed-off-by:
Avi Kivity <avi@cloudius-systems.com>
-
Avi Kivity authored
Looking up symbols is expensive, store them in a cache. Speeds up dumping the trace log when a backtrace is taken. Signed-off-by:
Avi Kivity <avi@cloudius-systems.com>
-
Avi Kivity authored
Signed-off-by:
Avi Kivity <avi@cloudius-systems.com>
-
Avi Kivity authored
Also fix other review comments related to 1f161695. Signed-off-by:
Avi Kivity <avi@cloudius-systems.com>
-
- Sep 28, 2013
-
-
Raphael S.Carvalho authored
The correct range is elf_start:(elf_start + elf_size - 1) Signed-off-by:
Raphael S.Carvalho <raphael.scarv@gmail.com> Signed-off-by:
Pekka Enberg <penberg@cloudius-systems.com>
-