Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp209015pxa; Fri, 31 Jul 2020 09:57:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4E+e7aA41u2LjpmjH0tY9AFevgXXDUIGC4fHMwXeTHFpBbELJkJTPAtLhRF6g5BZI2G7Q X-Received: by 2002:a17:906:7f05:: with SMTP id d5mr4850098ejr.122.1596214654053; Fri, 31 Jul 2020 09:57:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596214654; cv=none; d=google.com; s=arc-20160816; b=mLn2FFuj7AHetX0fSTTyvAtrfWc88+KONDrQq63ohfnY6U6LLF71jv0s5h9eUYHqfM sVpA+XC6pCa8y6Xi4tFLGQ373B12Kkm6L7I/OIZdWzU5v4Sfpf6/RGRmyj1/dFnsT3CL Nm+EPXVPFO2BLVWHGUTi5WljfJLGIKxZ6HwJfHczKajME6aIZZc8q4y3PI70HWOKvnpy MBBS+TctEzdO0rW8V6/3YU6kEjyeR0IhDgGshThkcSB2oRSgJYqMHLcSZy/Px/bQZ++D KR4DF3spxF4L9LoBy4zo2Kp4WW0BT5tUX6S5Lqac2ApmZ1D/vZejVUBi5qv7iMbLJg9k z9Zg== 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 :dkim-signature; bh=Oxr5YTGpl3qCmnQ7jzJ1mzURsOCkDMcn0o5yKiLVjHk=; b=KAvXT+y3kT4PN5mPUrUsUGViiOganhHxqeHhPy5tpr51tOqdXx2O28N9Yc0mQxQo1t 2LV48lxRZzyNyEv+T7LzFRfhyQuNFTNhbOvTOJ4RzFFm07UYa+A9+VxaT+vfykp5tvua tkS6Exl8drDk7P08DjlqPfgETlcvFJHV4MT7xUxVRV78+lfy7gQGb4luyyc4BkT2F7Nt RRxabo19iUV7iCHWtISS5XCstVRswzkWH9diXixMzEY6VRr0hsW2G8HwOiU4xL7d+avH ph94gK40x175p/dS8VTXeqJUMfL8oOQhpxmXBvyekaFXUgBk3I82vGIZ1FIqxPlo1oul zNdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=gIRjHM+p; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y15si5766210edl.354.2020.07.31.09.57.11; Fri, 31 Jul 2020 09:57:34 -0700 (PDT) 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=@ziepe.ca header.s=google header.b=gIRjHM+p; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732481AbgGaQ4w (ORCPT + 99 others); Fri, 31 Jul 2020 12:56:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729944AbgGaQ4w (ORCPT ); Fri, 31 Jul 2020 12:56:52 -0400 Received: from mail-qk1-x744.google.com (mail-qk1-x744.google.com [IPv6:2607:f8b0:4864:20::744]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E28BBC061574 for ; Fri, 31 Jul 2020 09:56:51 -0700 (PDT) Received: by mail-qk1-x744.google.com with SMTP id g26so29437404qka.3 for ; Fri, 31 Jul 2020 09:56:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Oxr5YTGpl3qCmnQ7jzJ1mzURsOCkDMcn0o5yKiLVjHk=; b=gIRjHM+pqqI3fhGfhHetDCeS8wl+rUrVsc+3J0YFUBcz20bHIPwgLmOQY4NF2aH9r+ w29TYsuxRB8kX1umvuRt8rgqgg+zLqbG0T5mn7qENr3b9j9L/3gou6LceoOVF2sJrr5g 3cm8eJoDDyzXkAscEulakGjBhHgEyuCHQUHJbED5fbGyAMJ/Apcuv1UvzxpjL+krWgWk ecEppJXJ2FCKKi10ZOuySLhYaW23mxakZAkKdRqA6zovDr0sCMIMJIJtrK5//XBLInj6 8/b80D3rcP4xfOyT82ZZ6OGyIq5yD3dNJG+dHFnEFFjDH3e8HxkAQ6d8ByfXja3H4fzq a5Jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Oxr5YTGpl3qCmnQ7jzJ1mzURsOCkDMcn0o5yKiLVjHk=; b=YrCa2bkisBONrqbBjuz1bADTTZZBcMySmxM3H1A0quFQea/8M2u01VtcPprHPXRnWK o7/p16Qr1kJo9MU9Of36jKmM9Z+Jc7HofNBh4DYIr9Tz37ejfYcLiWNjvXT2CHPrGJcV ze95yWHx/gdYMUX1Oeu9bwxFG1m2BBYfjUTvu+284UGxFs2Z1GvwYISxRgRwmGG34nOx F4e2wNAzmeyrLWqCVBnJalBZ2Ddr7UvTv6eC3xtcR1DqdVVUZJoqQyLiq+C+XU0TGPb0 VOKpBbm9WKcqSrEtBDEqZXZFYK/4+xf27wArcJUVeHbnDm5qMH+wMVpKuRx+gG9MsdTe csyg== X-Gm-Message-State: AOAM530VX7BINc2T6hEtLK9VfRgSWIqqaPErQzFjyrmBfGfoUVadQedW omccHEJ+bTbQzro7GLWaTYoysw== X-Received: by 2002:a37:de15:: with SMTP id h21mr4809113qkj.77.1596214611012; Fri, 31 Jul 2020 09:56:51 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-156-34-48-30.dhcp-dynamic.fibreop.ns.bellaliant.net. [156.34.48.30]) by smtp.gmail.com with ESMTPSA id j16sm8994078qke.87.2020.07.31.09.56.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jul 2020 09:56:50 -0700 (PDT) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1k1YKv-0027Bk-Hr; Fri, 31 Jul 2020 13:56:49 -0300 Date: Fri, 31 Jul 2020 13:56:49 -0300 From: Jason Gunthorpe To: Steven Sistare Cc: Matthew Wilcox , "Eric W. Biederman" , Anthony Yznaga , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, mhocko@kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, x86@kernel.org, hpa@zytor.com, viro@zeniv.linux.org.uk, akpm@linux-foundation.org, arnd@arndb.de, keescook@chromium.org, gerg@linux-m68k.org, ktkhai@virtuozzo.com, christian.brauner@ubuntu.com, peterz@infradead.org, esyr@redhat.com, christian@kellner.me, areber@redhat.com, cyphar@cyphar.com Subject: Re: [RFC PATCH 0/5] madvise MADV_DOEXEC Message-ID: <20200731165649.GG24045@ziepe.ca> References: <20200730152250.GG23808@casper.infradead.org> <20200730171251.GI23808@casper.infradead.org> <63a7404c-e4f6-a82e-257b-217585b0277f@oracle.com> <20200730174956.GK23808@casper.infradead.org> <87y2n03brx.fsf@x220.int.ebiederm.org> <689d6348-6029-5396-8de7-a26bc3c017e5@oracle.com> <20200731152736.GP23808@casper.infradead.org> <9ba26063-0098-e796-9431-8c1d0c076ffc@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9ba26063-0098-e796-9431-8c1d0c076ffc@oracle.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 31, 2020 at 12:11:52PM -0400, Steven Sistare wrote: > > Your preservation-across-exec use-case might or might not need the > > VMA to be mapped at the same address. > > It does. qemu registers memory with vfio which remembers the va's in kernel > metadata for the device. Once the memory is registered with vfio the VA doesn't matter, vfio will keep the iommu pointing at the same physical pages no matter where they are mapped. Jason