Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp715443rwd; Mon, 12 Jun 2023 22:14:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Zppam2iJm0cbikXqlp9KC8UfKLsZIMWDIoM97UtMe2QU+kG4nCmO34DgbL79d97u0dDRB X-Received: by 2002:aa7:ca49:0:b0:518:344b:f207 with SMTP id j9-20020aa7ca49000000b00518344bf207mr5037136edt.22.1686633291110; Mon, 12 Jun 2023 22:14:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686633291; cv=none; d=google.com; s=arc-20160816; b=z2it3x3WmbFEY6VhBu3uGFhwva1QPgJflZAhKSmlsAEjq/N5t1sCb6uRNIf4cmOkG1 ij3eNUPDtgreg+/HfSnETEUu1wF2T+gg4TOSGzZ0D25BQO66GbkAhSkpZWtSPxHUAFaa U2/D0tI2DDpSd/ACz3ZHdw6WtYedDAl6VF5ggOS2VFJ9DxGoIDdIpjrbSh/u0a+KLX5m g74WnSI0VgLF9k4GRilHfTYTdR8ZiYOhEmyvR+qe0GwiQR7DHQa0HD22OIvmlSHDc359 u+4lAltmGHXDhETI43qDH6qSXAWsxW/c14xVWcDF90oMpY6YvNG7NZHW5/D9Lv/azlXk XynA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=up3lhI+xcjJSpfFVQktGN3eD3h5Hqek/2uD87VnVvBU=; b=ZWJq2fNHWaIeB4nArUt5mfJsxB4TB7u85vdcp+vLQ2DhHsteZdAasfOisaoagsdFIg RuOLaPQFlyBYIqwkbZg1lDNUPXlcIBi5JF+z9KX6vXLTCGuD7IscizuWeYCXP7HP/Y2X CHGpG2bnL7JtnhrH6iERszXupuwyWM3BPAvvANHoUK4bWI/MD8ZGF+Z78sz6d/oWTRa3 wIxldQBBb6keMIXEocMatzoKucnscWc6SLV1OumglKNnYH0Vi74XcYUYtx4C+srzfRPb xhcS6jQsXk9kQN0HegA2GlMCaxFJ6SrSq8hyoodbnD4fgpsogRaH9D5EEoohG4qSmnQV JUkA== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u3-20020aa7d883000000b005147f4422d7si6857438edq.446.2023.06.12.22.14.26; Mon, 12 Jun 2023 22:14:51 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239892AbjFMFD4 (ORCPT + 99 others); Tue, 13 Jun 2023 01:03:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230073AbjFMFDw (ORCPT ); Tue, 13 Jun 2023 01:03:52 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A53368E for ; Mon, 12 Jun 2023 22:03:50 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 351521FB; Mon, 12 Jun 2023 22:04:35 -0700 (PDT) Received: from [10.162.42.9] (unknown [10.162.42.9]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 41E823F587; Mon, 12 Jun 2023 22:03:47 -0700 (PDT) Message-ID: <77d4d867-cfa1-bdef-dddd-0f28493a4e6e@arm.com> Date: Tue, 13 Jun 2023 10:33:45 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH V3] arm64: Disable EL2 traps for BRBE instructions executed in EL1 Content-Language: en-US To: Will Deacon Cc: linux-arm-kernel@lists.infradead.org, Catalin Marinas , Mark Brown , Marc Zyngier , linux-kernel@vger.kernel.org References: <20230516083015.569248-1-anshuman.khandual@arm.com> <20230605140038.GB21212@willie-the-truck> From: Anshuman Khandual In-Reply-To: <20230605140038.GB21212@willie-the-truck> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 6/5/23 19:30, Will Deacon wrote: > On Tue, May 16, 2023 at 02:00:15PM +0530, Anshuman Khandual wrote: >> This disables EL2 traps for BRBE instructions executed in EL1. This would >> enable BRBE to be configured and used successfully in the guest kernel. >> While here, this updates Documentation/arm64/booting.rst as well. > > Is it safe to give the guest access to BRBE if the hypervisor doesn't > switch the state? I'm assuming the architecture defaults to "trap" for a > reason and disabling the trap alone isn't sufficient. Hmm, understood. > > If it _is_ safe, please can you explain that in the commit message? If not, > then this should be at the end of the series adding hypervisor support. Sure, will add the patch when adding hypervisor support for BRBE.