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 6DA9FC433EF for ; Tue, 12 Oct 2021 21:18:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 55A2A610CC for ; Tue, 12 Oct 2021 21:18:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235623AbhJLVUn (ORCPT ); Tue, 12 Oct 2021 17:20:43 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:45457 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234181AbhJLVUl (ORCPT ); Tue, 12 Oct 2021 17:20:41 -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-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-507-ZxkslUVyN6WpAU3oJfzFWg-1; Tue, 12 Oct 2021 17:18:38 -0400 X-MC-Unique: ZxkslUVyN6WpAU3oJfzFWg-1 Received: by mail-wr1-f72.google.com with SMTP id 41-20020adf802c000000b00161123698e0so320291wrk.12 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=kH4KccRpDZ7GQhPaH243YmvH3Zq1sx95XjZXSx3jrytOplOLb46g7gJB0FZtqCviIx MGSTwt5oGPdIOBfPVvmnv130I7Cj5iwwOqJrZ3nMUCV2jSZDZ8TeCWH57l082NxSb8yy 8oBv3f3AQqZJ3yZBZ4ToE+rTGtfHi/mskfFIqWGRM1V8Y6jAUw7ZJ/CCpJWCUijBHG/F z+lBEDux2fdIth1qxeZq5fA4HDtvWKa1mCMTTQVjfgmVHiSqZ5ecOL8E/HIpYwv5ou5R o6Bkeg6o6jw7Jn67PqUIzrwjfETAK9pwuygOjUkZMNYq2jHef1fFuH7B6ZrfU+ARUt/i iXig== X-Gm-Message-State: AOAM531zJbMWV9v1SFYUHFU1UpgUicVsd5OCvuuZH6e01UBW1+EI1unM 9DUOQO83fN4dfV121E2koFPnCo7sqLXkvVnFM6hPIiNhzJ2BIwijKFOa8y/TkSXBLF6TAYPgif8 4m+8Yne77XSlIb+wL5AFl X-Received: by 2002:adf:a502:: with SMTP id i2mr33893010wrb.311.1634073516960; 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-pci@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