Received: by 10.223.185.116 with SMTP id b49csp2732755wrg; Mon, 5 Mar 2018 07:53:54 -0800 (PST) X-Google-Smtp-Source: AG47ELuspkedQi1HQ1uYmhaxJu9+FPKgx5KYMhEk5ykqhcxUJXkJhiEW+anG8TP1z2EJQyxv3GY4 X-Received: by 10.99.122.12 with SMTP id v12mr12694413pgc.128.1520265233967; Mon, 05 Mar 2018 07:53:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520265233; cv=none; d=google.com; s=arc-20160816; b=O/LzDvjfsqjf5FDfkPrCBZvezgPAm2h1iHKDcwDofiz9ebfqhq5FQk/MkPsyzBVttK qigxrmr7lJSdKcoaEgqAOvE0CEUyBE0Nu9WoA4jLnnLnKixdfbBRCqUFOhAsJouWW82u fz2ZKedGr47CVGBAYK8cSsTh6VdjcPRPOrsuorUfOgPIkkODx0B3rYeevfWHwZOEJ7um ad5m5e2MBEeVbC6GZh89CePNEDnV4DrOPksPvqJ/duZ8SdRFxfcY8kWeZBOsCnB2Bv1w uRWSNzQ77l6PJVi1zty1Qh6O602gyyzTGV4w243LOtvjCRVLqnhJHWo8laEF6VPT6L9s CfkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dmarc-filter:dkim-signature :dkim-signature:arc-authentication-results; bh=TbcZ0GP6Y7IRqpy50u2VRp8bErza0LLUhLuiBi02iS4=; b=o/WP9INCO85HsKosy8rrxTR6Wd2wKH9XDtRmuyx93cotU1SFQFHlqj3zvPZU8Im6XK IPLWKScN/VbdhwcLsJUwTgX8z9awEQNOn33S7hJTtg2ZA+0HfLXlWFUZNXKZMDyEehtF u/4rhrWpAdWgyocFrorsWWQSZ7jCj/obLiHJPWd8Yk8yWeJ3vriWZZJ8xY6XccY8nnJb vLBr4O3EMjzmG+cRggrOtuAGaNMQfA0zuJDF8vXpxCIj/w8XF7PeuX24y8yYggq7YsT5 3SvhNhLK8vegHZyPR9CUfQUnzb4VloKNSObURe9VEeQiSEps8u1RzbZvwdwkrgfJSWkA JDWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=IJQs4Oxn; dkim=pass header.i=@codeaurora.org header.s=default header.b=IJQs4Oxn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e10si151014pgu.428.2018.03.05.07.53.39; Mon, 05 Mar 2018 07:53:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=IJQs4Oxn; dkim=pass header.i=@codeaurora.org header.s=default header.b=IJQs4Oxn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752321AbeCEPw3 (ORCPT + 99 others); Mon, 5 Mar 2018 10:52:29 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:39764 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751311AbeCEPwW (ORCPT ); Mon, 5 Mar 2018 10:52:22 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id CA1B260848; Mon, 5 Mar 2018 15:52:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1520265141; bh=7ddr+ddPiftXPEooC7sx62uKqdba99KU4EKIx/nRzLE=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=IJQs4OxnA4LnmnfRSajLmmrvAIwEUkpjpboeHcr8fpr7kdoGpmT0travAGii3IGkh PDdxZckp54JQd0Ud73M/Fw9aPAhGvohK4gRKgThku7TE7clAhqha0ZNyMCXjtefIkd d44mqbqWPUz/JMenoCs41vI4SUygT+y1i7bHaHzA= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from mail-ot0-f179.google.com (mail-ot0-f179.google.com [74.125.82.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: timur@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 5EE0E6043F for ; Mon, 5 Mar 2018 15:52:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1520265141; bh=7ddr+ddPiftXPEooC7sx62uKqdba99KU4EKIx/nRzLE=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=IJQs4OxnA4LnmnfRSajLmmrvAIwEUkpjpboeHcr8fpr7kdoGpmT0travAGii3IGkh PDdxZckp54JQd0Ud73M/Fw9aPAhGvohK4gRKgThku7TE7clAhqha0ZNyMCXjtefIkd d44mqbqWPUz/JMenoCs41vI4SUygT+y1i7bHaHzA= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 5EE0E6043F Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=timur@codeaurora.org Received: by mail-ot0-f179.google.com with SMTP id n74so15336494ota.1 for ; Mon, 05 Mar 2018 07:52:21 -0800 (PST) X-Gm-Message-State: APf1xPCd6qGLMYAh64hmsLjEkR9H5lgSLFK4nq2zWKGz2KBySIytP0MG yoxAWI0xPXTQPZsMq05Gs/ugFWxLOaOlids1Gmk= X-Received: by 10.157.60.165 with SMTP id z34mr11231401otc.322.1520265140772; Mon, 05 Mar 2018 07:52:20 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.112.209 with HTTP; Mon, 5 Mar 2018 07:52:19 -0800 (PST) In-Reply-To: <1520027418-10646-1-git-send-email-shankerd@codeaurora.org> References: <1520027418-10646-1-git-send-email-shankerd@codeaurora.org> From: Timur Tabi Date: Mon, 5 Mar 2018 09:52:19 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] arm64: KVM: Use SMCCC_ARCH_WORKAROUND_1 for Falkor BP hardening To: Shanker Donthineni Cc: Marc Zyngier , Will Deacon , linux-kernel , linux-arm-kernel , Catalin Marinas , kvmarm , Thomas Speier , Vikram Sethi , Christoffer Dall , Sean Campbell Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 2, 2018 at 3:50 PM, Shanker Donthineni wrote: > diff --git a/arch/arm64/include/asm/cpucaps.h b/arch/arm64/include/asm/cpucaps.h > index bb26382..6ecc249 100644 > --- a/arch/arm64/include/asm/cpucaps.h > +++ b/arch/arm64/include/asm/cpucaps.h > @@ -43,7 +43,7 @@ > #define ARM64_SVE 22 > #define ARM64_UNMAP_KERNEL_AT_EL0 23 > #define ARM64_HARDEN_BRANCH_PREDICTOR 24 > -#define ARM64_HARDEN_BP_POST_GUEST_EXIT 25 > +/* #define ARM64_UNALLOCATED_ENTRY 25 */ Why not just delete the entry? Is ARM64_NCAPS never supposed to get smaller?