From patchwork Thu May 24 10:33:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tiwei Bie X-Patchwork-Id: 919766 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=intel.com Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40s5NK4Xknz9s2L for ; Thu, 24 May 2018 20:34:25 +1000 (AEST) Received: from localhost ([::1]:37663 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLnZf-0003UR-9F for incoming@patchwork.ozlabs.org; Thu, 24 May 2018 06:34:23 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38387) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLnYl-0003SZ-Ts for qemu-devel@nongnu.org; Thu, 24 May 2018 06:33:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fLnYi-000536-QN for qemu-devel@nongnu.org; Thu, 24 May 2018 06:33:27 -0400 Received: from mga17.intel.com ([192.55.52.151]:6492) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fLnYi-00052U-H7 for qemu-devel@nongnu.org; Thu, 24 May 2018 06:33:24 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 May 2018 03:33:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,436,1520924400"; d="scan'208";a="61316243" Received: from debian.sh.intel.com ([10.67.104.203]) by orsmga002.jf.intel.com with ESMTP; 24 May 2018 03:33:21 -0700 From: Tiwei Bie To: mst@redhat.com, jasowang@redhat.com, qemu-devel@nongnu.org, virtio-dev@lists.oasis-open.org Date: Thu, 24 May 2018 18:33:30 +0800 Message-Id: <20180524103336.21233-1-tiwei.bie@intel.com> X-Mailer: git-send-email 2.17.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 192.55.52.151 Subject: [Qemu-devel] [PATCH 0/6] Support host notifiers in vhost-user X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: tiwei.bie@intel.com Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" This patch set depends on below patch set: http://lists.gnu.org/archive/html/qemu-devel/2018-05/msg05335.html More details about this patch set can be found from: http://lists.gnu.org/archive/html/qemu-devel/2018-04/msg01779.html http://lists.gnu.org/archive/html/qemu-devel/2018-04/msg04626.html Best regards, Tiwei Bie Tiwei Bie (6): vhost: allow backends to filter memory sections vhost-user: allow slave to send fds via slave channel vhost-user: introduce shared vhost-user state vhost-user: support registering external host notifiers libvhost-user: support host notifier vhost-user-bridge: support host notifier backends/cryptodev-vhost-user.c | 20 ++- contrib/libvhost-user/libvhost-user.c | 81 ++++++++++-- contrib/libvhost-user/libvhost-user.h | 32 +++++ docs/interop/vhost-user.txt | 38 ++++++ hw/block/vhost-user-blk.c | 22 +++- hw/scsi/vhost-user-scsi.c | 20 ++- hw/virtio/Makefile.objs | 2 +- hw/virtio/vhost-stub.c | 10 ++ hw/virtio/vhost-user.c | 182 +++++++++++++++++++++++--- hw/virtio/vhost.c | 9 +- include/hw/virtio/vhost-backend.h | 4 + include/hw/virtio/vhost-user-blk.h | 2 + include/hw/virtio/vhost-user-scsi.h | 2 + include/hw/virtio/vhost-user.h | 28 ++++ net/vhost-user.c | 44 +++++-- tests/vhost-user-bridge.c | 98 +++++++++++++- 16 files changed, 550 insertions(+), 44 deletions(-) create mode 100644 include/hw/virtio/vhost-user.h