Skip to content
Snippets Groups Projects
  1. Oct 10, 2013
  2. Oct 09, 2013
  3. Oct 08, 2013
  4. Oct 07, 2013
    • Nadav Har'El's avatar
      Gdb: Add "osv runqueue" command · cd39acb1
      Nadav Har'El authored
      
      This patch adds a "osv runqueue" command to gdb, which shows the (sorted)
      run queue of each CPU. Note that the run queue does not include the thread
      currently running - just those which are ready to run.
      
      This command is useful for debugging the scheduler and load balancer, but
      is less generally useful than the "osv info threads" command, which lists
      all threads, specially marking those which are runnable as well as those
      which are running.
      
      Signed-off-by: default avatarNadav Har'El <nyh@cloudius-systems.com>
      cd39acb1
    • Nadav Har'El's avatar
      Start using doxygen for OSv's API documention · bc420c7a
      Nadav Har'El authored
      This patch begins to document OSv's native (non-Linux-compatible) C++ APIs
      using Doxygen. With doxygen, functions, classes, and other APIs are
      documented using comments inside the source code, similarly to the way
      Javadoc is used in the Java world.
      
      After this patch, running "doxygen" generates the documentation in HTML
      form (and also ugly ones in LaTeX...) in the "doxyout" directory.
      After running "doxygen" in the OSv top-level directory, open your browser to
      file://.../doxyout/html/index.html
      
       to view this documentation.
      
      This patch adds a doxygen configuration file, "Doxyfile", and documents
      three functions in the osv namespace: osv::halt(), osv::poweroff(),
      osv::halt().
      
      The format of the resulting documentation is not perfect, but it's not
      as bad as I feared, and also the documentation doesn't uglify the code
      too much (it mainly impacts the header files), so I now believe it will
      better for us than writing man pages (an avenue which I explored
      previously).
      
      Signed-off-by: default avatarNadav Har'El <nyh@cloudius-systems.com>
      bc420c7a
    • Nadav Har'El's avatar
      Add interrupt and quit keys to console driver · d7292625
      Nadav Har'El authored
      
      This patch adds interrupt (by default ctrl-C) and quit (by default ctrl-\)
      handling to the console driver, when the ISIG termios flag is enabled (and
      this patch enables this flag by default). The application can change these
      characters or disable ISIG with ioctls, exactly as in Unix.
      
      The ^C character sends a SIGINT to the (only) process, and ^\ sends SIGQUIT.
      By default both abort OSv, but when running Java we get a much more
      interesting SIGQUIT handler - it shows a trace of all running threads
      and other information.
      
      Note that our line-discipline code currently sits in the console driver
      (we do not have ptys yet), so it only applies to the console, not to
      SSH connections or the likes.
      
      Also note that by default (before the patch to issue #49), qemu will catch
      the ^C and ^\ and won't even pass them to OSv, so apply the patch to #49
      (or change the interrupt or quit characters) to see this feature working.
      
      This patch relates to issue #53.
      
      Signed-off-by: default avatarNadav Har'El <nyh@cloudius-systems.com>
      d7292625
    • Pekka Enberg's avatar
      mempool: Fix early page allocator tracepoint · 79746c74
      Pekka Enberg authored
      
      Fix memory_page_alloc tracepoint if untracked_alloc_page() uses the
      early page allocator.
      
      Signed-off-by: default avatarPekka Enberg <penberg@cloudius-systems.com>
      79746c74
    • Pekka Enberg's avatar
      post-processing/memory: page allocator support · 7d06588d
      Pekka Enberg authored
      
      This patch adds page allocator support to memory analyzer post
      processing script.
      
      Signed-off-by: default avatarPekka Enberg <penberg@cloudius-systems.com>
      7d06588d
    • Pekka Enberg's avatar
    • Pekka Enberg's avatar
      mmu: Fix msync() vma range walk · db0bddbd
      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: default avatarPekka Enberg <penberg@cloudius-systems.com>
      db0bddbd
    • Benoît Canet's avatar
      dhcp: wire dhcp dns servers with the libc DNS resolver code. · 5f43b6a5
      Benoît Canet authored
      
      This Close issue #8 ""Make Java InetAddress.getHostName() works".
      
      Signed-off-by: default avatarBenoit Canet <benoit@irqsave.net>
      Signed-off-by: default avatarAvi Kivity <avi@cloudius-systems.com>
      5f43b6a5
Loading