Skip to content
Snippets Groups Projects
  1. Nov 18, 2013
  2. Sep 15, 2013
  3. Sep 11, 2013
    • Nadav Har'El's avatar
      Add reboot function · 542c319b
      Nadav Har'El authored
      Added a new function, osv::reboot() (declared in <osv/power.hh>)
      for rebooting the VM.
      
      Also added a Java interface - com.cloudius.util.Power.reboot().
      
      NOTE: Power.java and/or jni/power.cc also need to be copied into
      the mgmt submodule.
      542c319b
  4. Aug 04, 2013
    • Nadav Har'El's avatar
      CLI: Telnet connection shouldn't mess with console's stty · a8e0b003
      Nadav Har'El authored
      Our CLI changes the console's tty mode to raw when doing its line
      editing, and back to the original (cooked) mode when running a command.
      Obviously, when we're running on a telnet connection we shouldn't touch
      the console's mode like the existing code did.
      
      OSV doesn't (at least for now) have ptys, so we can't handle the
      telnet connection exactly like we handled the console, and the kernel
      can't implement a "cooked" line discipline for us like it implemented on
      the console. But we can do a very similar thing in Java instead:
      
      This patch adds a new Java class, "TTY", which has an input and output
      stream and an "stty" interface. We have one implementation for the console
      (using System.in, System.out and the console's Stty), and a different
      implementation, TelnetTTY, for a telnet connection.
      
      This patch does not currently implement a line discipline ("cooked mode")
      for this TelnetTTY, so it will always stay in raw mode. This is fine for all
      our current uses of the CLI, but if in the future we have commands that read
      user input and expect cooked mode (echo, line editing), we'll need to
      implement this line discipline.
      a8e0b003
  5. Jul 28, 2013
  6. Jun 17, 2013
  7. May 21, 2013
  8. May 19, 2013
  9. May 16, 2013
    • Nadav Har'El's avatar
      Default console to cooked mode, not raw mode. · cf74861e
      Nadav Har'El authored
      Until now, OSV's console defaulted to raw mode, to make the CLI
      happy. The problem is that on Linux, applications expect to be
      run in cooked mode, so if we ever run a simple application that
      tries to read user input, it can be confused.
      
      This patch makes OSV console default to cooked mode, and the
      CLI switch to raw mode before reading an input line - and reset
      to the default mode just before running the user's command.
      
      Unfortunately, we had to resort to adding a JNI class "Stty",
      since Java has no builtin support for the ioctls required for
      changing the tty settings.
      cf74861e
  10. May 14, 2013
  11. May 09, 2013
  12. May 08, 2013
    • Nadav Har'El's avatar
      com.cloudius.util.Exec.run() used to return main()'s exit code in a · 1fe04ab3
      Nadav Har'El authored
      class-static variable, which is not only strange, it also means we
      cannot concurrently run several programs in several threads.
      
      Change it so run() returns the (32-bit) return value, and when execution
      fails (e.g., file not found), it throws an IOException.
      
      Note that unlike Unix where main()'s return value is limited to 8 bits,
      here we decided to allow the full gamut (63-bit) of return values from
      main(). main() may return -23 or 2323813 and this does not indicate
      an error running it (only an exception indicates an error).
      
      This patch also removes the arbitrary limit of 256 command line arguments
      (not that anyone would need more...).
      1fe04ab3
    • Guy Zana's avatar
    • Guy Zana's avatar
      java: first level split of java jar files · 674d2160
      Guy Zana authored
      split cloudius.jar to cloudius.jar an cli.jar
      the following patch will introduce proper code reusing between the two jars
      basically, cli.jar will be dependant on cloudius.jar
      674d2160
    • Guy Zana's avatar
      java: rename java/src directory to java/cloudius · bda48d3b
      Guy Zana authored
      we're about to split cloudius.jar into 2 jars:
      1. cloudius.jar - holds various utils and interfacing jni
      2. cli.jar - wrappers needed for the cli, commuication of js<->java
      
      per Nadav suggestion.
      bda48d3b
Loading