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 C6158C4332F for ; Mon, 11 Oct 2021 12:04:30 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 84ED060F3A for ; Mon, 11 Oct 2021 12:04:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 84ED060F3A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.linux-foundation.org Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 52F6080E49; Mon, 11 Oct 2021 12:04:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DITxMN6s3vOM; Mon, 11 Oct 2021 12:04:29 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp1.osuosl.org (Postfix) with ESMTPS id E820680E22; Mon, 11 Oct 2021 12:04:28 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id BDB57C000F; Mon, 11 Oct 2021 12:04:28 +0000 (UTC) Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists.linuxfoundation.org (Postfix) with ESMTP id 1B388C000D for ; Mon, 11 Oct 2021 12:04:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id ED9E240146 for ; Mon, 11 Oct 2021 12:04:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp2.osuosl.org (amavisd-new); dkim=pass (1024-bit key) header.d=redhat.com Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Spp8pu1JUCtK for ; Mon, 11 Oct 2021 12:04:27 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by smtp2.osuosl.org (Postfix) with ESMTPS id 1ED38400A4 for ; Mon, 11 Oct 2021 12:04:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1633953866; 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=6/UQYl/XVfz1u8aL1mV3gDk9yEhwnmg9oxdpI3UoFb8=; b=UAQPpOL3d+SkOdmqk2dJ32OTYJEBpDYO4Qmc1inMO5yuKE1D8K4Hmj4orZqF+Wg8qX0N0a 13urz43P0iMNNKx7Se3CULcesjErBH0U62PdhmJpBqnQcd+lvDmpnT0QOUyzbRdxlsln65 880juoDXVPZ3cUtt+RrweQg2AsVqzog= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-456-brDM0LKJPZ-i19zgTJ2bmQ-1; Mon, 11 Oct 2021 08:04:24 -0400 X-MC-Unique: brDM0LKJPZ-i19zgTJ2bmQ-1 Received: by mail-ed1-f71.google.com with SMTP id c8-20020a50d648000000b003daa53c7518so15636119edj.21 for ; Mon, 11 Oct 2021 05:04:24 -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=6/UQYl/XVfz1u8aL1mV3gDk9yEhwnmg9oxdpI3UoFb8=; b=5bDP0VVXwI4Av/vS6/X1mEBBJ7omvuO0fQcQ7d9ti73wQzsqHs1wMOYz3MHabU11xy sVljPTWQmdhD6pkkY1aXc8BkBrICj9QomMrsXRvIkIN7STlrNljfTgmfbUrR47DIhTeZ xzG6I5JHaRd+I7DwJnD7UUPNz9C8RIyxmLEX+IInRT6dyqC21yej7ARHVBvfhTAeaRyZ DO0r5V0Y78NU9FAPnzywqO61hLQD5DAbLWyWp9jlb246+TSCyaYynX4mCAfdtCjEM/n9 cjHtnqYgvbkKFmzIhMFjgA6BMDNs8UJncAWqb1MiyMzGOUuNvvzqUlcBVbSRKF1TFnOv 9SnQ== X-Gm-Message-State: AOAM533gKjESpgG+ohczyiQBNVikrRxJNsDwcu2pu5ly07ucsyR79VXz jX2lFXVxDiLy2RuEd7BzxTEweWnGM9ca0rnETXxFmysInWf6WTpZULRvSwmNHMnE+jdYRB4ir9f MuISQT1vmok2NPe1fVx1p82i5Uf6uhlswAZ7GxZgX0g== X-Received: by 2002:a17:906:6bce:: with SMTP id t14mr5105169ejs.546.1633953863649; Mon, 11 Oct 2021 05:04:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVo7pMtVffuQEXqsF/L2jnPTyIClLeLABvDqmnuGdNXl4W+vIVe08L9GSGn7GemWiCV8sawQ== X-Received: by 2002:a17:906:6bce:: with SMTP id t14mr5105145ejs.546.1633953863516; Mon, 11 Oct 2021 05:04:23 -0700 (PDT) Received: from redhat.com ([2.55.159.57]) by smtp.gmail.com with ESMTPSA id j22sm3412840ejt.11.2021.10.11.05.04.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Oct 2021 05:04:22 -0700 (PDT) Date: Mon, 11 Oct 2021 08:04:16 -0400 From: "Michael S. Tsirkin" To: Andi Kleen Subject: Re: [PATCH v5 16/16] x86/tdx: Add cmdline option to force use of ioremap_host_shared Message-ID: <20211011075945-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> MIME-Version: 1.0 In-Reply-To: <8c906de6-5efa-b87a-c800-6f07b98339d0@linux.intel.com> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=mst@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline Cc: Kuppuswamy Sathyanarayanan , Kuppuswamy Sathyanarayanan , Peter Zijlstra , linux-pci@vger.kernel.org, linux-mips@vger.kernel.org, James E J Bottomley , Dave Hansen , Peter H Anvin , sparclinux@vger.kernel.org, Thomas Gleixner , Andrea Arcangeli , Jonathan Corbet , Helge Deller , x86@kernel.org, Ingo Molnar , linux-arch@vger.kernel.org, Arnd Bergmann , Tony Luck , Borislav Petkov , Andy Lutomirski , Josh Poimboeuf , Bjorn Helgaas , Dan Williams , virtualization@lists.linux-foundation.org, Richard Henderson , Thomas Bogendoerfer , linux-parisc@vger.kernel.org, Sean Christopherson , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org, Paolo Bonzini , "David S . Miller" , Kirill Shutemov X-BeenThere: virtualization@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Linux virtualization List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: virtualization-bounces@lists.linux-foundation.org Sender: "Virtualization" On Sun, Oct 10, 2021 at 07:39:55PM -0700, Andi Kleen wrote: > > > The connection is quite unfortunate IMHO. > > Can't there be an option > > that unbreaks drivers *without* opening up security holes by > > making BIOS shared? > > That would require new low level APIs that distinguish both cases, and a > tree sweep. > > > -Andi Presumably bios code is in arch/x86 and drivers/acpi, right? Up to 200 calls the majority of which is likely private ... 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. -- MST _______________________________________________ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization