This series allows to call RTAS commands from the qtest framework, and defines a first test to call RTAS command "get-time-of-day" to validate the protocol and test RTAS.
RTAS command parameters are passed to the guest via the guest memory, so we also need to implement the guest memory management functions for PPC64 target. RTAS commands will be needed later to test PCI from the qtest framework with ppc64 virtual machines: PCI configuration is read/written with RTAS commands "ibm,read-pci-config", "ibm,write-pci-config". v3: - use mktimegm() instead of timegm() v2: - remove useless parenthesis, inline - add a missing space in qrtas_call() prototype Laurent Vivier (2): tests: make pc_alloc_init/init_flags/uninit generic tests: add RTAS command in the protocol hw/ppc/spapr_rtas.c | 19 ++++++++++++ include/hw/ppc/spapr_rtas.h | 10 +++++++ qtest.c | 17 +++++++++++ tests/Makefile.include | 6 +++- tests/libqos/libqos.h | 2 +- tests/libqos/malloc-ppc64.c | 38 ++++++++++++++++++++++++ tests/libqos/malloc-ppc64.h | 17 +++++++++++ tests/libqos/malloc.c | 42 +++++++++++++++++++++++++++ tests/libqos/malloc.h | 3 ++ tests/libqos/rtas.c | 71 +++++++++++++++++++++++++++++++++++++++++++++ tests/libqos/rtas.h | 11 +++++++ tests/libqtest.c | 10 +++++++ tests/libqtest.h | 15 ++++++++++ tests/rtas-test.c | 42 +++++++++++++++++++++++++++ 14 files changed, 301 insertions(+), 2 deletions(-) create mode 100644 include/hw/ppc/spapr_rtas.h create mode 100644 tests/libqos/malloc-ppc64.c create mode 100644 tests/libqos/malloc-ppc64.h create mode 100644 tests/libqos/rtas.c create mode 100644 tests/libqos/rtas.h create mode 100644 tests/rtas-test.c -- 2.5.5