Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3624717pxb; Mon, 25 Jan 2021 23:51:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJwKMyuVC/LpURMwE7kiIF7xLHkwThFA8T+QBieW7+R0UCcdC6DnL2YYJvF3p6nJ1ZQ+fYek X-Received: by 2002:aa7:d511:: with SMTP id y17mr3672819edq.112.1611647511965; Mon, 25 Jan 2021 23:51:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611647511; cv=none; d=google.com; s=arc-20160816; b=yeMmWDCc+SsizBXzezmhNdZhFXuLsB8K3y5lQACVYSh/D5xvyCX4ge6XbiCa46kEIX QO3SRT/5nC6ApqXkOjd4Hbc37ZPQDqFyKYpg/0q2DCOVlhsJs8aSg1kyty1uu2uMLoET II+3JHZpA7+vZFB343kuobQebWDfSTUl8Ws0pOwR4WwieoVQ7KuhIJEFnQbandGtclut Tmdrn9XRFWHpibgFS3EZRxkBLRyJGmkb/i0QYwzlD8or7KO6EhDUWVVstR/TZ1wXabdi cUd0bvuqSCx3BUmvlKh+0CwK61+XAMPwkkZ5BMqELDvPTzeBqxsriI2hGOqkcltNr4TH z0lw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=0B2u27EFFAvFQxKPDJkzcQoyaDm5KPqB6EtZ/i2HnqA=; b=ePK8MJfSC2JxAqXheoqXKCp5ue1GttA0x9/EbQAO0dnCLITaF29xQ0vHVrpy4Dhuy+ D+2fCQwoinew9LLeFjzEv1MrO86A7U/VU6oqMwZwTK2HqPhKp1GnqcDHTtywveovGUNa pBj1N60vs7RMvNt0LnT0kU+z+mnl58xhlIZ1s1cnf4r/SexugNm+oAnsrmq14d1Hs+yu aniDTGQnlsiY0iBdIzsfsHsgmXK9tti91ulyxGEbIye6g2KTwUacjLTEY4GcNTQV1BiW U2d0eNn/4KkJtQltIh9E5m/i/NmiqIbyH+pq/diznfV4qwHADyKOnH8wP4AoiORrP6iq kdyw== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hs9si5490238ejc.78.2021.01.25.23.51.28; Mon, 25 Jan 2021 23:51:51 -0800 (PST) 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728841AbhAZHsn (ORCPT + 99 others); Tue, 26 Jan 2021 02:48:43 -0500 Received: from mail.kernel.org ([198.145.29.99]:52710 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730753AbhAYQeL (ORCPT ); Mon, 25 Jan 2021 11:34:11 -0500 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5065F22510; Mon, 25 Jan 2021 16:33:30 +0000 (UTC) Received: from 78.163-31-62.static.virginmediabusiness.co.uk ([62.31.163.78] helo=hot-poop.lan) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1l44nw-009ujO-DD; Mon, 25 Jan 2021 16:33:28 +0000 From: Marc Zyngier To: Catalin Marinas , Yanan Wang , linux-arm-kernel@lists.infradead.org, Will Deacon , kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org Cc: zhukeqian1@huawei.com, James Morse , yuzenghui@huawei.com, Suzuki K Poulose , Julien Thierry , yezengruan@huawei.com, Gavin Shan , wanghaibin.wang@huawei.com, Quentin Perret Subject: Re: [PATCH v3 0/3] Some optimization for stage-2 translation Date: Mon, 25 Jan 2021 16:33:25 +0000 Message-Id: <161159237705.2330282.4465806083809381814.b4-ty@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210114121350.123684-1-wangyanan55@huawei.com> References: <20210114121350.123684-1-wangyanan55@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 62.31.163.78 X-SA-Exim-Rcpt-To: catalin.marinas@arm.com, wangyanan55@huawei.com, linux-arm-kernel@lists.infradead.org, will@kernel.org, kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, zhukeqian1@huawei.com, james.morse@arm.com, yuzenghui@huawei.com, suzuki.poulose@arm.com, julien.thierry.kdev@gmail.com, yezengruan@huawei.com, gshan@redhat.com, wanghaibin.wang@huawei.com, qperret@google.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 14 Jan 2021 20:13:47 +0800, Yanan Wang wrote: > This patch series(v3) make some optimization for stage-2 translation. > > About patch-1: > Procedures of hyp stage-1 map and guest stage-2 map are quite different, > but they are now tied closely by function kvm_set_valid_leaf_pte(). > So adjust the relative code for ease of code maintenance in the future. > > [...] Applied to kvm-arm64/concurrent-translation-fault, thanks! [1/3] KVM: arm64: Adjust partial code of hyp stage-1 map and guest stage-2 map commit: 8ed80051c8c31d1587722fdb3af16677eba9d693 [2/3] KVM: arm64: Filter out the case of only changing permissions from stage-2 map path commit: 694d071f8d85d504055540a27f0dbe9dbf44584e [3/3] KVM: arm64: Mark the page dirty only if the fault is handled successfully commit: 509552e65ae8287178a5cdea2d734dcd2d6380ab Cheers, M. -- Without deviation from the norm, progress is not possible.