From: "Philippe Mathieu-Daudé" <f4bug@amsat.org>
To: Alistair Francis <alistair.francis@xilinx.com>,
Peter Maydell <peter.maydell@linaro.org>,
Eric Blake <eblake@redhat.com>,
Paolo Bonzini <pbonzini@redhat.com>,
Kevin Wolf <kwolf@redhat.com>,
Markus Armbruster <armbru@redhat.com>,
Stefan Hajnoczi <stefanha@redhat.com>
Cc: "Philippe Mathieu-Daudé" <f4bug@amsat.org>,
qemu-devel@nongnu.org,
"Edgar E . Iglesias" <edgar.iglesias@xilinx.com>,
"Thomas Huth" <thuth@redhat.com>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>
Subject: [Qemu-devel] [RFC PATCH v2 0/4] sdbus: testing sdcards
Date: Wed, 3 Jan 2018 18:49:21 -0300 [thread overview]
Message-ID: <20180103214925.16677-1-f4bug@amsat.org> (raw)
Hi,
This RFC series intends to add a sdcard test in C using the libqos.
As I intended to explain previous series threads, I want a way to
access slave devices via their bus rather than the bus master (SDHCI
in this case).
This way I can be sure the slave behaves correctly, then I can test
the host master device.
After spending too long different devices, I came back to the original
idea than using QMP is the simplest way to do it.
- patch 1 adds a QMP command to run commands on the bus,
- patch 2 exposes the libqos sdbus API,
- patch 3 intends to implement the previous API for the QMP command
(the API is here since I tried few other devices before, as you can see in [1])
it is way broken and leaks lot of qobjects, but worked enough to verify the
previous series (SDCard: improve SPI, introduce new Specs)
- patch 4 is the WIP qtest I started to backport from my previous python qtests
Since v1:
- dropped Python
- prefix QMP command with 'x-debug-' (Kevin Wolf)
Regards,
Phil.
some pain shared here:
[1]: http://lists.nongnu.org/archive/html/qemu-devel/2018-01/msg00080.html
Based-on: 20180103212436.15762-26-f4bug@amsat.org
Philippe Mathieu-Daudé (4):
sdbus: add a QMP command to access a SDBus
libqos: add a sdbus API
libqos: implement sdbus QMP driver
tests: add some sdcard qtest
qapi-schema.json | 41 +++++++++++++
tests/libqos/sdbus.h | 45 ++++++++++++++
hw/sd/sdbus-qmp.c | 65 ++++++++++++++++++++
stubs/qmp_sdbus.c | 12 ++++
tests/libqos/sdbus-qmp.c | 130 ++++++++++++++++++++++++++++++++++++++++
tests/libqos/sdbus.c | 74 +++++++++++++++++++++++
tests/sdbus-test.c | 151 +++++++++++++++++++++++++++++++++++++++++++++++
hw/sd/Makefile.objs | 2 +-
stubs/Makefile.objs | 1 +
tests/Makefile.include | 3 +
10 files changed, 523 insertions(+), 1 deletion(-)
create mode 100644 tests/libqos/sdbus.h
create mode 100644 hw/sd/sdbus-qmp.c
create mode 100644 stubs/qmp_sdbus.c
create mode 100644 tests/libqos/sdbus-qmp.c
create mode 100644 tests/libqos/sdbus.c
create mode 100644 tests/sdbus-test.c
--
2.15.1
next reply other threads:[~2018-01-03 21:49 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-03 21:49 Philippe Mathieu-Daudé [this message]
2018-01-03 21:49 ` [Qemu-devel] [PATCH v2 1/4] sdbus: add a QMP command to access a SDBus Philippe Mathieu-Daudé
2018-01-05 15:11 ` Stefan Hajnoczi
2018-01-05 15:29 ` Eric Blake
2018-01-05 16:06 ` Philippe Mathieu-Daudé
2018-01-05 16:10 ` Eric Blake
2018-01-05 21:28 ` Philippe Mathieu-Daudé
2019-03-08 16:11 ` Philippe Mathieu-Daudé
2019-03-11 11:49 ` Thomas Huth
2019-03-11 13:43 ` Eduardo Habkost
2019-03-11 13:48 ` Peter Maydell
2019-03-11 15:52 ` Markus Armbruster
2018-01-03 21:49 ` [Qemu-devel] [RFC PATCH v2 2/4] libqos: add a sdbus API Philippe Mathieu-Daudé
2018-01-05 15:18 ` Stefan Hajnoczi
2018-01-03 21:49 ` [Qemu-devel] [RFC PATCH v2 3/4] libqos: implement sdbus QMP driver Philippe Mathieu-Daudé
2018-01-05 15:25 ` Stefan Hajnoczi
2018-01-03 21:49 ` [Qemu-devel] [RFC PATCH v2 4/4] tests: add some sdcard qtest Philippe Mathieu-Daudé
2018-01-05 15:31 ` Stefan Hajnoczi
2018-01-05 15:55 ` Philippe Mathieu-Daudé
2018-01-08 14:32 ` Stefan Hajnoczi
2018-01-03 22:17 ` [Qemu-devel] [RFC PATCH v2 0/4] sdbus: testing sdcards no-reply
2018-01-05 15:32 ` Stefan Hajnoczi
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=20180103214925.16677-1-f4bug@amsat.org \
--to=f4bug@amsat.org \
--cc=alistair.francis@xilinx.com \
--cc=armbru@redhat.com \
--cc=eblake@redhat.com \
--cc=edgar.iglesias@xilinx.com \
--cc=kwolf@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
--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).