Received: from eggs.gnu.org ([2001:4830:134:3::10]:48600) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bi4Yb-0004sb-65 for qemu-devel@nongnu.org; Thu, 08 Sep 2016 15:00:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bi4YZ-0000sn-8O for qemu-devel@nongnu.org; Thu, 08 Sep 2016 15:00:16 -0400 From: Laurent Vivier Date: Thu, 8 Sep 2016 21:00:04 +0200 Message-Id: <1473361207-28498-1-git-send-email-lvivier@redhat.com> Subject: [Qemu-devel] [PATCH v6 0/3] tests: add RTAS protocol List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: david@gibson.dropbear.id.au Cc: thuth@redhat.com, lvivier@redhat.com, qemu-ppc@nongnu.org, qemu-devel@nongnu.org, groug@kaod.org 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 SPAPR target. RTAS commands will be needed later to test PCI from the qtest framework with SPAPR virtual machines: PCI configuration is read/written with RTAS commands "ibm,read-pci-config", "ibm,write-pci-config". v6: - rebase - remove useless include v5: - replace "ppc64" by "spapr" - define and use qtest_spapr_vboot()/qtest_spapr_boot()/qtest_spapr_shutdown() 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() libqos: define SPAPR libqos functions 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 | 5 ++++ tests/libqos/libqos-pc.c | 2 ++ tests/libqos/libqos-spapr.c | 30 +++++++++++++++++++ tests/libqos/libqos-spapr.h | 10 +++++++ tests/libqos/libqos.c | 1 - tests/libqos/malloc-spapr.c | 38 ++++++++++++++++++++++++ tests/libqos/malloc-spapr.h | 17 +++++++++++ tests/libqos/rtas.c | 71 +++++++++++++++++++++++++++++++++++++++++++++ tests/libqos/rtas.h | 11 +++++++ tests/libqtest.c | 10 +++++++ tests/libqtest.h | 15 ++++++++++ tests/rtas-test.c | 40 +++++++++++++++++++++++++ 15 files changed, 321 insertions(+), 24 deletions(-) create mode 100644 include/hw/ppc/spapr_rtas.h create mode 100644 tests/libqos/libqos-spapr.c create mode 100644 tests/libqos/libqos-spapr.h create mode 100644 tests/libqos/malloc-spapr.c create mode 100644 tests/libqos/malloc-spapr.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