Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp3181696pxb; Sat, 9 Oct 2021 04:06:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxY1HM3PPT+phgBWwt/kUQS0CTpWCeCDqHWOyFsnLD1raqHsZNsYyJl4ASoPNSphIV7qFNn X-Received: by 2002:a05:6402:42d1:: with SMTP id i17mr22580312edc.320.1633777596871; Sat, 09 Oct 2021 04:06:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633777596; cv=none; d=google.com; s=arc-20160816; b=MI5RZKPiKDsV39CYU0Itgg/FlxFQv3Cdg+kH3vFSGs1zgwSE6ITXFCH5K8fqVCXfrE bDPvm0dnwbjB8Ae6hDRjfHH3cW2rlTUNjxQYXDGBZeghG3DBElFVHUx6Yyk1Mzr2CBVk F9/wLBysuG+niEG49uZxSk9BcrZ518TM06r6boB1hSlkzUFnFBqLIpzr8vrW509Jw/wx FvrtAfJqrLlbbrJR6E2oxITioDgwvNexbG+RWsRU991YfqrK5ovqQeGv7c/3o5yrh6ke 3ImSYHIX/cofV2dZ98rvRURkLF1tRAUaNOODHz7i93beSs4kc7KszJTTs7Pc/RQErqUS 2I6A== 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=lJ/2iCuZIJi8M6YSq3TSpepZV4prmg5N+D8TG37hfos=; b=K1of53HcCCSoh6gbGohYJu4wDTGe3xT7CPvmlVhQyNxhLckT0Ove+XqViactGsHIs6 csY1xiYv7LzChxy45ZaDd5Fck7SBiz8B9cobOL5BwY/fik6SYOIXsf82lsYUSAQ7dFpN gjMt47Uscbxg02GwjaB6H4R86qFHq8xU7O4ERrvNEDht9os5wo6emwbg+LqKNjbcofu5 QHtABjG5qUmEoY7MPGzMkG5xlyAVqAK3tya/ZnKJDUajW1Yq2Ra/v4WEIVBBxidH5Unb x4Uh6ojKW3OAAs8vltOs+VYXpoOmIp9sy6LcJBIXNOUUEJTvy7NW/f84ON9tHLtzNBdq J7CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AaxYMxWO; 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 jz20si3492272ejb.263.2021.10.09.04.06.13; Sat, 09 Oct 2021 04:06:36 -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=AaxYMxWO; 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 S232837AbhJILG0 (ORCPT + 99 others); Sat, 9 Oct 2021 07:06:26 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:25534 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232777AbhJILGY (ORCPT ); Sat, 9 Oct 2021 07:06:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1633777466; 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=lJ/2iCuZIJi8M6YSq3TSpepZV4prmg5N+D8TG37hfos=; b=AaxYMxWO/BxUn2MZXFoc35vCI1KV/4CUz8y8p85dSztjOa0jHIixCxO6RGnznkOiLHXPN7 MG0m5wU+2AxYtXxgK0xS3+g6vwV6+CPFP/huMjMwvP1CzbKNNwHiI33KTu9lMzum0tsYdu aJUfkc2diMHEqi6grWIVPcouKMuHSR0= Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-201-_ff4ntGlMc64kQQvHsJq0w-1; Sat, 09 Oct 2021 07:04:22 -0400 X-MC-Unique: _ff4ntGlMc64kQQvHsJq0w-1 Received: by mail-ed1-f72.google.com with SMTP id t28-20020a508d5c000000b003dad7fc5caeso11473012edt.11 for ; Sat, 09 Oct 2021 04:04:22 -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=lJ/2iCuZIJi8M6YSq3TSpepZV4prmg5N+D8TG37hfos=; b=a3iqu5Qk0dw1GJ04HBZNBRVrqf+YPE4FjmNMmG3ASkYH+w20ebk1/vr/LXOEbaZvJ7 9Za9rIpujSak66iefYMJ0z/5T9M606M9hQfi5sS6eKbmfKEJ8Yu+sqWp64c2qtcZX3jZ wjHaa1EJ1JfrvDtvP+znbOVx6f5uqhY8mkzXoG1EuFYApV7e9249+DQNlB/9qylevBaZ 6QSXK6vmZVJXcL5lgeyMVE1fTPJzBuQt4uYtRX/JBHNNl90Fo2cXtlRRW3u6hjtFesXd clAzPEApThO4dbTPt35n4v2yQiMcgsNnV36MbxbA6a7MS94Fmw3yWtwYK4YJ6uHUu19T FACw== X-Gm-Message-State: AOAM531FKKOaTgCN1hBhXXLZO1AW729XqUlF3bamJpnuQB9qhbXDU6ZY /XqFBxKlc1NVba4Lqsws0YPvYIYaM5z0FvyVbjVjVwgZLiRu2qXZfGrcbaI4FV8Avfr7x+IBYua nC+Gb6ryoigcTPhwSlIPoiLRK X-Received: by 2002:a17:906:585a:: with SMTP id h26mr10966043ejs.31.1633777461691; Sat, 09 Oct 2021 04:04:21 -0700 (PDT) X-Received: by 2002:a17:906:585a:: with SMTP id h26mr10965985ejs.31.1633777461334; Sat, 09 Oct 2021 04:04:21 -0700 (PDT) Received: from redhat.com ([2.55.132.170]) by smtp.gmail.com with ESMTPSA id n22sm831106eja.120.2021.10.09.04.04.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Oct 2021 04:04:20 -0700 (PDT) Date: Sat, 9 Oct 2021 07:04:10 -0400 From: "Michael S. Tsirkin" To: Kuppuswamy Sathyanarayanan Cc: 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 , Dan Williams , Andi Kleen , Kirill Shutemov , Sean Christopherson , Kuppuswamy Sathyanarayanan , x86@kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-alpha@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, sparclinux@vger.kernel.org, linux-arch@vger.kernel.org, linux-doc@vger.kernel.org, virtualization@lists.linux-foundation.org Subject: Re: [PATCH v5 16/16] x86/tdx: Add cmdline option to force use of ioremap_host_shared Message-ID: <20211009070132-mutt-send-email-mst@kernel.org> References: <20211009003711.1390019-1-sathyanarayanan.kuppuswamy@linux.intel.com> <20211009003711.1390019-17-sathyanarayanan.kuppuswamy@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211009003711.1390019-17-sathyanarayanan.kuppuswamy@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 08, 2021 at 05:37:11PM -0700, Kuppuswamy Sathyanarayanan wrote: > + ioremap_force_shared= [X86_64, CCG] > + Force the kernel to use shared memory mappings which do > + not use ioremap_host_shared/pcimap_host_shared to opt-in > + to shared mappings with the host. This feature is mainly > + used by a confidential guest when enabling new drivers > + without proper shared memory related changes. Please note > + that this option might also allow other non explicitly > + enabled drivers to interact with the host in confidential > + guest, which could cause other security risks. This option > + will also cause BIOS data structures to be shared with the > + host, which might open security holes. > + > io7= [HW] IO7 for Marvel-based Alpha systems > See comment before marvel_specify_io7 in > arch/alpha/kernel/core_marvel.c. The connection is quite unfortunate IMHO. Can't there be an option that unbreaks drivers *without* opening up security holes by making BIOS shared? -- MST