From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50859) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKXcu-0004to-Ig for qemu-devel@nongnu.org; Wed, 29 Jul 2015 16:07:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZKXcr-00028a-Aw for qemu-devel@nongnu.org; Wed, 29 Jul 2015 16:06:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58598) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKXcr-00028S-5I for qemu-devel@nongnu.org; Wed, 29 Jul 2015 16:06:53 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id 808FC461C0 for ; Wed, 29 Jul 2015 20:06:52 +0000 (UTC) From: Marcel Apfelbaum Date: Wed, 29 Jul 2015 23:06:47 +0300 Message-Id: <1438200409-27381-1-git-send-email-marcel@redhat.com> Subject: [Qemu-devel] [PATCH V2 0/2] vhost-user: sync backend List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: marcel@redhat.com, jasowang@redhat.com, famz@redhat.com, mst@redhat.com To be used on top of: [PATCH 0/4] vhost-user: protocol updates https://lists.gnu.org/archive/html/qemu-devel/2015-07/msg03842.html v1 -> v2: - Addressed Michael S. Tsirkin's comments: - Prefer a white-list of supported features - Add a unit-test to show the problem we are trying to solve (run the unit-test before the patch and it will fail) Currently the vhost-user supported features are not evaluated. The way I see it, and please correct me, the best way to do this is to: 1. Get the backend features on vhost init. 2. Check them one by one (white-list) against all the currently supported virtio features. 3. All other code should remain the same. Marcel Apfelbaum (2): vhost-user: sync backend features tests/vhost-user: check vhost-user feature negotiation hw/virtio/vhost-user.c | 17 +++++++++++++++++ tests/vhost-user-test.c | 19 ++++++++++++++++--- 2 files changed, 33 insertions(+), 3 deletions(-) -- 2.1.0