mbox series

[v3,0/1] s390x: css: pong, channel subsystem test device

Message ID 1589820221-23538-1-git-send-email-pmorel@linux.ibm.com (mailing list archive)
Headers show
Series s390x: css: pong, channel subsystem test device | expand

Message

Pierre Morel May 18, 2020, 4:43 p.m. UTC
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