From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 91999C433B4 for ; Fri, 14 May 2021 12:34:49 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5CC83613D6 for ; Fri, 14 May 2021 12:34:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5CC83613D6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:CC:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=40Xv6KIM8YqOtypBvwUrejMNQ1EcXwHWCLnVvTFxLQQ=; b=EvZyvcWDRt72/CtdZjqTaqqy9 hhfjHfRzhR0UlPRbbXZ9RDxFi/CsgCQw5rW8X9s+7QUwB3705lbwMXfABReKiWc7iassbv8w6qQqz C+hyiBfGOmcN4SpYvNL/dpOdUrAf0fM3VAEa/GvbLgvVVC7Ok/mYEJHkTr6+WBzN0Lad6BMob6Q/A eiKUh8cG5tdDbz638FsGmJhIgLBsc0Og0Uwe+RJ3Jn7Ja28G0tHfB1u7kyoqGDzM+JDWoNCZ4Li65 XEeSiWnG4/PFV0goGDBuzMrY+XUS1CGLEXtVwvJimLTYMWLh4769pRTtMBUMUsts/8mWAiGhYB/zJ QmpnML+Kw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lhX04-0082iL-Gw; Fri, 14 May 2021 12:33:05 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lhX02-0082he-BI for linux-arm-kernel@desiato.infradead.org; Fri, 14 May 2021 12:33:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:CC:To: Subject:Sender:Reply-To:Content-ID:Content-Description; bh=3DKkH03Di7IOxYazmox5ckiHFXUv+Dr2eysACk+8OLM=; b=DnaLBz0pbUQuQQ685R6f2oU977 g+Xd55HCiOg9g8Ir5uZROuo88R88+qd9lshRYKn75by6zEA/81jynMgB+sxkMaTUtYq/dmdH1ahJq yk0P0rrKqJRu0UGa49V68S6KRqsRtU6m+CF8UfEyic2sY/WVOCc3YAF3ghSivxoS1VSrlCfRzNrL9 5M/YqyPvWybZaGZ8Ef2DsFovQzsWZtND9jy4dveKoeJqDreCcaLuHbrxM14Qe536owiA0e8k4zpPr PrAmH/whGowFmG8mFccHenQ0/DSVAxz6d6eQA5bUZ/bd4HLqU1EsZ8PgX1IVVM16C3HK/a4FB6fBk s8V1hGYA==; Received: from szxga05-in.huawei.com ([45.249.212.191]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lhWzz-00ByU1-Bm for linux-arm-kernel@lists.infradead.org; Fri, 14 May 2021 12:33:00 +0000 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4FhSWk1LtjzPxXP; Fri, 14 May 2021 20:29:22 +0800 (CST) Received: from [10.174.185.179] (10.174.185.179) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.498.0; Fri, 14 May 2021 20:32:38 +0800 Subject: Re: [PATCH v2 0/2] KVM: arm64: Fixup PC updates on exit to userspace To: Marc Zyngier CC: , , , Fuad Tabba , "James Morse" , Suzuki K Poulose , Alexandru Elisei , References: <20210514104042.1929168-1-maz@kernel.org> From: Zenghui Yu Message-ID: <1ce3b260-f17f-0e7a-00ec-8a2aa810bf3e@huawei.com> Date: Fri, 14 May 2021 20:32:38 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <20210514104042.1929168-1-maz@kernel.org> Content-Language: en-US X-Originating-IP: [10.174.185.179] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210514_053259_589992_A9FF74DB X-CRM114-Status: GOOD ( 11.62 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Marc, On 2021/5/14 18:40, Marc Zyngier wrote: > We recently moved anything related to PC updates into the guest entry > code to help with the protected KVM effort. However, I missed a > critical point: userspace needs to be able to observe state changes > when the vcpu exits. Otherwise, live migration is a bit broken and > vcpu reset can fail (as reported by Zenghui). Not good. > > These two patches aim at fixing the above, and carry a Cc stable. > > * From v1: > - Sanitized flag checking > - Added comment about relying on __kvm_adjust_pc() being preempt-safe I had a try but failed to find the added comment ;-). Regardless, Reviewed-by: Zenghui Yu Tested-by: Zenghui Yu _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel