osv: fix one compile issue

make[1]: Entering directory `/home/zwu/virt/osv/build/release'
  GEN gen/include/bits/alltypes.h
  AS arch/x64/boot16.o
  LD boot.bin
  AS arch/x64/boot.o
  CXX loader.o
In file included from <command-line>:0:0:
./../../compiler/include/intrinsics.hh:10:127: error: new declaration ‘unsigned char __builtin_ia32_addcarryx_u64(unsigned char, long unsigned int, long unsigned int, long long unsigned int*)’ [-Werror]
./../../compiler/include/intrinsics.hh:10:127: error: ambiguates built-in declaration ‘unsigned char __builtin_ia32_addcarryx_u64(unsigned char, long long unsigned int, long long unsigned int, long long unsigned int*)’ [-Werror]
cc1plus: all warnings being treated as errors
make[1]: *** [loader.o] Error 1
make[1]: Leaving directory `/home/zwu/virt/osv/build/release'
make: *** [all] Error 2

Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
percpu: use correct percpu sect size to support 64 vcpus

percpu had too little space allocated to support 64 vcpus, which
lead to a crash when booting with more than 13 vcpus. Fix it by
using a correct size to support 64 vcpus.

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
run.py: give some clues to the user when subprocess.call fail

OSerror exceptions throwed by subprocess.call are made silent using pass.
Fix this by properly catching the exception and pretty print it.

Signed-off-by: Benoit Canet <benoit@irqsave.net>
scripts/silenant.py: Fix error message if ant not found

If Apache Ant is not found, the build fails with a cryptic error
message:

  [penberg@localhost osv]$ make
    ANT tests/bench
  Traceback (most recent call last):
    File "scripts/silentant.py", line 14, in <module>
      stderr = subprocess.PIPE)
    File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
      errread, errwrite)
    File "/usr/lib64/python2.7/subprocess.py", line 1308, in _execute_child
      raise child_exception
  OSError: [Errno 2] No such file or directory
  make: *** [all] Error 1

Make it more human friendly:

  [penberg@localhost osv]$ make
    ANT tests/bench
  Apache Ant not found. Please install the 'ant' package.
  make: *** [all] Error 1

Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
Test: Add a DNS resolver test

This regression test trigger issue #8
"Make Java InetAddress.getHostName() work" by exercising the DNS
resolver on localhost and a dns root server.

The test takes care of specifying NI_NOFQDN to resolve only the
hostname part of localhost ip.

It appears that the DNS ip is not communicated to the libc by
core/dhcp.cci: /etc/resolv.conf is not filled.

Test contributed while waiting for an fix idea to implement.

Signed-off-by: Benoit Canet <benoit@irqsave.net>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
cli: kill old js console

Having that implementation in the tree even though it was superceded is
confusing and really unnecessary.

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>