Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5530502rwd; Mon, 5 Jun 2023 05:12:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5aQm4KO1HUueURbtVY7Tntkt6aTBPr6iYZMsR/FajPeEpq0KE9F7JMKEcsbDt4Zg8jZJpe X-Received: by 2002:a17:903:481:b0:1b0:348f:c48c with SMTP id jj1-20020a170903048100b001b0348fc48cmr3552835plb.2.1685967129613; Mon, 05 Jun 2023 05:12:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685967129; cv=none; d=google.com; s=arc-20160816; b=StbkS+RBbeAKfU5UzWvhw8vjVErgruv3cY6O0vWoFWfOsEtlBtI8HwKkoA45KmT9Be wVdkOnjVtQFGNJcTuQuVUthMjhYXt+pEfHxrJE8AgDRx1+OPR/waBuo6U3QPIqaWStju AZp5YTIZep7FMxyhFV9B6xh2IbAGrWnSAmccn7jRkFYOroSC+lMQ2qcP6Dbg4Kes6Z9A 05fTD7bzIG0uobn75TfPESg6k92q+5qp1yJSAEfk6+6kjigO6ucxivkiGpsWAz0qsJbd E3frv/6vTG1hV0HX5V+ys1r6KNYIc7p5a65TA7FJJNNuI0P1JijdrBjPjf3u6WfhdYJn ELXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=ugJVarsnlHOEzwweSiCuZ2vrR/ODWTVnLkAo78CC9Uc=; b=pqq3VsAxONAUPA9fgn9KIfIHW7lXkZQrjYDoivW6tLCYwt1/DNIu3qaSPehrLAATT4 XYGr/Oy9HctvJpGNhmoB8mKeONJR1KpMUHSTED5emkomMI2iWRIT4hExc1zdgdWkmceV LjWWbdvK1JJ6Zg7IiLwC3/+VQ9Q7yGopC01Syba/7Za85Jrfj3PNANjww+NHUalq1E/U w7bcl9047ajxrQY31BGNgeoU2qV3uJQrM4+OjXedwsOBO3lNjoRYzKUL39sLGUK4Q8Jr +LpcC7UFWrGH7byxPVr1s2FZzurBJR2RgdOKNF3PJDvioCvubhbYZmub4oKZ7Vims5a+ sQqA== 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 z4-20020a1709027e8400b001b049396666si5241193pla.601.2023.06.05.05.11.56; Mon, 05 Jun 2023 05:12:09 -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 S233238AbjFEMFI (ORCPT + 99 others); Mon, 5 Jun 2023 08:05:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229806AbjFEMFH (ORCPT ); Mon, 5 Jun 2023 08:05:07 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05DD092 for ; Mon, 5 Jun 2023 05:05:06 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8F12861157 for ; Mon, 5 Jun 2023 12:05:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8F4EAC433EF; Mon, 5 Jun 2023 12:05:02 +0000 (UTC) Date: Mon, 5 Jun 2023 13:04:59 +0100 From: Catalin Marinas To: Shaoqin Huang Cc: Kristina Martsenko , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, Will Deacon , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , Mark Rutland , Mark Brown , Luis Machado , Vladimir Murzin , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 07/11] arm64: mops: handle MOPS exceptions Message-ID: References: <20230509142235.3284028-1-kristina.martsenko@arm.com> <20230509142235.3284028-8-kristina.martsenko@arm.com> <628463d5-b9df-51bd-8e1f-b0a41a928d85@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <628463d5-b9df-51bd-8e1f-b0a41a928d85@redhat.com> X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED,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 Mon, Jun 05, 2023 at 07:43:27PM +0800, Shaoqin Huang wrote: > Hi Kristina, > > On 5/9/23 22:22, Kristina Martsenko wrote: > > The memory copy/set instructions added as part of FEAT_MOPS can take an > > exception (e.g. page fault) part-way through their execution and resume > > execution afterwards. > > > > If however the task is re-scheduled and execution resumes on a different > > CPU, then the CPU may take a new type of exception to indicate this. > > This is because the architecture allows two options (Option A and Option > > B) to implement the instructions and a heterogeneous system can have > > different implementations between CPUs. > > > > In this case the OS has to reset the registers and restart execution > > from the prologue instruction. The algorithm for doing this is provided > > as part of the Arm ARM. > > What is the Arm ARM? I'm not quite understand it. The Arm Architecture Reference Manual: https://developer.arm.com/documentation/ddi0487/latest (the acronym we pretty well known among the arm/arm64 developers) -- Catalin