From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55659) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhENS-0006rX-G4 for qemu-devel@nongnu.org; Tue, 06 Sep 2016 07:17:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhENN-0004b1-Gg for qemu-devel@nongnu.org; Tue, 06 Sep 2016 07:17:18 -0400 From: Laurent Vivier Date: Tue, 6 Sep 2016 13:17:03 +0200 Message-Id: <1473160625-6377-1-git-send-email-lvivier@redhat.com> Subject: [Qemu-devel] [PATCH v3 0/2] 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 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