[CORE] Fix timeout returned by vmm_waitqueue_sleep_event_timeout()

Signed-off-by: Anup Patel <anup@brainfault.org>
[x86] Implement arch_vcpu_preempt_orphan() for x86_64

Signed-off-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Himanshu Chauhan <hschauhan@nulltrace.org>
[CORE] Mandate arch_vcpu_preempt_orphan() for all architectures

This patch finally removes the dependence on timer expire APIs
and make arch_vcpu_preempt_orphan() mandatory for all architectures.

The APIs removed from core code include vmm_timer_event_expire() and
vmm_clockchip_force_expirey().

Signed-off-by: Anup Patel <anup@brainfault.org>
[x86] Fix min_delta_ns for HPET clockchip

The core code does not use clockchip expire callback for immediate
timer events, instead it call set_next_event() with minimum possible
ticks.

The current value of min_delta_ns causes ramdom hits to BUG_ON() in
hpet set_next_event().

This patch fixes this issue by making hpet min_delta_ns equal to
100 microsecs.

Signed-off-by: Anup Patel <anup@brainfault.org>
[ARM] i.MX25: Fix DTS tree for real hardware.

i.MX25 PDK only has 64 MB DDR

Signed-off-by: Jean-Christophe DUBOIS <jcd@tribudubois.net>
[DRIVERS] i.MX UART: fix a typo on #define

Signed-off-by: Jean-Christophe DUBOIS <jcd@tribudubois.net>
[ARM] i.MX25: Add default config file for 3DStack

Signed-off-by: Jean-Christophe DUBOIS <jcd@tribudubois.net>
[CORE] Depricate unused expire() callback of vmm_clockchip

This patch removes expire() callback of vmm_clockchip instance
and corresponding implementation of it in all clockchip drivers.

Signed-off-by: Anup Patel <anup@brainfault.org>
[CORE] Fixup IO access functions

The IO access functions are very important to architectures like
x86.

This patch fixes prototype of all IO access functions and adds
few legacy memory read/write operations.

Signed-off-by: Anup Patel <anup@brainfault.org>
[DRIVERS] Fix drivers to reflect changes vmm_host_io.h

Signed-off-by: Anup Patel <anup@brainfault.org>
[CORE] Add vmm_readq and vmm_writeq for 64-bit machines

Signed-off-by: Anup Patel <anup@brainfault.org>
[CORE] Added __initdata variable attribute for boot time data

Signed-off-by: Anup Patel <anup@brainfault.org>
[CORE] Remove vmm_host_ram_xxx() API declarations from vmm_host_aspace.h

The vmm_host_ram_xxx() were declared at two places vmm_host_ram.h and
vmm_host_aspace.h

This patch removes this duplicate declarations.

Signed-off-by: Anup Patel <anup@brainfault.org>
[CORE] fb: Add apertures to vmm_fb_info and related APIs

Signed-off-by: Anup Patel <anup@brainfault.org>
[DRIVERS] More linux-compatible headers for porting vesafb driver

Signed-off-by: Anup Patel <anup@brainfault.org>
[x86] Minor beautifications in x86_64 generic board

Signed-off-by: Anup Patel <anup@brainfault.org>
[LIBS] Added strpbrk() and strsep() APIs to stringlib

Signed-off-by: Anup Patel <anup@brainfault.org>
[x86] Add separate source file for stubs and hacks

Signed-off-by: Anup Patel <anup@brainfault.org>
[DRIVERS] Include vmm_host_aspace.h in linux/ioport.h

Signed-off-by: Anup Patel <anup@brainfault.org>
[CORE] Added flags for specifying normal write-through memory

This patch adds define VMM_MEMORY_FLAGS_NORMAL_WT for specifying
flags required for a norma write-through memory.

With this patch, we have three types flags for host memory:
VMM_MEMORY_FLAGS_NORMAL -> Normal RAM  (cacheable & writeback)
VMM_MEMORY_FLAGS_NORMAL_WT -> Normal + Writethrough (cacheable & writhrough)
VMM_MEMORY_FLAGS_IO -> Device registers

Signed-off-by: Anup Patel <anup@brainfault.org>