qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] vfio-ccw: support hsch/csch (QEMU part)
@ 2018-11-22 16:54 Cornelia Huck
  2018-11-22 16:54 ` [Qemu-devel] [PATCH 1/2] vfio-ccw: new capability chain support Cornelia Huck
  2018-11-22 16:54 ` [Qemu-devel] [PATCH 2/2] vfio-ccw: support async command subregion Cornelia Huck
  0 siblings, 2 replies; 8+ messages in thread
From: Cornelia Huck @ 2018-11-22 16:54 UTC (permalink / raw)
  To: Halil Pasic, Eric Farman, Farhan Ali, Pierre Morel
  Cc: linux-s390, kvm, qemu-s390x, qemu-devel, Alex Williamson,
	Cornelia Huck

[This is the QEMU part, git tree is available at
https://github.com/cohuck/qemu vfio-ccw-caps

The companion Linux kernel patches are available at
https://git.kernel.org/pub/scm/linux/kernel/git/kvms390/vfio-ccw.git vfio-ccw-caps]

Currently, vfio-ccw only relays START SUBCHANNEL requests to the real
device. This tends to work well for the most common 'good path' scenarios;
however, as we emulate {HALT,CLEAR} SUBCHANNEL in QEMU, things like
clearing pending requests at the device is currently not supported.
This may be a problem for e.g. error recovery.

This patch series makes use of the newly introduced async command region
to issue hsch/csch; if it is not present, continue to emulate hsch/csch,
as before.

[I'm not quite happy with how this async processing hooks up in css.c;
ideas welcome.]

Very lightly tested (I can interact with a dasd as before; I have not
found a reliable way to trigger hsch/csch in the Linux dasd guest driver.)

Cornelia Huck (2):
  vfio-ccw: new capability chain support
  vfio-ccw: support async command subregion

 hw/s390x/css.c                 |  27 ++++++--
 hw/vfio/ccw.c                  | 109 ++++++++++++++++++++++++++++++++-
 include/hw/s390x/s390-ccw.h    |   3 +
 linux-headers/linux/vfio.h     |   4 ++
 linux-headers/linux/vfio_ccw.h |  12 ++++
 5 files changed, 149 insertions(+), 6 deletions(-)

-- 
2.17.2

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

end of thread, other threads:[~2018-11-26 18:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-22 16:54 [Qemu-devel] [PATCH 0/2] vfio-ccw: support hsch/csch (QEMU part) Cornelia Huck
2018-11-22 16:54 ` [Qemu-devel] [PATCH 1/2] vfio-ccw: new capability chain support Cornelia Huck
2018-11-23 14:12   ` Pierre Morel
2018-11-22 16:54 ` [Qemu-devel] [PATCH 2/2] vfio-ccw: support async command subregion Cornelia Huck
2018-11-23 14:13   ` Pierre Morel
2018-11-26  9:58     ` Cornelia Huck
2018-11-26 18:01       ` Pierre Morel
2018-11-26 18:07         ` Cornelia Huck

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