From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54145) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bk2Sb-0006dD-FY for qemu-devel@nongnu.org; Wed, 14 Sep 2016 01:10:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bk2SX-0005K2-3p for qemu-devel@nongnu.org; Wed, 14 Sep 2016 01:10:12 -0400 Date: Wed, 14 Sep 2016 13:23:37 +1000 From: David Gibson Message-ID: <20160914032337.GG15077@voom.fritz.box> References: <1473771165-23804-1-git-send-email-lvivier@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EDJsL2R9iCFAt7IV" Content-Disposition: inline In-Reply-To: <1473771165-23804-1-git-send-email-lvivier@redhat.com> Subject: Re: [Qemu-devel] [PATCH v8 0/3] tests: add RTAS protocol List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laurent Vivier Cc: thuth@redhat.com, qemu-ppc@nongnu.org, qemu-devel@nongnu.org, groug@kaod.org --EDJsL2R9iCFAt7IV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 13, 2016 at 02:52:42PM +0200, Laurent Vivier wrote: > 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. >=20 > 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. >=20 > 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". I've applied the series to ppc-for-2.8, at least assuming no-one has any objections to this coming through my tree. >=20 > v8: > - exit if RTAS is not started with qemu-system-ppc64 >=20 > v7: > - don't allocate twice the memory for the RTAS call > - add "-machine pseries" in rtas-test to be sure to use=20 > the good machine type (with RTAS support). >=20 > v6: > - rebase > - remove useless include >=20 > v5: > - replace "ppc64" by "spapr" > - define and use qtest_spapr_vboot()/qtest_spapr_boot()/qtest_spapr_shutd= own() >=20 > v4: > - use qemu_strtoXXX() instead strtoXX(), > add a patch in the series to change all strtoXX() in qtest.c >=20 > v3: > - use mktimegm() instead of timegm() >=20 > v2: > - remove useless parenthesis, inline > - add a missing space in qrtas_call() prototype >=20 > Laurent Vivier (3): > qtest: replace strtoXX() by qemu_strtoXX() > libqos: define SPAPR libqos functions > tests: add RTAS command in the protocol >=20 > 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 | 41 ++++++++++++++++++++++++++ > 15 files changed, 322 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 >=20 --=20 David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson --EDJsL2R9iCFAt7IV Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBAgAGBQJX2MK5AAoJEGw4ysog2bOSOQUP/jYNa5gKopuisjztJzEy59w8 zGr5LJsLQURjBILfD8isjL8B02dl6mWbVxF7gE9E9KMvsAoJ8cXpMrUZQ2cqbEHZ XYQSbCoMrdbWaU60CcoDbd/uS6wBbo8u7+ZMbiu0yhpQuN6M2irXYVqLJHszDJBa 2gF8ZG4sf70C41+uoS9mUKpYFJ4aY2B5R0WSKgJGyru9L6g3e/VfeUQZWW830Ce6 BYxHl+E1V+I8U7zaZ5K3B8eo5ucA+Sfu34nMHpDM0YfqzEL1vOA6RPidI+RDqfwd grM0FG+YK81i2/6Wg7S7Nnxl/IXp1EXdNwZvLS/vd00tD4atWlTbiP9/B0zCwfln 7FrZTxC94q0CCkyxRh/sKT/nJ/opXw5JQ7Vwychb58+EmPrBNBN6lnsk37ZSnX/X trVTyiqhnufb1TGnOa4Dw9DYqy4SRs7LZjdNKdIYU7+FeHRinylWXdfprSscnDQr vDjbRbgawmxDauXkV20ggEfnal4/msle72X057/OVY76bfVWQzKktlbEHwidxdkv eyanTANptLhcy5EYj4y8DHC3Gws487gj5eoGtsvx0TFgaEaQqtnKBPK5u1NPy/O8 8Ci0YSkJH5m7hAgeahbGFvgChUJwTsM5kpVsHkFQjeQcbcYCmfgecRjX21c+1H7X LXH71i49oRN9PD8xuyR6 =lKV7 -----END PGP SIGNATURE----- --EDJsL2R9iCFAt7IV--