Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1717374pxb; Mon, 11 Oct 2021 11:31:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6zEqJNoV/cHwtM/WjRQR0SvLJkpJDLFPk8khEk/pwYAqL3xjN9xeWLb2EimGLTrtyshy0 X-Received: by 2002:a62:9242:0:b0:446:5771:7901 with SMTP id o63-20020a629242000000b0044657717901mr27382866pfd.81.1633977090403; Mon, 11 Oct 2021 11:31:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633977090; cv=none; d=google.com; s=arc-20160816; b=gEOZ06ZhWzLtUg/EJCOupCqOHtswtjnbNFlt08/f97H9GjneKt9HP7un/y0tNZ3JYa T5C/hcGOFSZJKhp2L10Imw5qcL9RZUgWZy6syVPXYRSDJe0AkYUExx7Ut3qoaOWVbLru vwpvHkAWH319Jpi02zBdv311uWyzvu6ssnMAmWUx6nqwFPzg4EFokd7HcfdblLgyI8me zbgiakDUGnsCnK4Hyw0voJMkvLIV4t/emanOA4C0Ii3uxBB5ftwSF9/2qdkP+o2Gjh5S /3ja7Nz+n4Ay1SkcTueDk6UXRI69zLPLvotDHezjd1D7MbXfl49tMMBsaF+wRyjngLb7 F71g== 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=G16gwMe6+CYnKg8tN/Sjy4s4dxSh+B0vWdkeXZ6WaCc=; b=VDBTitVR+59MeRvHXMqozfQ+TXoYNbe5OAX7Rtd4nrd+3EeNY+ursdkIw9qQU8aasN XhWGy1YBlYB+5PiQSxFKcgU77tTMX+eWWLEPAzoWE8pWM3QKYsYr1eqA3lGUZPYuTCv1 rjCwfFuqjvStP1oZnNqkFi3ZWWPBYfS6mnkBnsRSRwFqBWgEvJT2KOljEFfuHHAQf6jT YxDsGGMFlkanc1PqW1h2zVW4/1WSNzmwW24X6IZ/HqLy6GoQwGfqxG5NjZ2Cc/i6pQpN ZcvjN2Vggw2J+EV7BXp+BFYjpXC4cjWW5X8U4SbgDG9D560ImUQjIGe0G739Px8XDFyk wlRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Zl6EWmCQ; 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 lr14si465947pjb.91.2021.10.11.11.31.17; Mon, 11 Oct 2021 11:31:30 -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=Zl6EWmCQ; 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 S234580AbhJKSbD (ORCPT + 99 others); Mon, 11 Oct 2021 14:31:03 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:60160 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234540AbhJKSbB (ORCPT ); Mon, 11 Oct 2021 14:31:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1633976940; 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=G16gwMe6+CYnKg8tN/Sjy4s4dxSh+B0vWdkeXZ6WaCc=; b=Zl6EWmCQoR9O8W46q+A4dRrfHiQTShQFOTcz0tY7PrUuWMyL44KiH19MEOzhf5AxCgzXXQ SjoZZuDstLs8pcIf19wDm7AJ7RkABwi6eCGPySFC8DSvEZ0PkUoHx0WxvmuSY1rVjOlvZt mpSnNvhZtphISW5C+2iehx2nqi4Iztw= Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-234-GZXhh79cNIea5MFWyrWf-Q-1; Mon, 11 Oct 2021 14:28:59 -0400 X-MC-Unique: GZXhh79cNIea5MFWyrWf-Q-1 Received: by mail-ed1-f70.google.com with SMTP id e14-20020a056402088e00b003db6ebb9526so7038630edy.22 for ; Mon, 11 Oct 2021 11:28: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=G16gwMe6+CYnKg8tN/Sjy4s4dxSh+B0vWdkeXZ6WaCc=; b=VA+PAHr/hEJC4eJhaty6huN4v2vKJtdc84roUthCGvMjrW9D6o/xm3Hd7l7lYFOVMj nxW5WowRw7hGcvMc9atPoID06CAX2N3K1oGc4LTtOwg0u6gszSJho91DOfjUkqV4BXHg 0Q0lRrJ6rw0FwyPKpXni9HbHyP/sxUtbgXpAQYH1+I6iUGh9oNSR+1fr4A6xh9u4cfaV kGbh3NbVx76AYhCSy/BJxRutw80RkxzMSEMVizWFUBbTC/9bKDFMvbMULT6rxnvToojC sgPcQMyaugtQyxZicwscAn4Yap+ZUTZTbaQyEqP3Z3hPV0JeKSY0ktCEB2oDSQu0aeG4 OjJQ== X-Gm-Message-State: AOAM5311lQGOeRqha/0wJwAcNtAuVRLBkJCE5DVedrJIy5RF3bZ1W7fD vd5jrAzDsdDT9VR9x+9/UOkMSm/4zklnJ2HiSEbG4gOcG1WAgHS0QO/Jv+W6zCGAerK+jlhGrcV O14hCoVMX6GT4EJDodX5S0eC8 X-Received: by 2002:a17:906:64a:: with SMTP id t10mr29341715ejb.5.1633976938261; Mon, 11 Oct 2021 11:28:58 -0700 (PDT) X-Received: by 2002:a17:906:64a:: with SMTP id t10mr29341674ejb.5.1633976938096; Mon, 11 Oct 2021 11:28:58 -0700 (PDT) Received: from redhat.com ([2.55.159.57]) by smtp.gmail.com with ESMTPSA id w11sm4722003edl.87.2021.10.11.11.28.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Oct 2021 11:28:57 -0700 (PDT) Date: Mon, 11 Oct 2021 14:28: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: <20211011142330-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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9d0ac556-6a06-0f2e-c4ff-0c3ce742a382@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 11, 2021 at 10:35:18AM -0700, Andi Kleen wrote: > > > Presumably bios code is in arch/x86 and drivers/acpi, right? > > Up to 200 calls the majority of which is likely private ... > > Yes. > > > I don't have better ideas but the current setup will just > > result in people making their guests vulnerable whenever they > > want to allow device pass-through. > > > Yes that's true. For current TDX our target is virtual devices only. But if > pass through usage will be really wide spread we may need to revisit. > > > -Andi I mean ... it's already wide spread. If we support it with TDX it will be used with TDX. If we don't then I guess it won't, exposing this kind of limitation in a userspace visible way isn't great though. I guess it boils down to the fact that ioremap_host_shared is just not a great interface, users simply have no idea whether a given driver uses ioremap. -- MST