gdb: look for objects also in apps/ directory

For debugging OSv, we add to gdb a "osv syms" command which attempts
to load into gdb the same shared-objects that were loaded on OSv.

We looked for these objects in a bunch of places (build directory,
modules/ directory, etc.). This patch also adds to this path the apps/
directory (where stuff from osv-apps.git is compiled). This is
convenient when debugging OSv running various applications.

Signed-off-by: Nadav Har'El <nyh@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
eventfd: release mutex before calling poll_wake()

Nadav pointed out that calling poll_wake() with the mutex taken may cause
unnecessary context switches, since the woken thread will also want to
acquire that mutex.

Reviewed-by: Nadav Har'El <nyh@cloudius-systems.com>
Signed-off-by: Paweł Dziepak <pdziepak@quarnos.org>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
cli: Add reboot command

Signed-off-by: Takuya ASADA <syuu@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
loader: Moving resolution of environment of cmdline args

Moving resolution of environment of cmdline args after networking has
been started to allow adding enviornment varilable that hold network
information (e.g. IP address).

Reviewed-by: Glauber Costa <glommer@cloudius-systems.com>
Reviewed-by: Nadav Har'El <nyh@cloudius-systems.com>
Signed-off-by: Shlomi Livne <shlomi@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>