All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/6] aio-posix: split poll check from ready handler
@ 2021-12-02 15:33 ` Stefan Hajnoczi
  0 siblings, 0 replies; 18+ messages in thread
From: Stefan Hajnoczi @ 2021-12-02 15:33 UTC (permalink / raw)
  To: qemu-devel
  Cc: Hanna Reitz, Daniel P. Berrangé, Stefan Hajnoczi, Kevin Wolf,
	Richard W.M. Jones, Stefano Garzarella, Paolo Bonzini,
	Aarushi Mehta, Ronnie Sahlberg, Michael S. Tsirkin,
	Julia Suvorova, Juan Quintela, Philippe Mathieu-Daudé,
	Anthony Perard, Paul Durrant, Coiby Xu, qemu-block,
	Dr. David Alan Gilbert, xen-devel, Stefan Weil, Fam Zheng,
	Stefano Stabellini, Peter Lieven

v2:
- Cleaned up unused return values in nvme and virtio-blk [Stefano]
- Documented try_poll_mode() ready_list argument [Stefano]
- Unified virtio-blk/scsi dataplane and non-dataplane virtqueue handlers [Stefano]

The first patch improves AioContext's adaptive polling execution time
measurement. This can result in better performance because the algorithm makes
better decisions about when to poll versus when to fall back to file descriptor
monitoring.

The remaining patches unify the virtio-blk and virtio-scsi dataplane and
non-dataplane virtqueue handlers. This became possible because the dataplane
handler function now has the same function signature as the non-dataplane
handler function. Stefano Garzarella prompted me to make this refactoring.

Stefan Hajnoczi (6):
  aio-posix: split poll check from ready handler
  virtio: get rid of VirtIOHandleAIOOutput
  virtio-blk: drop unused virtio_blk_handle_vq() return value
  virtio-scsi: prepare virtio_scsi_handle_cmd for dataplane
  virtio: use ->handle_output() instead of ->handle_aio_output()
  virtio: unify dataplane and non-dataplane ->handle_output()

 include/block/aio.h             |  4 +-
 include/hw/virtio/virtio-blk.h  |  2 +-
 include/hw/virtio/virtio.h      |  5 +-
 util/aio-posix.h                |  1 +
 block/curl.c                    | 11 ++--
 block/io_uring.c                | 19 ++++---
 block/iscsi.c                   |  4 +-
 block/linux-aio.c               | 16 +++---
 block/nfs.c                     |  6 +--
 block/nvme.c                    | 51 ++++++++++++-------
 block/ssh.c                     |  4 +-
 block/win32-aio.c               |  4 +-
 hw/block/dataplane/virtio-blk.c | 16 +-----
 hw/block/virtio-blk.c           | 14 ++----
 hw/scsi/virtio-scsi-dataplane.c | 60 +++-------------------
 hw/scsi/virtio-scsi.c           |  2 +-
 hw/virtio/virtio.c              | 73 +++++++++------------------
 hw/xen/xen-bus.c                |  6 +--
 io/channel-command.c            |  6 ++-
 io/channel-file.c               |  3 +-
 io/channel-socket.c             |  3 +-
 migration/rdma.c                |  8 +--
 tests/unit/test-aio.c           |  4 +-
 util/aio-posix.c                | 89 +++++++++++++++++++++++++--------
 util/aio-win32.c                |  4 +-
 util/async.c                    | 10 +++-
 util/main-loop.c                |  4 +-
 util/qemu-coroutine-io.c        |  5 +-
 util/vhost-user-server.c        | 11 ++--
 29 files changed, 217 insertions(+), 228 deletions(-)

-- 
2.33.1




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

end of thread, other threads:[~2021-12-02 15:58 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-02 15:33 [PATCH v2 0/6] aio-posix: split poll check from ready handler Stefan Hajnoczi
2021-12-02 15:33 ` Stefan Hajnoczi
2021-12-02 15:33 ` [PATCH v2 1/6] " Stefan Hajnoczi
2021-12-02 15:33   ` Stefan Hajnoczi
2021-12-02 15:33 ` [PATCH v2 2/6] virtio: get rid of VirtIOHandleAIOOutput Stefan Hajnoczi
2021-12-02 15:33   ` Stefan Hajnoczi
2021-12-02 15:33 ` [PATCH v2 3/6] virtio-blk: drop unused virtio_blk_handle_vq() return value Stefan Hajnoczi
2021-12-02 15:33   ` Stefan Hajnoczi
2021-12-02 15:34 ` [PATCH v2 4/6] virtio-scsi: prepare virtio_scsi_handle_cmd for dataplane Stefan Hajnoczi
2021-12-02 15:34   ` Stefan Hajnoczi
2021-12-02 15:34 ` [PATCH v2 5/6] virtio: use ->handle_output() instead of ->handle_aio_output() Stefan Hajnoczi
2021-12-02 15:34   ` Stefan Hajnoczi
2021-12-02 15:34 ` [PATCH v2 6/6] virtio: unify dataplane and non-dataplane ->handle_output() Stefan Hajnoczi
2021-12-02 15:34   ` Stefan Hajnoczi
2021-12-02 15:49 ` [PATCH v2 0/6] aio-posix: split poll check from ready handler Richard W.M. Jones
2021-12-02 15:49   ` Richard W.M. Jones
2021-12-02 15:55   ` Stefan Hajnoczi
2021-12-02 15:55     ` Stefan Hajnoczi

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.