From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 581391B168 for ; Fri, 12 Jan 2018 16:50:49 +0100 (CET) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id F05E1A49F3; Fri, 12 Jan 2018 15:50:48 +0000 (UTC) Received: from localhost.localdomain (ovpn-112-28.ams2.redhat.com [10.36.112.28]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3FDC817F36; Fri, 12 Jan 2018 15:50:30 +0000 (UTC) From: Maxime Coquelin To: dev@dpdk.org, tiwei.bie@intel.com, yliu@fridaylinux.org, jfreimann@redhat.com Cc: Maxime Coquelin Date: Fri, 12 Jan 2018 16:50:14 +0100 Message-Id: <20180112155016.8990-1-maxime.coquelin@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Fri, 12 Jan 2018 15:50:49 +0000 (UTC) Subject: [dpdk-dev] [RFC 0/2] vhost-user: add VHOST_USER_SET_QUEUE_NUM support X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jan 2018 15:50:50 -0000 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