apps: update

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
elf: support R_X86_64_COPY relocation

this relocation was necessary to run netperf.so

Signed-off-by: Claudio Fontana <claudio.fontana@huawei.com>
Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
scripts: add script to setup a development environment

Installs all required packages.

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
acpi: shutdown OSv on power button ACPI event

Signed-off-by: Gleb Natapov <gleb@cloudius-systems.com>
Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
acpi: run interrupt handler in a thread

ACPI interrupt handlers are allowed to take locks, so we must run them in
a thread.  Add a class to take care of this, arranging for the thread to
exit when done.

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
sendmsg: kern_sendit(): create a local copy of user's iovec

kern_sendit() calls for sosend() which changes the contents of iovec
in its uio parameter (specifically as a result of uiomove() call).

Before this patch we just set uio->uio_iov to be mp->msg_iov which comes
from the application and applications assume msg_iov is not changed
(e.g. memcached).

As a result the application may get seriously confused. For example, memcached
will send corrupted responces when value size is greater than MTU, e.g. 5024B,
for 1500B MTU.

The easiest way to fix this is to create a local copy of iovec. We may consider
some more creative approach in a future.

Signed-off-by: Vlad Zolotarov <vladz@cloudius-systems.com>
Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
XXX x86 check

Signed-off-by: Claudio Fontana <claudio.fontana@huawei.com>
build.mk: fix info message broken by previous commits

Signed-off-by: Claudio Fontana <claudio.fontana@huawei.com>
aarch64: entry.S: do not treat all sync aborts as page faults

not all sync aborts are made equal: do not treat everything
as translation faults. For everything else, for now just
put the interesting values in X21..X24 and halt, so that
we can easily debug what happened.

Signed-off-by: Claudio Fontana <claudio.fontana@huawei.com>
async: remove unused include directive

also remove the AARCH64_PORT_STUB which becomes useless.

Signed-off-by: Claudio Fontana <claudio.fontana@huawei.com>
aarch64: libc: remove unnecessary AARCH64_PORT_STUB

The stub implementation is not necessary anymore,
we have mmu and page faults now.

Signed-off-by: Claudio Fontana <claudio.fontana@huawei.com>
tools: add uush

add a micro micro interactive shell which allows to just
run commands either in the foreground or in the background
using "&" appended to the command.
Useful for testing purposes. No cmdline arguments.

"uush" is a module, so you can add it to the image by using
make image=uush

Example of use:

./scripts/run.py -c 1 -V -e tools/uush.so

Signed-off-by: Claudio Fontana <claudio.fontana@huawei.com>