From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael S. Tsirkin" Subject: Re: [PATCH 1/1] Add vhost_blk driver Date: Fri, 2 Nov 2018 16:38:19 -0400 Message-ID: <20181102163809-mutt-send-email-mst@kernel.org> References: <20181102182123.29420-1-v.mayatskih@gmail.com> <20181102182123.29420-2-v.mayatskih@gmail.com> <20181102142645-mutt-send-email-mst@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Jason Wang , Paolo Bonzini , kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org To: Vitaly Mayatskih Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Fri, Nov 02, 2018 at 03:24:13PM -0400, Vitaly Mayatskih wrote: > On Fri, Nov 2, 2018 at 2:36 PM Michael S. Tsirkin wrote: > > > > + if (type == VIRTIO_BLK_T_GET_ID) { > > > + char s[] = "vhost_blk"; > > > > Isn't this supposed to return the serial #? > > Yes, that gets a bit tricky here... Disk serial number is specified in > QEMU command line parameters, so it needs to be passed to vhost_blk > when qemu attaches the disk backend. That can be done (now? in a > following incremental patch?). I'add an ioctl now. > Also other vhost work does the same with GET_ID, if that's matter. > > I'll fix the rest, thanks for review! > > -- > wbr, Vitaly