Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp655549pxb; Tue, 2 Feb 2021 14:32:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJwzlHk4m0IXJ2avj/NoBLDo9pPpjV0prOP6pKDex1TlC9XLp/aluIhmwgDmBp4Qi0SB0mCr X-Received: by 2002:aa7:cac6:: with SMTP id l6mr248191edt.357.1612305132832; Tue, 02 Feb 2021 14:32:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612305132; cv=none; d=google.com; s=arc-20160816; b=pYCNSW40/NT5QlBYuewWNRHSy+ND81yYqWuZjMlXbaS5dm3X5QO9T2qPfL4lIKxw1m h5oH4yoEJCaBWyKzIphQ9OyF7vBsVfKqsPreQO6QY01e5wZZS4Co16DetSVJbArewZWK H1pAvyBspxd+Qe9kPtleebwi884wv7zy+hJRAZKB3W9OBqA96KwJAMm3gwTZNlYv5Q1t LJfcumqdfFztjS/WhQCm2CKVTDpgiX01kC+Ciyl0XeR2qOyKVHn3nOm4gLkx/bFSN75o RS62AauYKZSeh/LlatFwzaEMQu9MKcJx6bZNfZ+JIwiF3WVfVE0Hy/S75AfYCmDejtD3 fzfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/nqgkmwEUBwFXFP1lcLQvcaHEBrgIYTBqrD9vTkcUJA=; b=bSr5sQwj+JlcPPN8GKqBLJVL1yJjjWMX0Rw8+gt4EGzmRGqjxnymrmYx9Dpfv0tzHd NRbZwqL8aI9OIwJ9UOXD1rzoMILR8RLxI9MeHrGdEf16IZKcMW1rwH6NL8RhToEmtVPM qzFAhP1lutom8l5akGCyCgiQpWZcbQ70CvKAVhKodkEJxqkGtaGbCVml7NNaLZlwx5hj hiP3XeqWuEN7WdmC6fItQMEFdbIkBtfOFIr9s6eRL/QtVnG9z68u2XbMSLrOvnWnu0i+ ZdVGojGsNvycERGPz+rCipQm8sWQn0zQMQldXxRkbqSumizqURhd7i4NkNYninSduL98 epKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=glAake+f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ia15si128349ejc.443.2021.02.02.14.31.44; Tue, 02 Feb 2021 14:32:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=glAake+f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234969AbhBBPBy (ORCPT + 99 others); Tue, 2 Feb 2021 10:01:54 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:22411 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234565AbhBBPBU (ORCPT ); Tue, 2 Feb 2021 10:01:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612277989; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/nqgkmwEUBwFXFP1lcLQvcaHEBrgIYTBqrD9vTkcUJA=; b=glAake+fded5yG0kcJpK2cC/6BrqV5JMP6hqCzvrue6Qb8+4XtO7h4aTpsIG2w9OZbJ/IL Utg9MRorRP8kXaEuqpG+NNBZQC1LQM0+1VB/415XkLBkukmOOermTfgJfDIsMMjz2X4LMs lH9o4f3ass/E+XCH8z3tGeEWdc3uWwI= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-62-6s0xieiNOxuNgw70t6dwzA-1; Tue, 02 Feb 2021 09:59:44 -0500 X-MC-Unique: 6s0xieiNOxuNgw70t6dwzA-1 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 mimecast-mx01.redhat.com (Postfix) with ESMTPS id B155BAFA82; Tue, 2 Feb 2021 14:59:43 +0000 (UTC) Received: from localhost (ovpn-115-185.ams2.redhat.com [10.36.115.185]) by smtp.corp.redhat.com (Postfix) with ESMTP id 660F219C71; Tue, 2 Feb 2021 14:59:40 +0000 (UTC) Date: Tue, 2 Feb 2021 09:41:57 +0000 From: Stefan Hajnoczi To: Stefano Garzarella Cc: virtualization@lists.linux-foundation.org, Xie Yongji , "Michael S. Tsirkin" , Laurent Vivier , linux-kernel@vger.kernel.org, Max Gurtovoy , Jason Wang , kvm@vger.kernel.org Subject: Re: [PATCH RFC v2 09/10] vdpa_sim_blk: implement ramdisk behaviour Message-ID: <20210202094157.GB243557@stefanha-x1.localdomain> References: <20210128144127.113245-1-sgarzare@redhat.com> <20210128144127.113245-10-sgarzare@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="XOIedfhf+7KOe/yw" Content-Disposition: inline In-Reply-To: <20210128144127.113245-10-sgarzare@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --XOIedfhf+7KOe/yw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 28, 2021 at 03:41:26PM +0100, Stefano Garzarella wrote: > The previous implementation wrote only the status of each request. > This patch implements a more accurate block device simulator, > providing a ramdisk-like behavior. >=20 > Signed-off-by: Stefano Garzarella > --- > v2: > - used %zd %zx to print size_t and ssize_t variables in dev_err() > - removed unnecessary new line [Jason] > - moved VIRTIO_BLK_T_GET_ID in another patch [Jason] > - used push/pull instead of write/read terminology > - added vdpasim_blk_check_range() to avoid overflows [Stefan] > - use vdpasim*_to_cpu instead of le*_to_cpu > - used vringh_kiov_length() helper [Jason] > --- > drivers/vdpa/vdpa_sim/vdpa_sim_blk.c | 164 ++++++++++++++++++++++++--- > 1 file changed, 146 insertions(+), 18 deletions(-) Reviewed-by: Stefan Hajnoczi --XOIedfhf+7KOe/yw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEhpWov9P5fNqsNXdanKSrs4Grc8gFAmAZHmQACgkQnKSrs4Gr c8i2cwgAnejUJEOfV7h1JLqKBGsbMZ8G/rYq5Tpn2NYeHH+hHKUzJuYhhiy6A/dc ApoMhiK73jMGntzRVlchJ9EzLdG3mWp1fV7nDHb3jfSefPaMn/+sqHpRte3gAtp5 6qRPQg86qq2acmxReSwEuLADmwkQ9IEfUobw+9Eh8eaL8Fam79/brxgeAi+jyTUi Y6fHt/8yCLtpz+gp2FqWtmN0COcu6C6/I9yDwfIyhmn1jUtO7O8MUBDTEmOuY+TC 41AXprR3YIHGnEzaDphoqwmSN7NyWTmvQScwFA2HPDgVWe4VksizaICwg/Iz0IWD lND4h139qSBuLPJKWi/2ReukfLcOjw== =DBTx -----END PGP SIGNATURE----- --XOIedfhf+7KOe/yw--