Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2853351pxb; Tue, 12 Oct 2021 15:03:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvj9tw9zCK47h1bt6vnlopYrXJruRsSTCGOLLMdBWfCI/NyBmh/h+TbBiObLAv6w1tP0VL X-Received: by 2002:a17:907:a061:: with SMTP id ia1mr34430769ejc.372.1634076187411; Tue, 12 Oct 2021 15:03:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634076187; cv=none; d=google.com; s=arc-20160816; b=hKUC2jxreHwz5LXrD87P65MkalInw1M4fZ2MygP0CZQAbViQoNB52Dyg14aqBoRGg0 Ysqd0YEPBX9UKXF+N/I5bVDHXxNa63aaVlqqw1+GyCLkXqWH+ERstQ0Y/LnVEa650y9V oL4LvDajdnc2vx1+nUwj+4dHDECKnTUzm8ynUk3fffgZ7MzdKD+86dLTcO7chO7g1LF5 9C2/43MeaaH6+3Wft0eOUmU5wxHsgB+/m5EIxEBu8mPYNu8MKF3cJ32+8I7cvhBumcpT zlRQviChnnAQWIZPZCub9sP4941OHphSuMd8YKw0jQpBR5JVxPCoUg0UtZc52eBQ4Rdh RejA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=BtMAj68aUuTTSGbrDQhTvggvj29pIYu2zJBH77+GR9M=; b=Km2/QGIPhUdXJdptV4OtEtVezSaUMAGdgLLXOR8DoJ2ZbyWxpEajSdtD0EDL6R9HJZ hB2n8pXUWp5vMr6NKniJ8ZdJozxQK/sgtjNlNblYGqEid+8fyQIuFCxrfRbgc1FbmV0g M3mTpD5er5B9PwWS3Ulwoaj6kqonAbCRRA8n5tNnleOySnOOilNIrqUeQcKXnOMnKLLh w8hegYFWqCRjKv3+/h7U7e9yPMDd0DmqeeKO9+AqWa374GYBygqiz9tX0Mhelr/ZqfH/ 7Cfrz66ZpHTn2Twz4uCVBmWpq23tSzoWOl3IEaQsoxQrZC9QWAeEdzm7diXTCSbDAC04 q1+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20210112.gappssmtp.com header.s=20210112 header.b=l4aQQdqM; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c27si18590695edx.124.2021.10.12.15.02.41; Tue, 12 Oct 2021 15:03:07 -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=@intel-com.20210112.gappssmtp.com header.s=20210112 header.b=l4aQQdqM; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233953AbhJLWCS (ORCPT + 99 others); Tue, 12 Oct 2021 18:02:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235541AbhJLWCR (ORCPT ); Tue, 12 Oct 2021 18:02:17 -0400 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6E3AC061746 for ; Tue, 12 Oct 2021 15:00:14 -0700 (PDT) Received: by mail-pf1-x42d.google.com with SMTP id k26so687681pfi.5 for ; Tue, 12 Oct 2021 15:00:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BtMAj68aUuTTSGbrDQhTvggvj29pIYu2zJBH77+GR9M=; b=l4aQQdqM1qp9TtohjZx2PZM0wFCEL6l/kvo8NN9KzJyymhBkkyJgSo+9JA65w2tJEC 9LMd/PZYWtD639cxF6qZMwd7jZd9819/ZvHD/DyB/7wSK2/pajxSegKWAuJyX3EvYN36 Hvgx10j1dFhPR07T/GBgmSYWFBkdDDI7TrgeSvfoF3jbQGYARg2lN3Mrzq8mhpCVohvp ZGTcRKSDYPs1LYZ9Cvfeg4KhU92J4uRVYVOhbj7jW97OCTyGTD9dTqfQJOsiIMNnWVv0 /ozc6W/ADlxkkOe6vMPoo0ylJl6JzbiIVBISrC3VjWn2vlC4L7iJWKamuM1v2Iw/lFzH VREA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BtMAj68aUuTTSGbrDQhTvggvj29pIYu2zJBH77+GR9M=; b=EDsf13WWf806CEhglYHDA2SMIDFxCavoMVlorvU6UFYK6tsiRqBYh4rfOrbR3p6iPv VpuuF9JogxFlxmn9BwXCSQgHMwKGvjEXsTy3qJQE7DcmcKR85Hc0MnMXVN6EfSAtpaNa Q50RjYKqn6EmKqn7Qyql1yoQd+XK6L64EQapeuN9pNiWzARAbbN9zr6D5G/Da+42JTAv feGpOe1LftcSEuGUVhYSMEsAzSSqo1f9sv/1SWDH60koY/jKH1go+MFF5TicNWbQvRwp sR9zn3zd4ApqO+AT2Sb1rTUff/F5MpPC8scfAnoh767Ax7zlxSN3k7hI6erRdRAHQ5Mw 7aYw== X-Gm-Message-State: AOAM531p+rDER1R3z0acpro7cSi7QaS7ExQ5VjUimrujUCXUHpLjbJKi pnddwUxQshqi4Fo9QMeoGvH+d2T3ehjC29WpklBWaVp7HxM= X-Received: by 2002:a63:1262:: with SMTP id 34mr24624590pgs.356.1634076012990; Tue, 12 Oct 2021 15:00:12 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: From: Dan Williams Date: Tue, 12 Oct 2021 15:00:01 -0700 Message-ID: Subject: Re: [PATCH v5 12/16] PCI: Add pci_iomap_host_shared(), pci_iomap_host_shared_range() To: Andi Kleen Cc: "Michael S. Tsirkin" , 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" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 12, 2021 at 2:28 PM Andi Kleen wrote: [..] > >> But how do you debug the kernel then? Making early undebuggable seems > >> just bad policy to me. > > I am not proposing making the early undebuggable. > > > That's the implication of moving the policy into initrd. > > > If only initrd can authorize then it won't be possible to authorize > before initrd, thus the early console won't work. Again, the proposal is that the allow-list is limited to just enough devices to startup and debug the initramfs and no more. Everything else can be dynamic, and this allows for a powerful custom override interface without needing to debate additional ABI like command line overrides, and minimizes future changes to this kernel-internal allow-list.