- Feb 25, 2013
-
-
Avi Kivity authored
prex code depends on this. TODO: make it optional
-
Avi Kivity authored
It just adds complexity, and doesn't reduce locking overhead, as we must take the spinlock anyway during unlock. Remove it, since it makes conversion to a recursive mutex (needed by fs/vfs/vfs_mount.c) more complicated.
-
- Feb 24, 2013
-
-
Avi Kivity authored
We need it from several places; use a function to find it.
-
Avi Kivity authored
-
Avi Kivity authored
Or we will be overrun by zombies. Signed-off-by:
Avi Kivity <avi@cloudius-systems.com>
-
Avi Kivity authored
printfs uses ~80K stack; this easily overflows and causes corruption. We can't simply increase the stack size since this huge stack footprint means that stack guard pages won't work. Reduce the footprint for now, later switch to per-cpu allocation or some other scheme.
-
- Feb 23, 2013
-
-
Avi Kivity authored
Moved thread start from virtio-vring.cc to virtio-blk.cc. Conflicts: drivers/virtio-vring.cc
-
Avi Kivity authored
With atomic status, there is no need to examine the runqueue.
-
Avi Kivity authored
While easy to use, auto-starting threads generates problems when more complicated initialization takes place. Rather than making auto-start optional (as Guy suggested), remove it completely, to keep the API simple. Use thread::start() to start a thread. Unstarted threads ignore wakeups until started.
-
- Feb 22, 2013
-
-
Dor Laor authored
driver itself. It removes the hard coded binding to queue 0 and will enable flexibility for the upcoming virtio-net registration.
-
- Feb 21, 2013
-
-
Dor Laor authored
* 'master' of github.com:cloudius-systems/osv: add a romfs driver
-
Dor Laor authored
and call biodone when appropriate
-
Dor Laor authored
-
Christoph Hellwig authored
Just like fat the test isn't wired up yet until we have the infrastructure for it.
-
Dor Laor authored
-
Dor Laor authored
* 'master' of github.com:cloudius-systems/osv: move debug.h to include/osv and make it self sufficient
-
Dor Laor authored
-
Dor Laor authored
-
Dor Laor authored
It's done since i uses as a increasing input for the data that resides in a single byte. In addition, make sure that the read buffer is initialize to zero and not the target data we wish it to be. Found while testing readonly disk property
-
Christoph Hellwig authored
-
Avi Kivity authored
We don't want to be preempted while manipulating the runqueue, since the scheduler will do that as well when called during preemption, leading to corruption.
-
Avi Kivity authored
We don't want to be preempted during a context switch, since thread state invariants will not be maintained.
-
Avi Kivity authored
We store it in a global rather than passing it on the stack since it's only useful in a few contexts. Our interrupts don't nest so it's pretty simple.
-
Dor Laor authored
Now it's possible to stress virtio through the external tests so we do not need this code
-
Christoph Hellwig authored
-
Avi Kivity authored
These relocations need to are relative to the start of the TLS segment, which ends in %fs:0, so we need to subtract the segment size.
-
- Feb 20, 2013
-
-
Christoph Hellwig authored
Imported from prex. Note that the test isn't wired up yet as we'll need more infrastructure changes to run it.
-
Christoph Hellwig authored
-
- Feb 19, 2013
-
-
Avi Kivity authored
Don't waste power during idle.
-
Avi Kivity authored
Wastes power.
-
Avi Kivity authored
Instead, spin for a bit looking for work to do, then enter a low-power state and wait for an interrupt to pull us out of it.
-
Avi Kivity authored
Also add an arch independent name for it.
-
Avi Kivity authored
-
Avi Kivity authored
The whole idea of namespaces is to prevent namespace pollution, using a "using namespace" in a header negates that. Remove.
-
Guy Zana authored
-
Avi Kivity authored
Noticed by Guy.
-
Avi Kivity authored
-
Avi Kivity authored
Add a detached thread class (with a private destructor, so it can only be allocated on the heap). The implementation uses a reaper thread to wait until the detached thread is dead, and then ->join() and delete it.
-
Avi Kivity authored
fixes loading unit tests with "main" as the entry point.
-
- Feb 18, 2013
-
-
Guy Zana authored
-