Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2794173imm; Mon, 10 Sep 2018 06:38:13 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZzHgzIXHpwWQpagfpPfJHMWB57UyrmQA/Qtw2/ZG7GMiumlWUNhjlHZsYt96MZu+P38k7A X-Received: by 2002:a17:902:b7c3:: with SMTP id v3-v6mr21980475plz.238.1536586693585; Mon, 10 Sep 2018 06:38:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536586693; cv=none; d=google.com; s=arc-20160816; b=cRZ40RnWqJPtqGWxDn35Adc43U3QbBk0l43xXkxXumeMnyBoa+0C9PqpqWounH4ZH6 Umg2CMhcRle4lDVEMC6jbaG0KOw0cnoKW9Ykf017v0sz6VdVUgXH3oAks6DZRELaMVXV H+W91o9HbburSV25gA+0VW6LbzG03PzSsbol77beYP2KEdoTQcRcvJ71zNncUz5hNqKU gjr5yMMtM7rEeW+zxscht+g6NFQPLmXr8Vojc78eRvusexeH8V27lcsiXGpzt3Y9oLRv 5Jg++vj4UYCxxc4czpRIfg6jRAJedc3OtC2PlZRTH7m97qVhZEGApPId43OqUWxAd7Nm hHCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=QCPnJf89eUkiPAWAYdQ1Lu7N3XJWJYg21lN5OPsluS4=; b=oZZyk5MmVoCKFNtoZmlPQCkmbkP/FZOFPtFnUYremtd1rbPLjrx/Fb0cwg6SZY0L7r yii+OKJZtqbfEPQojEpqfANo7pAUpcuTp9O3yjicDKLHIIDlUUDK4ivguutyGQoJ80sK L0E0bwx0wuJSAICT4V2mfEZWXhBUJRikp3koq8QfPbcUyidE8hWNfQrR7zc6BXnD+RWC Ls/8f54iiYEuug2p2Ev5NO5uRSNK965CvDSVpjtsk1ZwKOakSADYeVTh8ISS9vQ/r3vn gQcmNAaFNUL4mJh0OLYzWvtp4OUWIK5WBQ/d9SS8iZtz694kwN/AOYeZF6LVXMZS/od0 vubw== 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 l26-v6si16577118pfo.325.2018.09.10.06.37.27; Mon, 10 Sep 2018 06:38:13 -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 S1728797AbeIJSZE (ORCPT + 99 others); Mon, 10 Sep 2018 14:25:04 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:37270 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727970AbeIJSZE (ORCPT ); Mon, 10 Sep 2018 14:25:04 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E76F94021709; Mon, 10 Sep 2018 13:30:56 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-116-66.ams2.redhat.com [10.36.116.66]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8288E20290B1; Mon, 10 Sep 2018 13:30:56 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id BAF7316E28; Mon, 10 Sep 2018 15:30:50 +0200 (CEST) Date: Mon, 10 Sep 2018 15:30:50 +0200 From: Gerd Hoffmann To: Gert Wollny Cc: linux-kernel@vger.kernel.org, David Airlie , Tomeu Vizoso , Laurent Pinchart , Daniel Vetter Subject: Re: [PATCH v7] Add udmabuf misc device Message-ID: <20180910133050.tr2lozfmhimqs4c4@sirius.home.kraxel.org> References: <1536491489.4810.22.camel@collabora.com> <20180910083731.o4rryvermyighbtp@sirius.home.kraxel.org> <1536571118.4810.38.camel@collabora.com> <20180910105309.zmyoo5yhrmqg47md@sirius.home.kraxel.org> <1536579068.4810.68.camel@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1536579068.4810.68.camel@collabora.com> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Mon, 10 Sep 2018 13:30:56 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Mon, 10 Sep 2018 13:30:56 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'kraxel@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 10, 2018 at 01:31:08PM +0200, Gert Wollny wrote: > Am Montag, den 10.09.2018, 12:53 +0200 schrieb Gerd Hoffmann: > > > > By default qemu doesn't use memfd for backing storage, you have to > > explicitly configure qemu that way (see qemu commit log of the test > > branch): > > > > qemu-system-x86_64 -m 2G > > -object memory-backend-memfd,id=ram,size=2G > > -numa node,memdev=ram" > > Thanks, but that doesn't seem to help. Note the memory is specified twice, once with -m, once for the memory-backend-memfd object. The two must match of course (or, to be exact, the sum of all memory backends must match the total memory, but unless you want create a virtual numa machine there is no reason to have multiple memory-backends). > Are there any host kernel > configuration parameters or features that I should set (apart from > enabling udmabuf)? I'm not aware of any unusual parameters required. My config is based on rhel-7, then stripped down with localmodconfig, then enabled the bits I want in my test kernel. Oh, wait, CONFIG_MEMFD_CREATE could be the one. I guess I should add a Kconfig dependency. Even though udmabuf will build just fine without that (because memfd is basically shmem with some features on top) it doesn't buy you much if the memfd_create syscall is not available ... cheers, Gerd