[x86] Register reset & shutdown callbacks

    The arch_board_reset() and arch_board_shutdown() are
    depricated.

    Now we have to use vmm_register_system_reset() and
    vmm_register_system_shutdown() to provide reset & shutdown
    callbacks.

    This patch fixes x86_64_generic board as per above.

    Signed-off-by: Anup Patel <anup@brainfault.org>
    Signed-off-by: Himanshu Chauhan <hschauhan@nulltrace.org>
    Acked-by: Himanshu Chauhan <hschauhan@nulltrace.org>
[x86] Make arch_defterm_getc() sleepable.

The arch_defterm_getc() is always called in Orphan (or Thread) context
so as a small optimization we sleep waiting for input characters in
defterm fifo.

Also, its quite inefficient to constantly poll defterm fifo.

Signed-off-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Himanshu Chauhan <hschauhan@nulltrace.org>
Merge x86-next from https://github.com/hschauhan/xvisor-x86_64
[CORE] Add Banner3 and Graffiti banner styles

This patch adds two more banner styles namely Banner3 and Graffiti.

The patch also makes Roman banner style as default.

Signed-off-by: Anup Patel <anup@brainfault.org>
[ARM] Use Roman font style banner for all ARM hosts

This patch enables Roman font style banner for all ARM hosts
in their defconfigs.

Signed-off-by: Anup Patel <anup@brainfault.org>
[CORE] vio: Minor cosmetic changes in vmm_vinput

Signed-off-by: Anup Patel <anup@brainfault.org>
[CORE] vio: First-cut implementation of virtual display framework

This patch introduces first version of virtual display framework.

The virtual display subsystem has two important entites namely
vmm_vdisplay and vmm_surface.

GUI rendering daemons (VNC daemon or FB daemon or ...) create
vmm_surface instance and add/bind it to a vmm_vdisplay instance.
More than one GUI rendering daemons can add their vmm_surface
instances to a single vmm_vdisplay instance. The GUI rendering
daemons will also use vmm_vdisplay_one_update() API to periodically
update/sync vmm_surface instance with vmm_vdisplay instance.

Display (or framebuffer) emulators create vmm_vdisplay instance
to emulate a virtual display. The display emulator will also use
vmm_vdisplay_surface_xxx() APIs to give hints to vmm_surface
instances about changes in virtual display.

Signed-off-by: Anup Patel <anup@brainfault.org>
[COMMANDS] Minor beautification to 'vserial list' command

Signed-off-by: Anup Patel <anup@brainfault.org>
[EMULATORS] Avoid direct use of arch_cpu_to_xxxx() APIs

Generally, we prefer use of core APIs wherever possible
instead of directly using arch_xxx() APIs.

On similar lines, we replace use of arch_cpu_to_xxxx() APIs
with vmm_cpu_to_xxxx() APIs.

Signed-off-by: Anup Patel <anup@brainfault.org>
[COMMANDS] Add vdisplay commands

This patch adds a simple vdisplay command to view and access
vmm_vdisplay instances.

Signed-off-by: Anup Patel <anup@brainfault.org>
[CORE] vio: Add more vmm_surface_xxx() APIs to virtual display framework

This patch adds lot of new vmm_surface_xxx() APIs for making it easier
to implement display/framebuffer emulators.

Signed-off-by: Anup Patel <anup@brainfault.org>
[EMULATORS] Introduce PL110 AMBA CLCD emulator

This patch adds PL110/PL111 AMBA CLCD emulator adapted from QEMU
sources. This will be a virtual AMBA CLCD that will be available
to most of the ARM guest as framebuffer/video device.

Signed-off-by: Anup Patel <anup@brainfault.org>
[ARM] Enable PL110 CLCD emulator for all ARM hosts

This patch enables virtual display framework and PL110 emulator
in all ARM defconfigs.

Signed-off-by: Anup Patel <anup@brainfault.org>
[ARM] Enable PL110/PL111 device in guest templates.

This patch enables PL110/PL111 device in realview-eb-mpcore,
realview-pb-a8, vexpress-a9 and vexpress-a15 guest templates.

Signed-off-by: Anup Patel <anup@brainfault.org>
[TESTS] Enable PL110/PL111 CLCD driver for guest linux

We have PL110/PL111 device available realview-eb-mpcore, realview-pb-a8,
vexpress-a9, and vexpress-a15 guests hence we enable their drivers in
respective guest linux defconfigs.

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