qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] Introduce a new vhost-user-blk device and sample application
@ 2017-07-27  2:00 Changpeng Liu
  2017-07-27  2:00 ` [Qemu-devel] [PATCH 1/2] vhost-user-blk: introduce a new vhost-user-blk host device Changpeng Liu
  2017-07-27  2:00 ` [Qemu-devel] [PATCH 2/2] vhost-user-blk: introduce a vhost-user-blk sample application Changpeng Liu
  0 siblings, 2 replies; 13+ messages in thread
From: Changpeng Liu @ 2017-07-27  2:00 UTC (permalink / raw)
  To: qemu-devel; +Cc: pbonzini, stefanha, felipe, mst

Since vhost-user-scsi device has been part of Qemu, many users are still
using old virtio_blk device in Guest OS, compared with vhost-user-scsi,
vhost-user-blk can get better performance, because eliminate one SCSI_MOD
kernel module. This patch provides another option for uses to implement
their own I/O stacks.

Due to virtio_blk protocol limitation, Qemu virtio_blk frontend device can't
get Capacity/block size parameters through protocol, users must pass them
when started Qemu. Of course, we can extend exist vhost user messages to add
2 more messages(get_block_config/set_block_config) for vhost-user-blk device.
But for this patch, we choose append parameters to Qemu vhost-user-blk as the
solution.

Changpeng Liu (2):
  vhost-user-blk: introduce a new vhost-user-blk host device
  vhost-user-blk: introduce a vhost-user-blk sample application

 .gitignore                              |   1 +
 Makefile                                |   3 +
 Makefile.objs                           |   2 +
 configure                               |  11 +
 contrib/vhost-user-blk/Makefile.objs    |   1 +
 contrib/vhost-user-blk/vhost-user-blk.c | 695 ++++++++++++++++++++++++++++++++
 hw/block/Makefile.objs                  |   3 +
 hw/block/vhost-user-blk.c               | 352 ++++++++++++++++
 hw/virtio/virtio-pci.c                  |  55 +++
 hw/virtio/virtio-pci.h                  |  18 +
 include/hw/virtio/vhost-user-blk.h      |  46 +++
 11 files changed, 1187 insertions(+)
 create mode 100644 contrib/vhost-user-blk/Makefile.objs
 create mode 100644 contrib/vhost-user-blk/vhost-user-blk.c
 create mode 100644 hw/block/vhost-user-blk.c
 create mode 100644 include/hw/virtio/vhost-user-blk.h

-- 
1.9.3

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

end of thread, other threads:[~2017-08-01  0:10 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-27  2:00 [Qemu-devel] [PATCH 0/2] Introduce a new vhost-user-blk device and sample application Changpeng Liu
2017-07-27  2:00 ` [Qemu-devel] [PATCH 1/2] vhost-user-blk: introduce a new vhost-user-blk host device Changpeng Liu
2017-07-26 10:35   ` Stefan Hajnoczi
2017-07-27  0:29     ` Liu, Changpeng
2017-07-27  9:48       ` Stefan Hajnoczi
2017-07-27 10:08         ` Liu, Changpeng
2017-07-28 10:35           ` Stefan Hajnoczi
2017-07-29  3:21             ` Liu, Changpeng
2017-07-31 14:51               ` Stefan Hajnoczi
2017-07-31 15:41                 ` Paolo Bonzini
2017-08-01  0:10                   ` Liu, Changpeng
2017-07-27  2:00 ` [Qemu-devel] [PATCH 2/2] vhost-user-blk: introduce a vhost-user-blk sample application Changpeng Liu
2017-07-26 11:03   ` Stefan Hajnoczi

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