Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4980205ybc; Fri, 15 Nov 2019 12:58:52 -0800 (PST) X-Google-Smtp-Source: APXvYqy7atrJMpJS4Pha4aztCtROzw7M7UBK6lQMMtYpE5CPsoKtGP1BGBxs6PKYeY142oJIG9qG X-Received: by 2002:adf:d1a3:: with SMTP id w3mr19076245wrc.9.1573851532075; Fri, 15 Nov 2019 12:58:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573851532; cv=none; d=google.com; s=arc-20160816; b=NpXJS5+gdKCnzTHLg0rOIRz1ZOBhncZL/BYk3RoM/Gh3vbvAXpZloKETr6Ubwp0C/f WkFL/M5McjN6ySEskFmaOjkjK0wcZ1zTLynRzUeXceURh5rH9UwvqfJk/EX3dN3RiWEm eo43sQ8WLYV9z2TK6pTDZrrBCxcvJkj9PwbEGyHeFkX3Gulu5FW4+OIaOZFIEUbtKJag rY5f2j0qv0+g717smByofUPLHKSW8z4GzsWFHXjr/KSx8anNRDRjtwnLmsZzIbjb2Hv0 qDjTVXD3qgbKyQLAZbKvPtHlxUSJu5fbv1j6vN0ODlPNvyf/MQnPc5P84B5rvzk2ai7g LDLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=dtdHS3hNTi80U2lS2ee30H71MuBUQr4CKOdjoMCLxHw=; b=dwmhS/ovLIRzkLrQ0dERxP8KO0WYWKev4OZfqm9iyjcKLb04nJe/B8XLB5RJe5RsFp rzkLlFNOFnPFfx5DnoM7MlTqpwN9umukI4JZSce2OwLR+5caPUOmFuBCesIwuR2Nqx2+ XJzEIk4yCa8Ymv8+1WlIM2xXIcTeiJg5v97k4z9HsMEzKyGswgnwT56g0Q9rndgPUT3K ANhign0goaUOSZ24TFyJjWXzohOxAb4vluabKi7wLixOxk0zNguUSpIxYsK0QyEN8Yr9 7/Zd/WW/sdk5IwdndzSUhztoj6FIWNLqeUOZxGywjuFv6SEpyCBqEl3KeMWOd4tcKK8T gkSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WRGzE+YF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l4si6666890edr.286.2019.11.15.12.58.27; Fri, 15 Nov 2019 12:58:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WRGzE+YF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727002AbfKOU50 (ORCPT + 99 others); Fri, 15 Nov 2019 15:57:26 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:22300 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726974AbfKOU5Z (ORCPT ); Fri, 15 Nov 2019 15:57:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573851444; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dtdHS3hNTi80U2lS2ee30H71MuBUQr4CKOdjoMCLxHw=; b=WRGzE+YFKGiU18ms4lC/mGz8OsQrnhybPNkR8sIT7Y4KV0FKGocNiBRQ52hHxaRMcJonRh q9khdqgVuCuE70kAJYNmC6A6n2elIsxXFX2YPH9xMmWVY4y+gAS012SEAC6HToZzgeZMtz +NKddKRud1ZeSpfn9HXd2q4T9k9j/tM= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-378-dPLdeRlwNHqUMrx2aGfu2A-1; Fri, 15 Nov 2019 15:57:21 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 829861005502; Fri, 15 Nov 2019 20:57:20 +0000 (UTC) Received: from horse.redhat.com (unknown [10.18.25.35]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0FECD28DF4; Fri, 15 Nov 2019 20:57:15 +0000 (UTC) Received: by horse.redhat.com (Postfix, from userid 10451) id 9D71E220C26; Fri, 15 Nov 2019 15:57:14 -0500 (EST) From: Vivek Goyal To: virtio-fs@redhat.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: vgoyal@redhat.com, stefanha@redhat.com, dgilbert@redhat.com, miklos@szeredi.hu Subject: [PATCH 0/4] [RFC] virtiofs: Add a notification queue Date: Fri, 15 Nov 2019 15:57:01 -0500 Message-Id: <20191115205705.2046-1-vgoyal@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-MC-Unique: dPLdeRlwNHqUMrx2aGfu2A-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, These are RFC patches for adding a notification queue to allow sending notifications from host to guest. It also adds support for blocking remote posix locks using the newly introduced notification queue. These patches apply on top of 5.4-rc8 plus following patch series I had posted a while back. https://lkml.org/lkml/2019/10/30/493 These changes require virtio spec changes as well. I have yet to do that. Thanks Vivek Vivek Goyal (4): virtiofs: Provide a helper function for virtqueue initialization virtiofs: Add an index to keep track of first request queue virtiofs: Add a virtqueue for notifications virtiofs: Support blocking posix locks (fcntl(F_SETLKW)) fs/fuse/virtio_fs.c | 328 ++++++++++++++++++++++++++++++--- include/uapi/linux/fuse.h | 7 + include/uapi/linux/virtio_fs.h | 5 + 3 files changed, 310 insertions(+), 30 deletions(-) --=20 2.20.1