Received: by 2002:a05:6a10:5594:0:0:0:0 with SMTP id ee20csp442001pxb; Mon, 25 Apr 2022 13:22:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTKEkCq3NtuY/lJp/9NMjm2/Brux2WkL5zJjYxFcmNBQ9UfddXGn8INY8s/ltDAv9YdBK/ X-Received: by 2002:a17:902:aa85:b0:155:ceb9:3710 with SMTP id d5-20020a170902aa8500b00155ceb93710mr20132688plr.59.1650918150225; Mon, 25 Apr 2022 13:22:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650918150; cv=none; d=google.com; s=arc-20160816; b=0onTWKulGA6uh695PnA1RY7CYMaViJ9QOpxjbj1/HEMqR5PG9z7kVde910TuzMvn0k SEt1aDnJ49ilH1OO0WPAXp9ckAgHqKrVIVVJu/krh39si0GFkO1VUkcNx2ukymMhqmNI BAJAs/dZ8mJn8lMdHo6ShJBZgCBWcEauqnAFimLHgZo6yevE/RaQSKY0PJZVaAmF+Iym wYi4iNJvqZJ6krAWSB7/PkZLYL1uWNql4RdqJVN8Etkz6LWEITOLgdF+vjBpsO5HuSfP 8E4YO+Oc2QXEC6uXDXmfbM/T1U4i3EsNTW5KmZMISvucIpBFX/o3a2QzaENPjzJvxwJz VQww== 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=bk7N8VtSWAvLQd3yMexQM6sFuFonXwjn/dFWlACLuw4=; b=PJ2280uzsgm12AlefIZKitKZUtlfKd5MPOl5T2mlxgngqAI/aAHOZnspZnPEgUREfO 5SG5lOJnQYB6SqyIrp/61Ax6Qyyf9Wj0i/d0ogw3GSHUm6KvikP/27rIeNWR6YuvWpAR CrB8mKCxIJEib3zanc70weUWBLhI8IQYZr7IhOGm9aEHxGweXF8KuEZlNe32SUjo6WFl DNJD3KA+3LUqtJqONKc+/sCkpZnVSby9WyjxPUGv9tKgBdhufgOR/UJ0BfQL7685aWJ0 IV1D34cTEGcAG0fFiM8gmGgUt+n0ozkLSlOAQnGlA/jwm0SCQkg/kCdj36WhfwF6EEKb R8ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=KrNUg6E9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r3-20020a63fc43000000b0039d98ec6641si17434776pgk.319.2022.04.25.13.22.13; Mon, 25 Apr 2022 13:22:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=KrNUg6E9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231722AbiDYICF (ORCPT + 99 others); Mon, 25 Apr 2022 04:02:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231339AbiDYIBn (ORCPT ); Mon, 25 Apr 2022 04:01:43 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 275D027CE8 for ; Mon, 25 Apr 2022 00:58:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=bk7N8VtSWAvLQd3yMexQM6sFuFonXwjn/dFWlACLuw4=; b=KrNUg6E9jRh6S9p23phIwDD+A9 2yjbvoiMW3hXguiVED3XGeLI5RAp9z3c3rmBxo0F++ml3YQ8tcOKSZOhMELY6kv+Bo4zE7qjAcWtU 4e1Lurbi4qCxDhsiGkas5y6uhLAsCknOpNVtA8OPhC29Rp4ibbQQWk7Dx2gUkzdJLCazkHqGz7Izp 3JA0+CRtthmVp/yKRShz0BN0MuqCJ6vXAbzrTgeGDRw/XkPuzBc6ZO2k7jO4uF8Mglc5aF6PsTyYT WrTKukboCsRrzIBFPXxbH/jQ1NFzu8tuncjK13ASp0sXfOTrrMx8nRWkxEyq52l9iDKiiOEFi2QRD o9WfNkjA==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nitc6-008hbI-PT; Mon, 25 Apr 2022 07:58:30 +0000 Date: Mon, 25 Apr 2022 00:58:30 -0700 From: Christoph Hellwig To: Juergen Gross Cc: Oleksandr , Christoph Hellwig , xen-devel@lists.xenproject.org, x86@kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Dave Hansen , Andy Lutomirski , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Boris Ostrovsky , Stefano Stabellini , Julien Grall , Oleksandr Tyshchenko , "Michael S. Tsirkin" , Tom Lendacky Subject: Re: [PATCH V1 3/6] xen/virtio: Add option to restrict memory access under Xen Message-ID: References: <1650646263-22047-1-git-send-email-olekstysh@gmail.com> <1650646263-22047-4-git-send-email-olekstysh@gmail.com> <6c5042fe-dafc-eb4f-c1fa-03b0faf252de@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 25, 2022 at 09:47:49AM +0200, Juergen Gross wrote: > > Would the Xen specific bits fit into Confidential Computing Platform > > checks? I will let Juergen/Boris comment on this. > > I don't think cc_platform_has would be correct here. Xen certainly > provides more isolation between guests and dom0, but "Confidential > Computing" is basically orthogonal to that feature. The point of cc_platform_has is to remove all these open code checks. If a Xen hypervisor / dom0 can't access arbitrary guest memory for virtual I/O and we need special APIs for that it certainly false into the scope of cc_platform_has, even if the confientiality is rather limited.