qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/1] s390x: css: pong, channel subsystem test device
@ 2020-05-18 16:43 Pierre Morel
  2020-05-18 16:43 ` [PATCH v3 1/1] " Pierre Morel
  0 siblings, 1 reply; 3+ messages in thread
From: Pierre Morel @ 2020-05-18 16:43 UTC (permalink / raw)
  To: qemu-s390x; +Cc: thuth, frankja, david, cohuck, qemu-devel, pasic, borntraeger

This patch series presents a device to test the channel subsystem.

Currently the pong device does the following:
- on PONG_WRITE requests:
  read the CCW buffer, expect a string with an integer in the buffer.
  store the integer in a variable initialy initialized to zero.

- on PONG_READ requests:
  Store the value of the variable + 1 as a string in a buffer
  send back the buffer

- defines a Control Unit property of type CCW_PONG_CU_TYPE
  for the guest to recognize the PONG device when using a
  SENSE_ID command.

Pierre Morel (1):
  s390x: css: pong, channel subsystem test device

 default-configs/s390x-softmmu.mak |   1 +
 hw/s390x/Kconfig                  |   3 +
 hw/s390x/Makefile.objs            |   1 +
 hw/s390x/ccw-pong.c               | 134 ++++++++++++++++++++++++++++++
 include/hw/s390x/pong.h           |  48 +++++++++++
 5 files changed, 187 insertions(+)
 create mode 100644 hw/s390x/ccw-pong.c
 create mode 100644 include/hw/s390x/pong.h

-- 
2.25.1



Changelog:

from v2 to v3
- rebase to devel
- use device_class_set_props()

from v1 to v2
- use ccw_dstream_xxx_buf (Connie)
- adding a cu_type property
- testing the ccw.count
- conditional compiling for TEST_DEVICES (Connie, Thomas)
- suppress the device categorie (Connie ?)
- adding write callback and some funny protocol



^ permalink raw reply	[flat|nested] 3+ messages in thread
* [PATCH v3 0/1] s390x: css: pong, channel subsystem test device
@ 2020-02-20 11:59 Pierre Morel
  2020-02-20 11:59 ` [PATCH v3 1/1] " Pierre Morel
  0 siblings, 1 reply; 3+ messages in thread
From: Pierre Morel @ 2020-02-20 11:59 UTC (permalink / raw)
  To: qemu-s390x; +Cc: thuth, frankja, david, cohuck, qemu-devel, pasic

This patch series presents a device to test the channel subsystem.

Currently it only does the following:
- answer to WRITE requests by incrementing an integer stored as
  string in the data of a PONG_WRITE CCW command.
- send back the same buffer, with the incremented integer when
  receiving a PONG_READ CCW command.
- defines a Control Unit property.


Pierre Morel (1):
  s390x: css: pong, channel subsystem test device

 default-configs/s390x-softmmu.mak |   1 +
 hw/s390x/Kconfig                  |   3 +
 hw/s390x/Makefile.objs            |   1 +
 hw/s390x/ccw-pong.c               | 140 ++++++++++++++++++++++++++++++
 include/hw/s390x/pong.h           |  54 ++++++++++++
 5 files changed, 199 insertions(+)
 create mode 100644 hw/s390x/ccw-pong.c
 create mode 100644 include/hw/s390x/pong.h

-- 
2.17.0

Changelog:

v2 to v3:
- use device_class_set_props() instead to access
  the properties directly

v1 to v2:
- use ccw_dstream_xxx_buf (Connie)
- adding a cu_type property
- testing the ccw.count
- conditional compiling for TEST_DEVICES (Connie, Thomas)
- suppress the device categorie (Connie ?)
- adding write callback and some funny protocol



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-05-18 16:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-18 16:43 [PATCH v3 0/1] s390x: css: pong, channel subsystem test device Pierre Morel
2020-05-18 16:43 ` [PATCH v3 1/1] " Pierre Morel
  -- strict thread matches above, loose matches on Subject: below --
2020-02-20 11:59 [PATCH v3 0/1] " Pierre Morel
2020-02-20 11:59 ` [PATCH v3 1/1] " Pierre Morel

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).