[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH v4 0/3] tests: add RTAS protocol
From: |
Laurent Vivier |
Subject: |
[Qemu-ppc] [PATCH v4 0/3] tests: add RTAS protocol |
Date: |
Tue, 6 Sep 2016 15:17:54 +0200 |
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".
v4:
- use qemu_strtoXXX() instead strtoXX(),
add a patch in the series to change all strtoXX() in qtest.c
v3:
- use mktimegm() instead of timegm()
v2:
- remove useless parenthesis, inline
- add a missing space in qrtas_call() prototype
Laurent Vivier (3):
qtest: replace strtoXX() by qemu_strtoXX()
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 | 66 ++++++++++++++++++++++++++---------------
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, 327 insertions(+), 25 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