Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2BA56C05027 for ; Mon, 23 Jan 2023 20:26:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232137AbjAWU0k (ORCPT ); Mon, 23 Jan 2023 15:26:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231674AbjAWU0i (ORCPT ); Mon, 23 Jan 2023 15:26:38 -0500 Received: from out2.migadu.com (out2.migadu.com [188.165.223.204]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABC476A59 for ; Mon, 23 Jan 2023 12:26:37 -0800 (PST) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1674505596; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7o+6OInRK21WLYT3LKlDLpVnxva9ZKkaUMjhl61Gj4k=; b=g/OURUyB3DyGcemCmY+jBM/dm8sQVhzfXFQcK6PoJv7G8D61ZtVkUW8v7537uTEp6kRcG8 vJpiGQEz/4gTPnQrqA2Wgz4cdSIpNVpWVhCemY2Gytk7yRagGQaXZygB9N/XyJp/6fS0De TI3fCKaDrzXwKX8SFMw1ZP7fkCs1uLY= From: Oliver Upton To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvmarm@lists.linux.dev, Dong Bo Cc: Oliver Upton , James Morse , Alexandru Elisei , Will Deacon , Catalin Marinas , Nianyao Tang , Marc Zyngier , Suzuki K Poulose Subject: Re: [PATCH] KVM: arm64: Synchronize SMEN on vcpu schedule out Date: Mon, 23 Jan 2023 20:26:16 +0000 Message-Id: <167450416037.2570834.653110952434883435.b4-ty@linux.dev> In-Reply-To: <20221220105024.13484-1-dongbo4@huawei.com> References: <20221220105024.13484-1-dongbo4@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 20 Dec 2022 18:50:24 +0800, Dong Bo wrote: > From: Nianyao Tang > > If we have VHE and need to reenable SME for host in > kvm_arch_vcpu_put_fp, CPACR.SMEN is modified from 0 to 1. Trap > control for reading SVCR is modified from enable to disable. > Synchronization is needed before reading SVCR later in > fpsimd_save, or it may cause sync exception which can not be > handled by host. > > [...] Applied to kvmarm/next, thanks! [1/1] KVM: arm64: Synchronize SMEN on vcpu schedule out https://git.kernel.org/kvmarm/kvmarm/c/59d78a2ec0e9 -- Best, Oliver