All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/1] s390x: css: report errors from ccw_dstream_read/write
@ 2021-04-08 16:32 Pierre Morel
  2021-04-08 16:32 ` [PATCH v2 1/1] " Pierre Morel
  0 siblings, 1 reply; 8+ messages in thread
From: Pierre Morel @ 2021-04-08 16:32 UTC (permalink / raw)
  To: qemu-devel
  Cc: thuth, frankja, david, cohuck, richard.henderson, pasic,
	borntraeger, qemu-s390x, mst, pbonzini, marcandre.lureau,
	imbrenda

By checking the results of errors on SSCH in the kvm-unit-tests
We noticed that no error was reported when a SSCH is started
to access addresses not existing in the guest.
For exemple accessing 3G on a guest with 1G memory.

If we look at QEMU ccw_dstream_write/write functions we see that they
are often not checked for error in various places.

It follows that accessing an invalid address does not trigger a
subchannel status program check to the guest as it should.

Regards,
Pierre


Pierre Morel (1):
  s390x: css: report errors from ccw_dstream_read/write

 hw/char/terminal3270.c | 11 +++++--
 hw/s390x/3270-ccw.c    |  5 +++-
 hw/s390x/css.c         | 14 +++++----
 hw/s390x/virtio-ccw.c  | 66 ++++++++++++++++++++++++++++++------------
 4 files changed, 69 insertions(+), 27 deletions(-)

-- 
2.17.1

changelog:

from v1:

- handle_payload_3270_read, return CSS error on CSS access errors
  keep returning -EIO for other 3270 internal errors.
  (Connie)

- css_interpret_ccw, let CSS handle the residual count even on errors
  it is supposed to do it right.
  (Connie)



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

end of thread, other threads:[~2021-04-09 10:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-08 16:32 [PATCH v2 0/1] s390x: css: report errors from ccw_dstream_read/write Pierre Morel
2021-04-08 16:32 ` [PATCH v2 1/1] " Pierre Morel
2021-04-09  8:38   ` Halil Pasic
2021-04-09  8:49     ` Cornelia Huck
2021-04-09  9:55       ` Pierre Morel
2021-04-09 10:11         ` Cornelia Huck
2021-04-09 10:27   ` Cornelia Huck
2021-04-09 10:32     ` Pierre Morel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.