Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp68001pxp; Wed, 16 Mar 2022 00:05:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3E/FKDDBvACuEUUkvO1zjxtyQbd/Je9pSJdD8obUyEd8GAaWTXM2xmtN8uih8dNUkCdoL X-Received: by 2002:a17:907:94c1:b0:6db:67:7214 with SMTP id dn1-20020a17090794c100b006db00677214mr25390546ejc.180.1647414356433; Wed, 16 Mar 2022 00:05:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647414356; cv=none; d=google.com; s=arc-20160816; b=aDz/PE+zzbGUshOWf+p+KfUPeW2k5cm5DKWhXUwjE58zxALA2uOBQnCPQOlyOqlDyp wYFpwRuc73EB568fmAJulVemitXKisLskJjoraDBatzLlnBY5yE5iL5lF1gxSNrGmvCZ T1fhEiU0E/ESMcGpVJQnMmCnw7XlgJMH8YVWYaLlbiVy/cZPLK4Gn202hYjOHzG9F2hj 4c3ZmcJRelZd2VeApjz4VhIx55008uIyYPsBHtt1rBq3rwTh9oO1IOSYOLhx0wCr7ki9 v5hySd//PxmJLAYa+NAzKyFBFn/CHAGHgffRQfsnl+4hYYtcnjnVuxDAGTp0Fl0FjSsU CGIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:from:subject; bh=c/lWlOw/ejdEo/whVyuHcmmDy6qmZrb2LPyEPyRhwRQ=; b=mU4hO7RvI+qdhS+PmK0xj/RUugQo1WC4dXu/Kz447QB8l4BEQHiHADLKp5Pjao+wOk AmhpsQ4vPD+yKgHeNKzy4hx93ftxBAWXq/z5osPNdxNjzphkZ3rD/b1sfBrHY+I+xjJd R5RMQCywQ0B1JCQRhVHZYOfWYDsbGyuiAo5/Nym7snIiE0COExbXVp/NpKhQU6X1Imgx WCFVXSc7CxZonaD9ZB31tBWY8ofB8hC5s105+UH2J0+Qg+IveocpT/qH7SwesLf1m9ln LOfH8WeB9sJeKCkvvpex/O0vEiH6EDrJqZFOaYNw681VTnyPf+vPZ6caFEbpn0LOHi8b FEnw== 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 r12-20020a170906704c00b006cfffe0553bsi714352ejj.173.2022.03.16.00.05.20; Wed, 16 Mar 2022 00:05:56 -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 S1348257AbiCOM2x (ORCPT + 99 others); Tue, 15 Mar 2022 08:28:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348251AbiCOM2v (ORCPT ); Tue, 15 Mar 2022 08:28:51 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0F2DE532E4; Tue, 15 Mar 2022 05:27:40 -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 CED4B1474; Tue, 15 Mar 2022 05:27:39 -0700 (PDT) Received: from [10.57.90.210] (unknown [10.57.90.210]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E7D603F66F; Tue, 15 Mar 2022 05:27:38 -0700 (PDT) Subject: Re: [PATCH 5.10 38/58] KVM: arm64: Allow indirect vectors to be used without SPECTRE_V3A From: James Morse To: Greg Kroah-Hartman , Pavel Machek Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Catalin Marinas References: <20220310140812.869208747@linuxfoundation.org> <20220310140813.956533242@linuxfoundation.org> <20220310234858.GB16308@amd> Message-ID: Date: Tue, 15 Mar 2022 12:27:29 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS,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 3/15/22 12:20 PM, James Morse wrote: > On 3/11/22 6:42 AM, Greg Kroah-Hartman wrote: >> On Fri, Mar 11, 2022 at 12:48:59AM +0100, Pavel Machek wrote: >>> What is going on here? >>> >>>> commit 5bdf3437603d4af87f9c7f424b0c8aeed2420745 upstream. >>> >>> Upstream commit 5bdf is very different from this. In particular, >>> >>>>   arch/arm64/kvm/hyp/smccc_wa.S    |   66 +++++++++++++++++++++++++++++++++++++++ >>> >>> I can't find smccc_wa.S, neither in mainline, nor in -next. And it >>> looks buggy. I suspect loop_k24 should loop 24 times, but it does 8 >>> loops AFAICT. Same problem with loop_k32. > > Yup, that's a bug. Thanks for spotting it! > I'll post a replacement for this patch. Looking more closely at this: when I originally did this the 'new' code for stable was in a separate patch to make it clear it was new code. Here it looks like Greg has merged it into this patch. I'm not sure what the 'rules' are for this sort of thing, obviously Greg gets the last say. I'll try and restructure the other backports to look like this, it is certainly simpler than trrying to pull all the prerequisites for all the upstream patches in. Thanks, James