Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3386604pxj; Tue, 1 Jun 2021 04:14:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHkYPAFslky+stbr7UAdR4fUoz+5yilEwmAHqVI/CMAijKT2hhT6FEM/9GtBB/6FSe2DAL X-Received: by 2002:a17:906:495:: with SMTP id f21mr10424955eja.510.1622546066138; Tue, 01 Jun 2021 04:14:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622546066; cv=none; d=google.com; s=arc-20160816; b=sQTPYfuEh3sd1kpsioq46rGnQm1LBN82CAcoSWjS6goQs0wUqnoh5rlusFMmvLc93D GOr8okb9Nq4sdyvEmIeq6lpGsWo2jNaa/HvakEuBXGU5wgpDzuOp15nfjrtOeB+gTPc6 6p1cDvxux/XvH5b/bdvP9hmsxOZwVl5KTLPqJwSiuc6mO8JBxvMtp9YDjVnhACzD9r2E hCjr5WXusuMJrHF62nVIjmNccUc3z8iCqk57c1cmwLfDQgcp2oYnybT8iGQuuYI+LcLg UHWofwDtlWIHZbWBISKxlICm4SC1Kf6iJI3HnH4QfrRehGPyJoTMZAlZt+mOu4PD6sb7 +hgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=AyyrgNegJg2FdVZ8pLbCJI3Xb9zOZIo8/vNvutT32xg=; b=cxKkqViMEOR1admgfvRPvfou3GdECG3eqbxU3koo6bMfy9IxqiJtfADv92dZ4XuVw6 joo1rDg/TXqT0wgA6z8F8pZ1DlVqENlJPa9nYzCayNK+KrSE9dIzF742DznyVE2XuIdQ 5m0+6tGdMA650QjTnvSHKfAMOjWi1zzScct9HgcUoq12opylLmwSfCGNgyb0AGVTUba2 G77G3hUCaYtW3oHbLwzd0XAgp1D6UdreLUCFHPMBywDMZiwecHCtz8hGM+k6/Nzbgu9z 2PN5vQGVEEbCphWeVX9fMgUaN7sVdzrHktQwH0W6hHU7J+wwy1E/Mc5nt2ahTIoBvWBB oXMw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c22si8308479eja.30.2021.06.01.04.14.02; Tue, 01 Jun 2021 04:14:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233336AbhFALOl (ORCPT + 99 others); Tue, 1 Jun 2021 07:14:41 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:6112 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231726AbhFALOi (ORCPT ); Tue, 1 Jun 2021 07:14:38 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4FvTw31zfwzYmbf; Tue, 1 Jun 2021 19:10:11 +0800 (CST) Received: from dggema764-chm.china.huawei.com (10.1.198.206) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Tue, 1 Jun 2021 19:12:54 +0800 Received: from DESKTOP-8RFUVS3.china.huawei.com (10.174.185.179) by dggema764-chm.china.huawei.com (10.1.198.206) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Tue, 1 Jun 2021 19:12:54 +0800 From: Zenghui Yu To: , CC: , , , , , Subject: [PATCH stable-5.12.y backport 0/2] KVM: arm64: Commit exception state on exit to userspace Date: Tue, 1 Jun 2021 19:12:36 +0800 Message-ID: <20210601111238.1059-1-yuzenghui@huawei.com> X-Mailer: git-send-email 2.23.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.174.185.179] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggema764-chm.china.huawei.com (10.1.198.206) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As promised on the list [0], this series aims to backport 3 upstream commits [1,2,3] into 5.12-stable tree. Patch #1 is already in the queue and therefore not included. Patch #2 can be applied now by manually adding the __KVM_HOST_SMCCC_FUNC___kvm_adjust_pc macro (please review). Patch #3 can be applied cleanly then (after #2). I've slightly tested it on my 920 (boot test and the whole kvm-unit-tests), on top of the latest linux-stable-rc/linux-5.12.y. Please consider taking them for 5.12-stable. [0] https://lore.kernel.org/r/0d9f123c-e9f7-7481-143d-efd488873082@huawei.com [1] https://git.kernel.org/torvalds/c/f5e30680616a [2] https://git.kernel.org/torvalds/c/26778aaa134a [3] https://git.kernel.org/torvalds/c/e3e880bb1518 Marc Zyngier (1): KVM: arm64: Commit pending PC adjustemnts before returning to userspace Zenghui Yu (1): KVM: arm64: Resolve all pending PC updates before immediate exit arch/arm64/include/asm/kvm_asm.h | 1 + arch/arm64/kvm/arm.c | 20 +++++++++++++++++--- arch/arm64/kvm/hyp/exception.c | 4 ++-- arch/arm64/kvm/hyp/nvhe/hyp-main.c | 8 ++++++++ 4 files changed, 28 insertions(+), 5 deletions(-) -- 2.19.1