tests/tst-pthread-affinity: Remove bogus struct

tst-pthread-affinity implements a useless copy of pthread.cc's thread_attr
structure. This structure is not used by any code and, hence, can be removed.

Signed-off-by: Renato L. F. Cunha <renato@renatocunha.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
random: fix includes

Reviewed-by: Raphael S. Carvalho <raphaelsc@cloudius-systems.com>
Signed-off-by: Tomasz Grabiec <tgrabiec@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
random: create random devices even when there's no virtio-rng

This fixes a bug which manifests in /dev/random and /dev/urandom
missing on platforms which do not have virtio-rng. That includes GCE
and EC2. The problem was that if virtio-rng did not register itself
then random devices were not initialized. We now have more hardware
sources (rdrand) and we should not rely on virito-rng alone.

The fix is to always initialize random devices. If virtio-rng is
probed successfully it will register itself as entropy source.

Reviewed-by: Raphael S. Carvalho <raphaelsc@cloudius-systems.com>
Signed-off-by: Tomasz Grabiec <tgrabiec@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
cpuid: add string to cpuid parser

We would like to dump that later in string format.

Signed-off-by: Glauber Costa <glommer@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
processor: provide a string representation of all processor features

Signed-off-by: Glauber Costa <glommer@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
move cpuid.hh to processor.hh header

Although this is just naming, "processor" is more arch independent than
cpuid. So arch neutral code can now include "processor.hh" and still have
access to the cpuid.hh goodies.

Signed-off-by: Glauber Costa <glommer@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
httpserver: harware probing API

This patch provides an interface that allow clients to REST probe for the current
processor flags currently available. In this same level, I intend to soon create
calls for disk features, network interface features, etc.

Signed-off-by: Glauber Costa <glommer@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>