vfs: add dentry_ref, a smart pointer for dentrys

Makes managing references easier.

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
vfs: convert file::f_dentry to dentry_ref

Fixes possible leak in sys_open() and vfs_file::close() error cases.

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
vfs: make error class build in C code

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
vfs: add C++ namei()

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
vfs: covert sys_stat, sys_statfs to C++ namei

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
Merge branch 'dref'

"Add dentry_ref, a cousin to fileref, an automatic reference counted smart
pointer for dentries, and start using it."

Reviewed-by: Pekka Enberg <penberg@cloudius-systems.com>
Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
random: save needlessly entropy waste during OSv build process

entropy is being needlessly wasted while building OSv, let's avoid
that.

Signed-off-by: Raphael S. Carvalho <raphaelsc@cloudius-systems.com>
Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
aarch64: gic: do not abort on cpumask read as zero

When on uniprocessor, the register is Read As Zero,
and all interrupts are assumed to target the only processor.

Signed-off-by: Claudio Fontana <claudio.fontana@huawei.com>
Signed-off-by: Avi Kivity <avi@cloudius-systems.com>