Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2561742imd; Fri, 2 Nov 2018 13:38:57 -0700 (PDT) X-Google-Smtp-Source: AJdET5dmD5NxopDvFHoAoZBYONDJqtSPvBjcglvm6D2UUotIj6nernT4UsEISgTN6JKEl4eAKyrp X-Received: by 2002:a17:902:166:: with SMTP id 93-v6mr12852279plb.68.1541191137077; Fri, 02 Nov 2018 13:38:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541191137; cv=none; d=google.com; s=arc-20160816; b=elryNG/pNRMuGxbbcbeGhbGCnPYGIhuWnV3cpZxtB1778MKtiys3ki63gMjwqIyC2O T7ur0qOx9PtrIOxtlDg6m8MZjwWrspDhPtYpUE2raoH3k7iD6BRKBb35GGqqPnihQRk5 DOP0fd4xbiwE0VL2dk2tUScpSMGvBZ6kjVEMRAdi2b3euwQIm2j+oWSkv6NipSkQounK 1XToCliD0MU65I98icdE1mO1UFB4POL8qE6gnA05WDbMQWfurnKRy/6fbt5/hxiOhZ03 PDXUl6Gp91ERWFRj9X/kBBDDEWMRofbu3whTJY3eogMJR/bzgDqiiUTkjo2ZGcSKYuqF G7qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=6ToAxmqhpGrj8PpS30Sh2kd4f2ocITdTA4pvolpEC10=; b=N9X/bTbagktupEVV0TfjlkQG5zNLIbkifwlMQ39HIWA2V7nfY0ZKzwTVmUFhy/ZVBE SGTDTd8aQSFvVecmZyrjPQRWsDklbZw5sc/u0gM+Zka+Bd9UGm9NJvByRD1IIa3mvd1g oa12wpaLBRSitSH6xq3EfVEAFG1GihzUlk7wq0zi4jNpOPS+szD+9ZnnPnh/HgsezJ2Y FLzxsBF0hj02hHlZscefvOYFR1ZP+TXXOQ4WRD1qtCy4b/WCC1NK2OdSfZHUmT1v5BPN mRaP6al3XkIlMZfhH75OjBXNnXikQBFW4j53viGqrithh6Wvl4XScs9W2buNEOYUnQjH t6nw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 u8-v6si8092609plm.138.2018.11.02.13.38.41; Fri, 02 Nov 2018 13:38:57 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726729AbeKCFq5 (ORCPT + 99 others); Sat, 3 Nov 2018 01:46:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45562 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726091AbeKCFq4 (ORCPT ); Sat, 3 Nov 2018 01:46:56 -0400 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 mx1.redhat.com (Postfix) with ESMTPS id E53454DD49; Fri, 2 Nov 2018 20:38:20 +0000 (UTC) Received: from redhat.com (ovpn-124-238.rdu2.redhat.com [10.10.124.238]) by smtp.corp.redhat.com (Postfix) with SMTP id 35337450E; Fri, 2 Nov 2018 20:38:20 +0000 (UTC) Date: Fri, 2 Nov 2018 16:38:19 -0400 From: "Michael S. Tsirkin" To: Vitaly Mayatskih Cc: Jason Wang , Paolo Bonzini , kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] Add vhost_blk driver 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 Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Fri, 02 Nov 2018 20:38:21 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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