Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2808670pxb; Tue, 12 Oct 2021 14:01:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmeyFxg4qlQAvv/hMaanZGFEBHaSRZ9L0hMijTtiSfArgzLeDyFiJtXiA0+xGGCo0rYBbd X-Received: by 2002:a17:903:120e:b0:138:d732:3b01 with SMTP id l14-20020a170903120e00b00138d7323b01mr32014008plh.21.1634072488992; Tue, 12 Oct 2021 14:01:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634072488; cv=none; d=google.com; s=arc-20160816; b=ob6OcnkHJFqREAqq4FDwMEFuDaVcVb+ZYuZM0ywn8Nm3J7bwtlUYehgaBgMaw1h3rt jAq7jWumj5D4UDuycs98IEyyGXbBST6vf7KjnAytEvK4STvoO9jlIjAJhn987FWbi+Xg cILhfBFHW2Cr7eaS9pIC9r65cF80KUpwnuEBBuv37C6WLaZ8ndbFvBa4t5kl1wcCZ7QA F6R6M8Vsb4+GK/ed4mNGNZTazonp7B5pPRer12Ef4enj1WXHejoolIAbnj9X+TqM1HFB D5iaXlqngtiqvkTLXcil+CDFoMt2dKgbVqndy+Hbj+sSvdFc1eKizf6Hp6w7Xyv2QADV TO9g== 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=Exp5E6dmY1PTSyKlOFa3gXPk4wQssFca5mHGxtbGag0=; b=U1umFwXRufwHh+lQCC3jJld3oO13BHnEa6URipqcbpJyoxdCnAdhcaFFeqphHd1Boo 2Tall3JtFWoCN5iuYU6gcW14pHlSgJ9N5ZAgbG4+feyvYXPQ3i9/YcelgXZxv0scJ3T4 qsUFnXJsk44qACRrvNvzZ6oQ4taidFqwguXg6+jyLHTrENd1bniHldWC8kslzYUNCQ1+ 6J43g2JyxDGtEU69dPgeRGV8yqNt8qxZBmhr8EmduiqW4WbwdQbvQW0+1RSKSGakjW7b yaPwH70iqz7ehubwXhH4wGop8zVOPHKpmZ8tCy31J5ui3zCi2kK3DWUoNG57NPidd/Uo vWAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=igCTC4SM; 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 r7si5829895pjp.6.2021.10.12.14.01.15; Tue, 12 Oct 2021 14:01:28 -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=igCTC4SM; 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 S235157AbhJLVCH (ORCPT + 99 others); Tue, 12 Oct 2021 17:02:07 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:26479 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233866AbhJLVCD (ORCPT ); Tue, 12 Oct 2021 17:02:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1634072400; 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=Exp5E6dmY1PTSyKlOFa3gXPk4wQssFca5mHGxtbGag0=; b=igCTC4SM7jQR6qapOSFWL9jNvG9gX07POR3VmciQplPTVSGQ3ElgA0RNw0ZP49hiCd7Si5 xebfs9UCwTBAZMyKD6gHkCBYQ8Pz435UgOqpimFhX5oM7cXE+yZI0ZdDIWJk0ZFPvgbk65 FFKsvX22zCQrcTmUlfWAgPnpz1omz5Y= 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-476-e8Vs6UFAPYm5nCLLFsmlng-1; Tue, 12 Oct 2021 16:59:59 -0400 X-MC-Unique: e8Vs6UFAPYm5nCLLFsmlng-1 Received: by mail-wr1-f71.google.com with SMTP id s18-20020adfbc12000000b00160b2d4d5ebso312514wrg.7 for ; Tue, 12 Oct 2021 13:59:59 -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=Exp5E6dmY1PTSyKlOFa3gXPk4wQssFca5mHGxtbGag0=; b=k5FItgK4kcdCEBTgVQGY1FcbRCwHDVg0/VywLspUGFeKJXbzNxHtsJGFEG7odTG9Pc hbqZH70Yy00IDQ8s2BZMYLS7FrPjLgZ9mo9hK2KmWfLIrZxKd4YIyrOq4G5csTgUGevA vOeqsNMbSNzGUa7cibtobaLR6mhkoyWpeU+vaSzXuqTq/ghIIqjJrN7ta772KLsvaMuo L+NV68zUWBitAUn7RPQGn/vsuhGNPqMjEG1STx2u7GFn87r8JDuK7Y6VfSQf/uXoe48F rllRO4uGDg3Sf8t8U6RTAgoSpBv96K1PNsktSk+LXFDcGMJiQnV7a8d8aRCEZvdZHXg0 eDew== X-Gm-Message-State: AOAM533xTGpNktPdME8p2fdvYzljk9GlqNNh5Zi0yPU0AS4GJn2dA9Qg 8GnwDkvpdjsDufzQQfP0boNX/8e2xi8WyNbrfXGTOE2i4Nv4M35joXVQvQz66JWEy+a4bkdsj9I du4vO2n1Mp5hh+p6ju5Bc+oy9 X-Received: by 2002:a05:6000:1289:: with SMTP id f9mr10798874wrx.192.1634072398167; Tue, 12 Oct 2021 13:59:58 -0700 (PDT) X-Received: by 2002:a05:6000:1289:: with SMTP id f9mr10798853wrx.192.1634072398013; Tue, 12 Oct 2021 13:59:58 -0700 (PDT) Received: from redhat.com ([2.55.159.57]) by smtp.gmail.com with ESMTPSA id 36sm11465676wrc.92.2021.10.12.13.59.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Oct 2021 13:59:57 -0700 (PDT) Date: Tue, 12 Oct 2021 16:59:51 -0400 From: "Michael S. Tsirkin" To: Andi Kleen Cc: 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 , Dan Williams , 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: <20211012165705-mutt-send-email-mst@kernel.org> References: <20211009003711.1390019-1-sathyanarayanan.kuppuswamy@linux.intel.com> <20211009003711.1390019-17-sathyanarayanan.kuppuswamy@linux.intel.com> <20211009070132-mutt-send-email-mst@kernel.org> <8c906de6-5efa-b87a-c800-6f07b98339d0@linux.intel.com> <20211011075945-mutt-send-email-mst@kernel.org> <9d0ac556-6a06-0f2e-c4ff-0c3ce742a382@linux.intel.com> <20211011142330-mutt-send-email-mst@kernel.org> <4fe8d60a-2522-f111-995c-dcbefd0d5e31@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4fe8d60a-2522-f111-995c-dcbefd0d5e31@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 12, 2021 at 10:55:20AM -0700, Andi Kleen wrote: > > > I mean ... it's already wide spread. > > > I meant wide spread usage with confidential guests. > > > If we support it with TDX > > it will be used with TDX. > > It has some security trade offs. The main reason to use TDX is security. > Also when people take the VT-d tradeoffs they might be ok with the BIOS > trade offs too. > > -Andi Interesting. VT-d tradeoffs ... what are they? Allowing hypervisor to write into BIOS looks like it will trivially lead to code execution, won't it? -- MST