Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4155679rwd; Tue, 30 May 2023 01:02:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5SJ6IlHYTKcvz5SOTFrsP9KxrAvWh1fqNX4OsXNuLsfbLqvdvq/6iYEb/CGBpngl+beC3F X-Received: by 2002:a05:6a20:be23:b0:10c:e60d:537a with SMTP id ge35-20020a056a20be2300b0010ce60d537amr1693433pzb.21.1685433734108; Tue, 30 May 2023 01:02:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685433734; cv=none; d=google.com; s=arc-20160816; b=b8+aIUXpYBZlrgUp2+Ea6JWUjtFOeeS/jjlrUBZ10phjaE1vbtWIu7hF/LUiNqYIqv f1LJFMleWr0j5eJKglTyflJ9nSgnh8VXgTXqtPtMLVonhFv+0iZORDVLTgtHpbAAb+Fu z+7jE3ezPllWvtctpxVOfRXLxo056inVTBXoO0tui2TzkkGpZDphauVuhC6sXPhk5KHn pC3FLrceaBcyXq5kWdIhFu5UfRugzS1ZywOLn4sHtNAtaU97U+IsUwQSLNLjq/87vv99 ct8LMA2NZ0qHuLXo/a9VJrpbK7A9cbNd7KEjLfgW982v5GDCydKu3l7WCLYK2wvW/iJA PajQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature; bh=grWNSfaQm6oHjgbc+Iux4p1Fpzgcta1SRGTM0vpeOV8=; b=WiE+YS+rfuRdvb5ixsII9GsB/cEclpvH07lLSgqcHqVzeVJT1P1kbnDW+jCj8LHXxy 55Ta9y71WlMSskU047x8hnRnAcm2uf3DxB54h1QI4ydJ1KAymB+rKL5SxoKEcs2DB1U6 gVM4WtDdMNzVSXrKjahfiydMWH1vcwWhLRlPmHJXQE4ldRmN13rzXPiq8H8TKwbbvUgd UqdyuiN4aEZxhT6cYWfLMDyyRAeqa5oN8sIGvXzDgLCB7JeAL9HE8Y8scEbhheSNq+KJ xplEEcRBoYtMsltDK1JPbAP7LYDGiBJl4h+KRk1MVfti3ExwmQKPJ5PZ3IIlSxyOtgU0 4MjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AwI2o0uo; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v135-20020a63618d000000b0053415af4631si10759739pgb.73.2023.05.30.01.01.59; Tue, 30 May 2023 01:02:14 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AwI2o0uo; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229796AbjE3HoC (ORCPT + 99 others); Tue, 30 May 2023 03:44:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231299AbjE3HnZ (ORCPT ); Tue, 30 May 2023 03:43:25 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF4B519D for ; Tue, 30 May 2023 00:43:04 -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 8ACA962110 for ; Tue, 30 May 2023 07:41:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E86F7C433D2; Tue, 30 May 2023 07:41:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685432498; bh=49h+SolxOYzwjmP6VMR9DIpbnad7Kor0ec2BjVpwFLo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=AwI2o0uoLTFksZ901spytwpQfsXr3CNw/5v36F46FNy3BSwZInX9NU72yPANZ/lEN d6iTn2iPcmx52Gk0WAAFVGv0fOGPi/WprpmQVtCEN4HjUgfn0oCsCaRIii9BSFse8X gg8NoovNMkpwyz9V7OtO0nTaXhi+58J10gGhAZ/jM42zR1/vlChPTc9PQut5I4FtSu 6Ie6hxO6sHEPJL7RhThqaZUWqa0+Ir3hf3QOpC04VQmFhtErZ3bUwiKPeE0xy4xGDM z84QJfthzFia+m3Zl97CGrnCcK9Y6E7P7YdCvAfKWszGz3CIIa6fbUf7d692yCSQUG c6xTYbStjeV5A== Received: from ip-185-104-136-29.ptr.icomera.net ([185.104.136.29] helo=wait-a-minute.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1q3tz5-001EQT-LZ; Tue, 30 May 2023 08:41:35 +0100 Date: Tue, 30 May 2023 08:41:33 +0100 Message-ID: <87o7m2jmfm.wl-maz@kernel.org> From: Marc Zyngier To: Akihiko Odaki Cc: James Morse , Suzuki K Poulose , Oliver Upton , Zenghui Yu , Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] KVM: arm64: Populate fault info for watchpoint In-Reply-To: <20230530024651.10014-1-akihiko.odaki@daynix.com> References: <20230530024651.10014-1-akihiko.odaki@daynix.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.2 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.104.136.29 X-SA-Exim-Rcpt-To: akihiko.odaki@daynix.com, james.morse@arm.com, suzuki.poulose@arm.com, oliver.upton@linux.dev, yuzenghui@huawei.com, catalin.marinas@arm.com, will@kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Tue, 30 May 2023 03:46:51 +0100, Akihiko Odaki wrote: > > When handling ESR_ELx_EC_WATCHPT_LOW, far_el2 member of struct > kvm_vcpu_fault_info will be copied to far member of struct > kvm_debug_exit_arch and exposed to the userspace. The userspace will > see stale values from older faults if the fault info does not get > populated. > > Fixes: 8fb2046180a0 ("KVM: arm64: Move early handlers to per-EC handlers") > Suggested-by: Marc Zyngier > Signed-off-by: Akihiko Odaki Thanks for respining this quickly. I've added a Cc: stable as we need to get this backported. Cheers, M. -- Without deviation from the norm, progress is not possible.