libqos: define SPAPR libqos functions
commit8d6ef7c9fe880c710dd55cfe7a0f076be475bede
authorLaurent Vivier <lvivier@redhat.com>
Tue, 13 Sep 2016 12:52:44 +0000 (13 14:52 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 23 Sep 2016 00:29:40 +0000 (23 10:29 +1000)
tree1987346bef0aa73514c3f51a84e64757d581cc8e
parentaa15f497178a8a3d489bf410171c3b6dfa0d9f49
libqos: define SPAPR libqos functions

Define spapr_alloc_init()/spapr_alloc_init_flags()/spapr_alloc_uninit()

  to allocate and use SPAPR guest memory

Define qtest_spapr_vboot()/qtest_spapr_boot()/qtest_spapr_shutdown()

  to start SPAPR guest with QOSState initialized for it (memory management)

Move qtest_irq_intercept_in() from generic part to PC part.

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
tests/Makefile.include
tests/libqos/libqos-pc.c
tests/libqos/libqos-spapr.c [new file with mode: 0644]
tests/libqos/libqos-spapr.h [new file with mode: 0644]
tests/libqos/libqos.c
tests/libqos/malloc-spapr.c [new file with mode: 0644]
tests/libqos/malloc-spapr.h [new file with mode: 0644]