Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2826266pxb; Tue, 12 Oct 2021 14:23:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwIaieoRjlgiXg0uYI3hDD8VlUydyYlgjWbor57LH1Q7fzH8bEBcMzcI+NIgKn26+JWA4U0 X-Received: by 2002:a17:907:7b8d:: with SMTP id ne13mr20058815ejc.269.1634073814972; Tue, 12 Oct 2021 14:23:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634073814; cv=none; d=google.com; s=arc-20160816; b=b9VCE2ETHXfOacNeK5RvASocH1HkI0QsrjrpRZvvjrKlZktEDtebRdHMwL1yuSMlKy mJVOeoqh+MdecGi2AdQWEiNuKmSRQWZpR2cBy5vyja5ID5T3YRxM9gXYe1iOFEvjJHaM TVr2HQFu99a5eEWUZTn5BdcwxjPOVfT42lr43xp0d77s5TKAieWX6a7HJsbkgj3UKJBE 8ZYXhaWYbwyltWKK0+Iv0Pp6L3qzHy1B7b0qrNsND0zxbSjdUxeoSgIDVug0aJlX1FJQ u5xWQwnTTw8zEEV3bU9JLz4NQSPpj1gSBQfBN83F+/a028/ISk4QDMqt9rQIPFhclFLC H9yw== 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=9gTeGrsi2W3a53jAeuwmK0vZqpG0/BE4xVwWIpQUl1c=; b=bsmTQ5gd61ZF3PNVjx0WVSVgHaK850/qQauH7XjYKv9JTswzNPHRWTN2NzObMxKSkA QZ/tCR5sBhpO5HjntJLgtGaB4M4oJE7wed7tT2wZPKkAiroeOkS3t4LNJwo/kQd46nKG 461lltSUZ98jigSs5dugOkLlQrS8AxCPHrF4bUZOGUxErPiF2AZkoVnQsV+3h3xUiybM eVjHUiJDfMaNLT1bC0cTtlabUCFrOoMJ8gbmXgZymkxyx1TV4+J268j3m15bmIPJiBT3 cMa81H6fujBj3X22aeAQryj/pCDdAJpHyypwHOnGdrUDljn8NtuiEL3dSK2JNxj1vYXG y61Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=VFvYUD6X; 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 hc43si26881496ejc.189.2021.10.12.14.23.11; Tue, 12 Oct 2021 14:23: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=@redhat.com header.s=mimecast20190719 header.b=VFvYUD6X; 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 S235653AbhJLVUv (ORCPT + 99 others); Tue, 12 Oct 2021 17:20:51 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:24392 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235549AbhJLVUm (ORCPT ); Tue, 12 Oct 2021 17:20:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1634073519; 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=9gTeGrsi2W3a53jAeuwmK0vZqpG0/BE4xVwWIpQUl1c=; b=VFvYUD6X4jylMsPj90lcrGlObpw8PiNAXuUiCuaf/VuF9buckFYNipcHk1Otbx9DNdBxWX 09MafsM8+pZ6eCoPVxwFSIkj94yNDD0h3K6z6iaM41lmwINCVX6gkHE0Avn8G2FR6kZhNP iEUSFPEMzweYUQzGGLK5BOfQXVkLiGE= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-577-p8pU0SRbOkyIPpOm3NcyIg-1; Tue, 12 Oct 2021 17:18:38 -0400 X-MC-Unique: p8pU0SRbOkyIPpOm3NcyIg-1 Received: by mail-wr1-f71.google.com with SMTP id f1-20020a5d64c1000000b001611832aefeso309771wri.17 for ; Tue, 12 Oct 2021 14:18:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=9gTeGrsi2W3a53jAeuwmK0vZqpG0/BE4xVwWIpQUl1c=; b=6UB/TtuL2nnn12CggKVvzAg2kMwIVCHQB9AN1FNYPSJei3t+FFkiDw0f180jIxneaN hwHXUUhRkNaYZN1ce22Z7NQA0JhtSJbcnshVXNJedUzosVzRsi5Wughm3GEp2BszWVmK 1sZa8V7nDg+bqXr9dg499WzOaYUpTmmJv8ddwD7Nf46pkUHEKIboWfjYsvuSaHZE1V+3 Jg/3IVHG8TSX/t0Ut01qxOdVS+fT6IcU7hN64Z2IZElnh+0w09OfCvthcgFhUyRaioGk LdcAeZl1So6g4IgkratjV7OFv5oO7+tKsvs4zXKUhSCwWqHTZDEWPO5Yu4Wzoy+V/0Z+ KdfQ== X-Gm-Message-State: AOAM532X0xjTdLIBX75RnunOuGEpWKwQ+Zsk7VUdVdCFHfuhstaSqcSC oRLixeyVPrAATThmcCqSmWO74QDnTC/glygvrM+aaK3nSpht+1YLiv8XbeKI2taCanbFX//e3j6 Tz9/BMr1eU2q+XjO6kISj8VKn X-Received: by 2002:adf:a502:: with SMTP id i2mr33893030wrb.311.1634073516964; Tue, 12 Oct 2021 14:18:36 -0700 (PDT) X-Received: by 2002:adf:a502:: with SMTP id i2mr33892998wrb.311.1634073516828; Tue, 12 Oct 2021 14:18:36 -0700 (PDT) Received: from redhat.com ([2.55.159.57]) by smtp.gmail.com with ESMTPSA id p18sm11430249wrn.41.2021.10.12.14.18.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Oct 2021 14:18:36 -0700 (PDT) Date: Tue, 12 Oct 2021 17:18:28 -0400 From: "Michael S. Tsirkin" To: Dan Williams Cc: Andi Kleen , Kuppuswamy Sathyanarayanan , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Peter Zijlstra , Andy Lutomirski , Bjorn Helgaas , Richard Henderson , Thomas Bogendoerfer , James E J Bottomley , Helge Deller , "David S . Miller" , Arnd Bergmann , Jonathan Corbet , Paolo Bonzini , David Hildenbrand , Andrea Arcangeli , Josh Poimboeuf , Peter H Anvin , Dave Hansen , Tony Luck , Kirill Shutemov , Sean Christopherson , Kuppuswamy Sathyanarayanan , X86 ML , Linux Kernel Mailing List , Linux PCI , linux-alpha@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, sparclinux@vger.kernel.org, linux-arch , Linux Doc Mailing List , virtualization@lists.linux-foundation.org, "Reshetova, Elena" Subject: Re: [PATCH v5 12/16] PCI: Add pci_iomap_host_shared(), pci_iomap_host_shared_range() Message-ID: <20211012171628-mutt-send-email-mst@kernel.org> References: <20211009003711.1390019-1-sathyanarayanan.kuppuswamy@linux.intel.com> <20211009003711.1390019-13-sathyanarayanan.kuppuswamy@linux.intel.com> <20211009053103-mutt-send-email-mst@kernel.org> <0e6664ac-cbb2-96ff-0106-9301735c0836@linux.intel.com> <9302f1c2-b3f8-2c9e-52c5-d5a4a2987409@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 12, 2021 at 02:14:44PM -0700, Dan Williams wrote: > Especially in this case where the virtio use case being > opted-in is *already* in a path that has been authorized by the > device-filter policy engine. That's a good point. Andi, how about setting a per-device flag if its ID has been allowed and then making pci_iomap create a shared mapping transparently? -- MST