From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40847) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgv2s-0006s2-31 for qemu-devel@nongnu.org; Mon, 05 Sep 2016 10:38:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bgv2n-0004IX-Un for qemu-devel@nongnu.org; Mon, 05 Sep 2016 10:38:45 -0400 From: Laurent Vivier Date: Mon, 5 Sep 2016 16:38:30 +0200 Message-Id: <1473086312-4154-1-git-send-email-lvivier@redhat.com> Subject: [Qemu-devel] [PATCH 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 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". 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 | 43 +++++++++++++++++++++++++++ 14 files changed, 302 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