From: Laurent Vivier <lvivier@redhat.com>
To: david@gibson.dropbear.id.au
Cc: thuth@redhat.com, lvivier@redhat.com, qemu-ppc@nongnu.org,
qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH v2 0/2] tests: add RTAS protocol
Date: Tue, 6 Sep 2016 10:23:01 +0200 [thread overview]
Message-ID: <1473150183-16407-1-git-send-email-lvivier@redhat.com> (raw)
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".
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 | 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
next reply other threads:[~2016-09-06 8:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-06 8:23 Laurent Vivier [this message]
2016-09-06 8:23 ` [Qemu-devel] [PATCH v2 1/2] tests: make pc_alloc_init/init_flags/uninit generic Laurent Vivier
2016-09-06 8:23 ` [Qemu-devel] [PATCH v2 2/2] tests: add RTAS command in the protocol Laurent Vivier
2016-09-06 9:45 ` [Qemu-devel] [Qemu-ppc] " Greg Kurz
2016-09-06 9:02 ` [Qemu-devel] [PATCH v2 0/2] tests: add RTAS protocol no-reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1473150183-16407-1-git-send-email-lvivier@redhat.com \
--to=lvivier@redhat.com \
--cc=david@gibson.dropbear.id.au \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=thuth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).