From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34157) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebhsH-0004KQ-TI for qemu-devel@nongnu.org; Wed, 17 Jan 2018 02:11:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ebhsE-0008Sl-NQ for qemu-devel@nongnu.org; Wed, 17 Jan 2018 02:11:05 -0500 Received: from mx1.redhat.com ([209.132.183.28]:48798) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ebhsE-0008Ru-Ek for qemu-devel@nongnu.org; Wed, 17 Jan 2018 02:11:02 -0500 References: <1516003315-17878-1-git-send-email-changpeng.liu@intel.com> <1516003315-17878-2-git-send-email-changpeng.liu@intel.com> <7711f157-5863-fc75-0730-a631362ffd06@redhat.com> From: Paolo Bonzini Message-ID: Date: Wed, 17 Jan 2018 08:10:50 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC v1] block/NVMe: introduce a new vhost NVMe host device to QEMU List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Liu, Changpeng" , "qemu-devel@nongnu.org" Cc: "Harris, James R" , "Busch, Keith" , "famz@redhat.com" , "stefanha@gmail.com" , "mst@redhat.com" On 17/01/2018 01:53, Liu, Changpeng wrote: >> Second, virtio-based vhost-user remains QEMU's preferred method for >> high-performance I/O in guests. Discard support is missing and that is >> important for SSDs; that should be fixed in the virtio spec. Are there > Previously I have a patch adding DISCARD support to virtio-blk, but I didn't find > the way using svn to update the spec patch, any git repository I can use > to update the virtio-blk spec ? I think I can pick up the feature again. There is https://github.com/oasis-tcs/virtio-spec. You should add support for all of: 1) a command that can do WRITE ZERO, WRITE ZERO with discard, and advisory DISCARD of a range of blocks. The command must be controlled by a new feature bit. 2) a configuration space element for discard granularity, controlled by the same feature bit as (1) 3) a feature bit that is 1 if WRITE ZERO with discard can actually discard parts that are aligned to the granularity Thanks, Paolo