Thread (1 message) 1 message, 1 author, 2018-11-02

Re: [PATCH 1/1] Add vhost_blk driver

From: "Michael S. Tsirkin" <mst@redhat.com>
Date: 2018-11-02 20:38:19

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 [off-list ref] wrote:
quoted
quoted
+     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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help