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 X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B1AC8C433E0 for ; Wed, 27 Jan 2021 09:56:45 +0000 (UTC) Received: from mm01.cs.columbia.edu (mm01.cs.columbia.edu [128.59.11.253]) by mail.kernel.org (Postfix) with ESMTP id 214F62072C for ; Wed, 27 Jan 2021 09:56:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 214F62072C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvmarm-bounces@lists.cs.columbia.edu Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id A3DEF4B20D; Wed, 27 Jan 2021 04:56:44 -0500 (EST) X-Virus-Scanned: at lists.cs.columbia.edu Authentication-Results: mm01.cs.columbia.edu (amavisd-new); dkim=softfail (fail, message has been altered) header.i=@mg.codeaurora.org Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hIS6b11ZqZ7x; Wed, 27 Jan 2021 04:56:43 -0500 (EST) Received: from mm01.cs.columbia.edu (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 941B74B1D3; Wed, 27 Jan 2021 04:56:42 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id B0BB24B185 for ; Tue, 26 Jan 2021 15:35:27 -0500 (EST) X-Virus-Scanned: at lists.cs.columbia.edu Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id d6HfyLZYCyBR for ; Tue, 26 Jan 2021 15:35:26 -0500 (EST) Received: from m42-8.mailgun.net (m42-8.mailgun.net [69.72.42.8]) by mm01.cs.columbia.edu (Postfix) with ESMTPS id B31F64B18D for ; Tue, 26 Jan 2021 15:35:24 -0500 (EST) DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1611693326; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=PksgwQjYAE5mCkWpEhf8FuD4MEP1lZzvNn1nk/aOcJ4=; b=VTdDhATEDb3qNUPCLiYH0bxSQ5zCBkkm1NWMZPWl6ie1VJoWasIqa5MPVr4QI0kWosFKGsS7 y9fVBdgd7K6c+8oP3tkJE3qvkuu9UjYRni4lQ1Be1pqqbsrUEfdjTvD4rNVtsikYyP1TxUWC 6zPywXsDkcpwcuiCpOM2FLXU3bg= X-Mailgun-Sending-Ip: 69.72.42.8 X-Mailgun-Sid: WyJiM2ZhNCIsICJrdm1hcm1AbGlzdHMuY3MuY29sdW1iaWEuZWR1IiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n07.prod.us-west-2.postgun.com with SMTP id 60107cfd5677aca7bd0a7063 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 26 Jan 2021 20:35:09 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 33A5FC433ED; Tue, 26 Jan 2021 20:35:09 +0000 (UTC) Received: from [192.168.1.11] (cpe-70-95-74-122.san.res.rr.com [70.95.74.122]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sramana) by smtp.codeaurora.org (Postfix) with ESMTPSA id 836DAC433C6; Tue, 26 Jan 2021 20:35:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 836DAC433C6 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=sramana@codeaurora.org Subject: Re: [PATCH v4 19/21] arm64: cpufeatures: Allow disabling of BTI from the command-line To: Catalin Marinas , Marc Zyngier References: <20210118094533.2874082-1-maz@kernel.org> <20210118094533.2874082-20-maz@kernel.org> From: Srinivas Ramana Message-ID: Date: Tue, 26 Jan 2021 12:35:05 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-Mailman-Approved-At: Wed, 27 Jan 2021 04:56:41 -0500 Cc: Prasad Sodagudi , linux-kernel@vger.kernel.org, Ard Biesheuvel , Ajay Patil , kernel-team@android.com, Will Deacon , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org X-BeenThere: kvmarm@lists.cs.columbia.edu X-Mailman-Version: 2.1.14 Precedence: list List-Id: Where KVM/ARM decisions are made List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu Hi Marc, On 1/23/2021 6:24 AM, Catalin Marinas wrote: > On Mon, Jan 18, 2021 at 09:45:31AM +0000, Marc Zyngier wrote: >> In order to be able to disable BTI at runtime, whether it is >> for testing purposes, or to work around HW issues, let's add >> support for overriding the ID_AA64PFR1_EL1.BTI field. >> >> This is further mapped on the arm64.nobti command-line alias. >> >> Signed-off-by: Marc Zyngier > Reviewed-by: Catalin Marinas Verified this Series for BTI as well for command line control. With arm64.nobti: BTI is disabled on both primary and secondary cores as expected(verified page table entries). HWCAPs show no BTI support and kernel instructions are being treated as NOPs. We don't have plan to repeat the test on v5 as there are not major changes here. Tested-by: Srinivas Ramana _______________________________________________ kvmarm mailing list kvmarm@lists.cs.columbia.edu https://lists.cs.columbia.edu/mailman/listinfo/kvmarm