From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 23EC3C433EF for ; Tue, 12 Oct 2021 21:18:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0A6F2610CB for ; Tue, 12 Oct 2021 21:18:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235641AbhJLVUq (ORCPT ); Tue, 12 Oct 2021 17:20:46 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:51025 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235562AbhJLVUm (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-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-575-Il7CWBvXOpaVemk75ty1qw-1; Tue, 12 Oct 2021 17:18:38 -0400 X-MC-Unique: Il7CWBvXOpaVemk75ty1qw-1 Received: by mail-wr1-f69.google.com with SMTP id 75-20020adf82d1000000b00160cbb0f800so295491wrc.22 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=S/zFoMq8GA2lobY2pjPqmdDYj2dIuslM8haMLyTMQbiCVzy9kUP2P/kcflXA9OsE8r gKUkkE0yE2RrIF83NIk9sdGBUIXdcQxijfcbFuVEggEthYtuR+MxTlYSpZrrNMkC0jVk FeU3nJMsU0vzabOMlsrVZ6UG3e1vXhYkqpp+5lEFzdwvrljUtMsQzLIsuL+e5456ntrN N2RNZAL39HaxZBLbEcuZvJLM5lVeev4VEucoDu8Rc52gnY8ydFIZWX9d/i9v4DxCM4Mt Nut7BWsmFkaKAuEDU9Uk5upQyuWq4ZaQ9vwJKKFwcb9en++KCGR96MH0OXz0etejhZcL 5tLw== X-Gm-Message-State: AOAM530swlIo5S04p45kc9bwVpOVefcwgnxmhlAfzr5GTuxG6MygRu3p +YRkBkIBAj6QZE0IbqkiRM+dxyJS3itu0M+kyX0O+qMPH+7yZoF4itGkZbGt3cmofCzLVaw6gBb NaWJA+BkdvaCk3I7MYInNVA== X-Received: by 2002:adf:a502:: with SMTP id i2mr33893019wrb.311.1634073516961; Tue, 12 Oct 2021 14:18:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjGgSxkLoHx5w6cOxEFC0Oz/08nxpy9u+bE29gjEXJrmWnhBhSxvdOuRrJNEuQ5aFXEiU9tQ== 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-mips@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