DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [RFC 0/2] vhost-user: add VHOST_USER_SET_QUEUE_NUM support
@ 2018-01-12 15:50 Maxime Coquelin
  2018-01-12 15:50 ` [dpdk-dev] [RFC 1/2] vhost-user: don't allocate new queue once device is running Maxime Coquelin
  2018-01-12 15:50 ` [dpdk-dev] [RFC 2/2] vhost-user: add support for VHOST_USER_SET_QUEUE_NUM Maxime Coquelin
  0 siblings, 2 replies; 3+ messages in thread
From: Maxime Coquelin @ 2018-01-12 15:50 UTC (permalink / raw)
  To: dev, tiwei.bie, yliu, jfreimann; +Cc: Maxime Coquelin

Hi this two-patches series first ensure that no queues will be allocated
while the device is in a running state, and then implements support for
VHOST_USER_SET_QUEUE_NUM vhost-user protocol request.

The goal is to prevent the device to either corrupt some guest memory
when disabling guest notifications, or to be stuck waiting forever for
queues not setup by the guest driver to be initialized, depending on QEMU
version.

One way to reproduce these kind of issues is to start a Windows guest with
setting more queue pairs in QEMU cmdline than vcpus.

I tagged this series as RFC, because the QEMU part [0], which contains
the spec update isn't acked yet.

[0]: http://lists.nongnu.org/archive/html/qemu-devel/2018-01/msg02648.html

Maxime Coquelin (2):
  vhost-user: don't allocate new queue once device is running
  vhost-user: add support for VHOST_USER_SET_QUEUE_NUM

 lib/librte_vhost/vhost_user.c | 50 ++++++++++++++++++++++++++++++++++++++++---
 lib/librte_vhost/vhost_user.h |  5 ++++-
 2 files changed, 51 insertions(+), 4 deletions(-)

-- 
2.14.3

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

end of thread, other threads:[~2018-01-12 15:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-12 15:50 [dpdk-dev] [RFC 0/2] vhost-user: add VHOST_USER_SET_QUEUE_NUM support Maxime Coquelin
2018-01-12 15:50 ` [dpdk-dev] [RFC 1/2] vhost-user: don't allocate new queue once device is running Maxime Coquelin
2018-01-12 15:50 ` [dpdk-dev] [RFC 2/2] vhost-user: add support for VHOST_USER_SET_QUEUE_NUM Maxime Coquelin

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