Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2495110imd; Fri, 2 Nov 2018 12:25:14 -0700 (PDT) X-Google-Smtp-Source: AJdET5dga73IXee97hLMq1cVBDmKuX2sfxowovOyQr/P9FmJaCONcsUsCpfSIJZIqAWEWM0pVYEg X-Received: by 2002:a62:3641:: with SMTP id d62-v6mr12954319pfa.97.1541186714811; Fri, 02 Nov 2018 12:25:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541186714; cv=none; d=google.com; s=arc-20160816; b=OncOAHET33uC14eYgrixHkkHUhS0KchWLXiYKrYkJJKOSf2TqN+A99cBctzRKoU+6+ iGVL4IZKYk/q5C94sM2Seye3J8ROJx5ILaSLGJ3tc4FQuff/ifz//jWItCO0DMuRlMzS R6BSrPpSZ/CVXYX9kxKdbWCX9inZ0HPH5SWH1VKt8nn9yiD1dliJov8nlLoZaoTfFQyx GNjHMsS+8z2l6XHB1ZT3ohoL+ipxugTbIVIF4ZCI+CjXs/rSMwVEMHeQIz807JzQRv+V CA1QAW1xsv2i8u7nTOk1Hp0LVg23u0l+GLSDQvjTS94okKTiODzBqLw+sETQRDI5ADl6 eIHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=sHROaZQioVujUwfiDfuDWEYXah4YUReYsbzcyrO8FNM=; b=GB0hmPoE5E+7E22Lc1XthPiwOnwB1zYMgfaJTw7D192ad6Kn7blcMmPK/QR26qKzwA O0f8XVcudg2gyd7FuKf8lLtqs4kSYABFzK1jkEzf0/fVN+UL9nbnT8GcsBnTIx4NMmjV ooiIvilrrilw/OnsfIvkL5O+qBd/WEmDF4zf6MPLhpN9Scpfag4WSgttNKQXhZExNn3F DGpGYbUYH+XJ4vi5DK6Vm9AC1W5HnujqIxzhHYFYCLOeSieIKD4NzJV0PyTz6i7XT2QL nJQfRxUxZVSwikZC5D2DUyipgU5CapxmihI1/bVlDvT9pY9TReNbJffuFGtQd/d0BJhc qxVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=D9N9SBJ8; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s11-v6si36537168pgf.427.2018.11.02.12.25.00; Fri, 02 Nov 2018 12:25:14 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=D9N9SBJ8; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728384AbeKCEcx (ORCPT + 99 others); Sat, 3 Nov 2018 00:32:53 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:33673 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728367AbeKCEcv (ORCPT ); Sat, 3 Nov 2018 00:32:51 -0400 Received: by mail-qk1-f195.google.com with SMTP id o89so4872341qko.0; Fri, 02 Nov 2018 12:24:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sHROaZQioVujUwfiDfuDWEYXah4YUReYsbzcyrO8FNM=; b=D9N9SBJ8i5hG2xoF8bn/V7CFWFcK/w/07UVlA/lU3EwqfOFEqC2950zOl6Ezejp3Hj MHsxHSGyGuQcbGjSZHQJSJi4GFlUoNl5dECDPZeyaFIqadDcYIk3vVolBjG0vaK5cR9w 9zsUK+NK6tLpIYz/r01Ic4RV0OfPLznsW/WmwVUbFilrlhF7u2LgZOzHStgYX266lxX0 6eAnrN1LjGoW34+kqtR1NsL1EFpQWeZWr3IrYV1E7WNk+z+BT+mbeYWJyhK0e8R568dY zylE+UW8HA82tLtn2+ZuopJCbtxFXWG934zfxHGWcqiu7CtN3KqUon6emuWlL+4D6BNu 5MDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sHROaZQioVujUwfiDfuDWEYXah4YUReYsbzcyrO8FNM=; b=QTwKjCRc5QQcFWQjlZnFtsX49DDEpSUJUp/MP086DGLp1XPVaxRJVes5XIHKYfMelo rEiKp1Ux/UaavD0Z0x1qNU9MbeI7Bz+Xth35cGK8lA+S/iDaZs8/SLctcH7D696UxYht uXQcDWjHMh9yiQ/tj39u48UpBGLG5fKTXYa3fNH98iqXpwZCT+HiyS8gAVwlf8RdAmqB 2WEqKSKNWF+J8L7wNUf3n4lAZ7LTOHU28xfS7YMJ6J2sluR1qPIRWvBHrIB6lJd24cUF 4x6lPfS34ta6BaFNKix+XLb2AUR/i7nxZSEg9NA2orh6qDfFJwhcIpl4+B4T68NSSAGP 3rMg== X-Gm-Message-State: AGRZ1gIR9HtwVe8MbH8Esh10m+p6aAlRjtrzf/NOoEZSEN15hNfU0nGN /JsbtvW0P4o4NBs46j1Rhh1xw+qLWPYu3eeiSEQ= X-Received: by 2002:a37:24c9:: with SMTP id k70mr11688820qkk.281.1541186667143; Fri, 02 Nov 2018 12:24:27 -0700 (PDT) MIME-Version: 1.0 References: <20181102182123.29420-1-v.mayatskih@gmail.com> <20181102182123.29420-2-v.mayatskih@gmail.com> <20181102142645-mutt-send-email-mst@kernel.org> In-Reply-To: <20181102142645-mutt-send-email-mst@kernel.org> From: Vitaly Mayatskih Date: Fri, 2 Nov 2018 15:24:13 -0400 Message-ID: Subject: Re: [PATCH 1/1] Add vhost_blk driver To: "Michael S . Tsirkin" Cc: Jason Wang , Paolo Bonzini , kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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?). Also other vhost work does the same with GET_ID, if that's matter. I'll fix the rest, thanks for review! -- wbr, Vitaly