Received: by 10.213.65.68 with SMTP id h4csp2257970imn; Sun, 8 Apr 2018 23:46:45 -0700 (PDT) X-Google-Smtp-Source: AIpwx49sXC9uIZnGJL+0bq/a0zkMsd4aMHFW5TjoEIze8WURh7BQsjSxeFXuDps+S7IJEKa6FWMy X-Received: by 2002:a17:902:a985:: with SMTP id bh5-v6mr3475555plb.0.1523256405205; Sun, 08 Apr 2018 23:46:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523256405; cv=none; d=google.com; s=arc-20160816; b=gaKJNX0qR8APZ/KOWg+ikvB2pMByOhMVmOhsTXi1Yp9glsejh5vc+0cXTlpgyFFyFE P1YTnLgD93cJBUc1XDl1H4z/3+DbRahD2X2x2M+jtyqo1bzp2ZcXzxEY2JWegNkT1Q80 KKoK7qiALWvm4t8oDEJloN0EnfSrOj7nfJ0AGQb0lW+Z+TrSYH0yNik9bnnQuz4OqUPV 1c1sSSQv0hChcOmH4W7+TzAdNyAnViS7SLCGIAtTRtoB5lXfFU+nPy/BEFi2o80venwq +Jvy7oiNcbqBQK9cC9RhFkfPsML/zL4FnKCVuC/FEyQYI2KVn6tQmXYSQFPvImypWsMA +Omw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :arc-authentication-results; bh=eOrJWNDLx2kUum+mylOURsaPWhufEWbI8dSi3JutOng=; b=ONCBJqLh9OVdEXq67mwN5a1M4ozEUdx1V4eXkGVfOy1sqO1mI6B3/rtdsP2B8yPxqL t4/m9kvJGr+y8lMnbUv/4InafDyMWZlLLoEjpF8fAIXE8HMHMckBSksZY0X4pa2myNTF GvcxUX4g1w9Tg+UvWkiOZCU1GJmlTmfIPEnT1zFAfg+baDYpTUnklaVRFuNBZo/w9+zb uHIRvxZyVvkHKBTdefjIcZLv4mBqtEstFbZqjh+x7uB8jCLWqpHKngPeQmFq8+rb/b8w gzqRq/bSCjQdewITRTvcxE+n57FfX9yPgUPVctQt29yD1LSSRJiYSLNLVz2nvBg9G9s1 vG5A== 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 b1-v6si15739629pll.57.2018.04.08.23.46.08; Sun, 08 Apr 2018 23:46:45 -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 S1751958AbeDIGmx (ORCPT + 99 others); Mon, 9 Apr 2018 02:42:53 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:46200 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750925AbeDIGmv (ORCPT ); Mon, 9 Apr 2018 02:42:51 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D070A8182D11; Mon, 9 Apr 2018 06:42:50 +0000 (UTC) Received: from [10.36.116.74] (ovpn-116-74.ams2.redhat.com [10.36.116.74]) by smtp.corp.redhat.com (Postfix) with ESMTP id D1D10D7E06; Mon, 9 Apr 2018 06:42:35 +0000 (UTC) Subject: Re: [Qemu-devel] [RFC] qemu: Add virtio pmem device To: Stefan Hajnoczi , Pankaj Gupta Cc: kwolf@redhat.com, haozhong zhang , jack@suse.cz, xiaoguangrong eric , kvm@vger.kernel.org, riel@surriel.com, linux-nvdimm@ml01.01.org, mst@redhat.com, ross zwisler , linux-kernel@vger.kernel.org, qemu-devel@nongnu.org, hch@infradead.org, pbonzini@redhat.com, stefanha@redhat.com, niteshnarayanlal@hotmail.com, marcel@redhat.com, imammedo@redhat.com, dan j williams , nilal@redhat.com References: <20180405104834.10457-1-pagupta@redhat.com> <20180405104834.10457-4-pagupta@redhat.com> <416823501.16310251.1522930166070.JavaMail.zimbra@redhat.com> <20180409032601.GA1648@stefanha-x1.localdomain> From: David Hildenbrand Organization: Red Hat GmbH Message-ID: <36218ea8-5fa8-e670-104d-616da790a333@redhat.com> Date: Mon, 9 Apr 2018 08:42:35 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180409032601.GA1648@stefanha-x1.localdomain> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Mon, 09 Apr 2018 06:42:50 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Mon, 09 Apr 2018 06:42:50 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'david@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09.04.2018 05:26, Stefan Hajnoczi wrote: > On Thu, Apr 05, 2018 at 08:09:26AM -0400, Pankaj Gupta wrote: >>> Will this raw file already have the "disk information header" (no idea >>> how that stuff is called) encoded? Are there any plans/possible ways to >>> >>> a) automatically create the headers? (if that's even possible) >> >> Its raw. Right now we are just supporting raw format. >> >> As this is direct mapping of memory into guest address space, I don't >> think we can have an abstraction of headers for block specific features. >> Or may be we can get opinion of others(Qemu block people) it is at all possible? > > memdev and the block layer are completely separate. The block layer > isn't designed for memory-mapped access. > Not questioning if this is the right thing to do now. I was wondering if we could expose any block device in the future as virtio-pmem. And I think with quite some work it could be possible. As you said, we will need some buffering. Maybe userfaultfd and friends (WP) could allow to implement that. > I think it makes sense to use memdev here. If the user wants a block > device, they should use an emulated block device, not virtio-pmem, > because buffering is necessary anyway when an image file format is used. > > Stefan > -- Thanks, David / dhildenb