Skip to content
Snippets Groups Projects
  1. Aug 07, 2013
  2. Aug 06, 2013
  3. Aug 05, 2013
    • Nadav Har'El's avatar
      Test for for dynamic linker order bug · e5b876a0
      Nadav Har'El authored
      Christoph discovered a bug in our dynamic linker, where symbols which
      exist in the kernel cannot be used in a shared object, which can
      cause nasty bugs when trying to run existing programs.
      
      This test demonstrates this bug, and verifies its fix (in the
      previous commit).
      e5b876a0
    • Nadav Har'El's avatar
      elf: fix symbol resolution order · 82513d41
      Nadav Har'El authored
      This patch fixes the bug in tst-resolve.so, where an OSV symbol (such as
      debug()) hides a symbol in the application (a shared object we are running).
      
      We look up symbols in load order - if tst-resolve.so needs libstdc++.so, we
      search for symbols in this order - first in tst-resolve.so and then
      libstdc++.so. This order is mostly fine. There is one problem though - that
      OSV itself is loaded first, so always gets searched first, which is not
      really what users expect: Users expect OSV to behave like the glibc library
      (searched last), not like the main executable (search first). So this patch
      keeps the first-loaded object (OSV itself) last on the search list.
      82513d41
    • Nadav Har'El's avatar
      Java.so: pass -X options to JVM · b6b43e2d
      Nadav Har'El authored
      Pass -X* (and of course also -XX*) options to the JVM.
      The -Xmx option is the most useful example.
      b6b43e2d
    • Nadav Har'El's avatar
      Java.so: Fix end of options · 3c5f44d9
      Nadav Har'El authored
      The JVM options end with the first "-jar" *or* classname, not *and*.
      Fix the typo.
      3c5f44d9
    • Pekka Enberg's avatar
      zfs: wire up VOP_GETATTR · 566ab6b8
      Pekka Enberg authored
      Now that vn_stat() supports VOP_GETATTR, wire up the ZFS implementation.
      566ab6b8
    • Pekka Enberg's avatar
      vfs: wire up VOP_GETATTR in vn_stat() · 1ab6e439
      Pekka Enberg authored
      1ab6e439
    • Glauber Costa's avatar
      java: pass -verbose options to the JVM · 8a3693cf
      Glauber Costa authored
      8a3693cf
    • Avi Kivity's avatar
      sched: poll for longer before HLTing · 4e3177e3
      Avi Kivity authored
      Increasing the poll time increases the chances that we can avoid the IPI.
      Idle host load increase is negligible.
      4e3177e3
    • Avi Kivity's avatar
      sched: disable IPIs while polling wakeup queue before idle · 032aa932
      Avi Kivity authored
      The scheduler polls the wakeup queue when idle for a short time before HLTing
      in order to avoid the expensive HLT instruction if a wakeup arrives early.
      This patch extends this to also disable remote wakeups during the polling
      period, reducing the waking cpu's need to issue an IPI, whicj requires an
      exit. This helps synchronous multithreaded workloads, where threads block
      and wake each other.
      
      Together with the following patch, netperf throughtput increases from ~17Gbps
      to ~19Gbps, and the context switch benchmark improves from
      
      $ run tests/tst-ctxsw.so
             345 colocated
            5761 apart
             633 nopin
      
      to
      
      $ run tests/tst-ctxsw.so
             347 colocated
             598 apart
             467 nopin
      032aa932
    • Christoph Hellwig's avatar
      HACK: rename the debug variable in fsx · 4089b7e4
      Christoph Hellwig authored
      Without this we somehow get a non-zero value in it while running under OSv.
      
      This needs to be investigated as it would have a bad effect on user workloads.
      4089b7e4
    • Christoph Hellwig's avatar
      9559b1cd
    • Christoph Hellwig's avatar
      vfs: remove superflous casts from sys_lseek · 7df73eae
      Christoph Hellwig authored
      The off_t cast are just superflous, the int cast causes actual truncatation
      bugs.
      7df73eae
    • Christoph Hellwig's avatar
      vfs: wire up truncate and ftruncate · e450b89a
      Christoph Hellwig authored
      e450b89a
    • Christoph Hellwig's avatar
      fsx: don't exit(0) · e15258b8
      Christoph Hellwig authored
      This currently causes an abort with out implementation, which looks ugly.
      
      Just let the return 0 from main do its work.
      e15258b8
    • Christoph Hellwig's avatar
      fsx: disable mapped writes · 914a112d
      Christoph Hellwig authored
      We don't support writing through shared mmaps yet.
      914a112d
    • Christoph Hellwig's avatar
      tests: add fsx · 708b5a3b
      Christoph Hellwig authored
      Add fsx from xfstests to our test cases.
      
      Currently fails on the first OP due to our lacking truncate implemenation.
      708b5a3b
  4. Aug 04, 2013
    • Avi Kivity's avatar
      build: improve .text section generation · 3d58de8e
      Avi Kivity authored
      gcc generates some functions in their own section.  Have a wildcard that
      catches all of these sections so they can all be merged into the global
      .text section; this makes 'perf kvm top' format its output better.
      
      The catch-all wildcard is placed last since ld uses the first match.
      3d58de8e
    • Avi Kivity's avatar
      string: fast memcpy and memset for machines without ERMS · 7f3df3ef
      Avi Kivity authored
      Not all machines have Enhanced REP MOVSB/STOSB (ERMS); provide optimized
      fallbacks.
      7f3df3ef
    • Avi Kivity's avatar
      Merge branch 'uma' (early part) · 6d87c464
      Avi Kivity authored
      Cache uma initialized objects to avoid re-initializing them on each allocation.
      6d87c464
    • Nadav Har'El's avatar
      Convert poll.c to poll.cc · e1686fc4
      Nadav Har'El authored
      Convert poll.c to poll.cc, and add a few tracepoints.
      e1686fc4
    • Nadav Har'El's avatar
      CLI: Don't run init.js on telnet sessions · c4b60f7b
      Nadav Har'El authored
      Before this patch, we ran init.js for every new shell. But init.js runs
      things that only need to be done once - like setting the IP address or
      runnig a DHCP or Telnet server - and we don't need to do this again when
      somebody telnets in.
      
      So this patch adds an "init" flag, which tells the shell if it should
      read init.js. This flag is true for the CLI's main(), but when run from
      TelnetCLI, the flag is false.
      c4b60f7b
    • 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. Aug 01, 2013
    • Glauber Costa's avatar
      do not unmap bios memory · 633a0b7c
      Glauber Costa authored
      There is no harm in leaving it mappend, and there is a potential harm in unmapping,
      since our mapping code does not keep reference counters. So if we map an already
      mapped area, the unmap code will just unmap it for good. Avi spotted this.
      633a0b7c
Loading