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 lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CEB1FC3ABAC for ; Tue, 6 May 2025 10:15:35 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.977008.1364092 (Exim 4.92) (envelope-from ) id 1uCFKT-0005jN-NY; Tue, 06 May 2025 10:15:13 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 977008.1364092; Tue, 06 May 2025 10:15:13 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1uCFKT-0005jG-L4; Tue, 06 May 2025 10:15:13 +0000 Received: by outflank-mailman (input) for mailman id 977008; Tue, 06 May 2025 10:15:12 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1uCFKS-0005jA-SS for xen-devel@lists.xenproject.org; Tue, 06 May 2025 10:15:12 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.96) (envelope-from ) id 1uCFKS-00Cc9R-0i; Tue, 06 May 2025 10:15:12 +0000 Received: from [2a02:8012:3a1:0:7157:32ca:2aea:33a3] by xenbits.xenproject.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uCFKS-00FwLm-05; Tue, 06 May 2025 10:15:12 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xen.org; s=20200302mail; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID; bh=D6GfJJejLuaeHsmXVZVCpGoUnVnF6gmM7bS1JOgbAWw=; b=xyRXcx5Lfk2lNEliuq03ckPaUN WZE+xBcjlQ/gJSj+8tttd0+Z/WuaLjTwvVAN7B9JF27F//dFFjI8v+NW96ZLo3hR0ev6YB/8bKAfh pYFTDqgrOouj1ByMHu0GMQb6JCB2MFaQasI37jrfU1r+swxaYR1Nx11HIeefa6ypOTRc=; Message-ID: Date: Tue, 6 May 2025 11:15:09 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 3/9] xen/gnttab: limit cache flush operation to guests allowed cache control To: Roger Pau Monne , xen-devel@lists.xenproject.org Cc: Andrew Cooper , Anthony PERARD , Michal Orzel , Jan Beulich , Stefano Stabellini References: <20250506083148.34963-1-roger.pau@citrix.com> <20250506083148.34963-4-roger.pau@citrix.com> Content-Language: en-GB From: Julien Grall In-Reply-To: <20250506083148.34963-4-roger.pau@citrix.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Roger, On 06/05/2025 09:31, Roger Pau Monne wrote: > Whether a domain is allowed to issue cache-control operations is reported > by the cache_flush_permitted() check. Introduce such check to limit the > availability of GNTTABOP_cache_flush to only guests that are granted cache > control. Can you outline what's the problem you are trying to solve? Asking, because I don't see the problem of allowing any guest calling GNTTABOP_cache_flush on Arm from any domains. Cheers, -- Julien Grall