elf: fix program::_module_index_list use-before-init

We create a memory_image and assign it to _core before *this is fully
initialized, triggering corruption in program::_module_index_list.

This fixes memory corruption issues seen with the upcoming demand paging
patches.

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
memory: poison newly allocator objects in the debug allocator

Fill newly allocated memory with a well known pattern (byte, byte+1,
byte+2, ...) to catch uses of uninitialized memory.

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
loader: Enable debug allocator before ACPI init

The ACPI subsystem uses the memory allocator a lot so enable the debug
allocator before initializing it to detect boot-time problems.

Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
drivers/xenfront-xenbus: Fix condvar_wait() timeout

condvar_wait() expects an absolute time, not a duration.

Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
scripts/release-s3: Fix OSv QCOW2 image release script

As of commit 31fee0f ("build: Build images as QCOW2 files.") we no
longer build raw images.

Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
loader.py: fix indentation

Signed-off-by: Tomasz Grabiec <tgrabiec@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>