Skip to content
Snippets Groups Projects
  1. Jun 30, 2013
    • Guy Zana's avatar
    • Guy Zana's avatar
      cli.js: cast command line arguments to JS strings · 0f32a2f6
      Guy Zana authored
      mainargs is a String[] set by Java (see RhinoCLI.java), some of the commands
      that access the elements of this array fail because the strings are Java strings
      and not Javascript strings.
      
      this patch perform a proper cast on init(), just before invoking the command.
      
      now it's also possible to start a test from the command line, like so:
      
      $ sudo ./scripts/run.py -n -e "java.so -jar /java/cli.jar test <test-name>" -c2 -m1G
      0f32a2f6
    • Avi Kivity's avatar
      cli: add ability to run command in background · dc8114dd
      Avi Kivity authored
      Example:
      
        test foo &
      dc8114dd
    • Nadav Har'El's avatar
      Stub getpwnam(), setuid() and setgid() · c6399e55
      Nadav Har'El authored
      Implement getpwname(), setuid() and setgid() in the simplest way possible
      considering that we don't support any userid except 0:
      
      getpwname() returns user 0 for any username given to it.
      setuid() and setgid() does nothing for uid or gid 0, otherwise fails.
      Where would the caller get this !=0 id anyway?
      
      Memcached needs these calls, because it wants to be clever and
      warn the user against running it as root....
      c6399e55
    • Nadav Har'El's avatar
      libc: implement signal() · 1ca1bd43
      Nadav Har'El authored
      Implement the signal() function. This is hardly a useful function in OSV,
      first because our signal support is pretty broken, and second because
      sigaction() is a much more portable API that should always be preferred.
      
      Nevertheless, memcached uses signal() (to catch SIGINT, which it will
      never get in OSV...), so let's implement it for the sake of completeness.
      1ca1bd43
    • Nadav Har'El's avatar
      epoll: use tracepoints, remove debugging messages · 642acc90
      Nadav Har'El authored
      Replace debug() messages in epoll with useful tracepoints.
      642acc90
    • Nadav Har'El's avatar
      epoll: make epoll-poll event conversion more explicit · 89e12d88
      Nadav Har'El authored
      epoll and poll() use different event names (e.g., EPOLLIN vs. POLLIN),
      but in practice the bits are identical. Make this conversion more
      explicit, and add static_assert()s that the bits are indeed identical.
      
      We still have dynamic assert() that the bits we don't support -
      EPOLLET (for edge triggered behavior) and EPOLLONESHOT - aren't
      used.
      
      This patch only makes the code cleaner, but doesn't change anything
      in its behavior.`
      89e12d88
  2. Jun 26, 2013
  3. Jun 25, 2013
    • Glauber Costa's avatar
      xen: negotiate usage of xen pci · 88d39cb7
      Glauber Costa authored
      Xen defines a protocol for defining whether or not PV drivers are available in
      an HVM guest. Upon successful negotiation, the documentation states that:
      
      "The relevant emulated devices then disappear from the relevant buses.  For
      most guest operating systems, you want to do this before device enumeration
      happens."
      
      This patch basically follows this protocol and stores the result for future usage.
      
      See more at: docs/misc/hvm-emulated-unplug.markdown
      88d39cb7
    • Glauber Costa's avatar
      buildfix: pvclock xen definitions · a8b8cf06
      Glauber Costa authored
      a8b8cf06
    • Glauber Costa's avatar
      Revert "buildfix: pvclock xen definitions" · 043b4a31
      Glauber Costa authored
      This reverts commit dae99589.
      043b4a31
    • Glauber Costa's avatar
      buildfix: pvclock xen definitions · dae99589
      Glauber Costa authored
      dae99589
    • Glauber Costa's avatar
      xen: lay down detection basic infrastructure · 0c8f8f89
      Glauber Costa authored
      
      Xen's information can be in a variety of MSRs. We need to test for them all
      and figure out in which of them lays the informations we want.
      
      Once we determine that, xen initalization code is ready to be executed.
      This needs to run as early as possible, because all xen drivers will
      make use of it one way or another.
      
      The hypercall code is heavily inspired (aka mostly copied) from Avi's
      xen tentative patch, with the 5-argument hypercall removed (delayed until
      we need it)
      
      Signed-off-by: default avatarGlauber Costa <glommer@cloudius-systems.com>
      0c8f8f89
    • Glauber Costa's avatar
      kvmclock: don't wastefully compute the wall time at every clock measure · a07d8bd1
      Glauber Costa authored
      
      I am pretty sure kvmclock only sets the wall time when we write to the MSR,
      so there is no point in keep calculating it every time we call system_time().
      
      I am not changing it to a const function because we *may* have to call it
      more than once in the future, if we ever suspend, or the likes. But for now,
      using a pre-computed value is enough.
      
      Signed-off-by: default avatarGlauber Costa <glommer@cloudius-systems.com>
      a07d8bd1
    • Glauber Costa's avatar
      loader: skip reading disk on errors · 9fe8d677
      Glauber Costa authored
      
      This is not a very serious issue, but goes like this: The very simple read
      method we are attempting right now in the loader, will keep reading from the
      disk until we reach a pre-determined max size. However, the disk is usually
      smaller than this. If this is the case, XEN dmesg logs are filled with messages
      indicated that we are trying to read from invalid LBAs, to the point of making
      the log useless for me.
      
      So although the annoyance is minor, the patch itself is minor too. If nobody
      opposes, I can apply it.
      
      Signed-off-by: default avatarGlauber Costa <glommer@cloudius-systems.com>
      9fe8d677
    • Nadav Har'El's avatar
      Fix epoll bug · 9b1816c5
      Nadav Har'El authored
      The "events", not "revents", field of the poll structure needs to be set
      before calling poll().
      9b1816c5
    • Nadav Har'El's avatar
      Add epoll() test · 183c656c
      Nadav Har'El authored
      Add tst-epoll.cc for testing the epoll_*() functions.
      This test finds a bug, which will be fixed in a separate patch.
      183c656c
  4. Jun 24, 2013
Loading