Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp838136pxu; Wed, 2 Dec 2020 04:55:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJxu75Sk/+LfPfS+6qwRRNPcizif432xlLPtn7gXXEO1zhq/Fs7FUpX5h9az57f7WLLnj3wD X-Received: by 2002:a17:906:c83b:: with SMTP id dd27mr2187311ejb.356.1606913703374; Wed, 02 Dec 2020 04:55:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606913703; cv=none; d=google.com; s=arc-20160816; b=eADY5b/5c5qYEZC21fIMkbBrPTrCHYrn18RfN1lXM1mwDV9AXfqrGQysQK6qZKgYo1 7mmDqLch4LHwUDtkREq/syI/7vvwr4VgvqMIdAwpbazqK7Uz+mv5sujl+Obf7xU1L3Vl /HQoX9fNXQcUndVRkuvmaQuonqM6uh8VW0aPPZ8YIiuZKOiKS2dR4XOESNaCXl7R2YCc MgtWWTvcqku9E/m48xMGm2VC2NbXoGxiJbWTQafdm/UXXf3MpUHfMd2ljYcBV7V6p08z wSza6Tu4ocb94yODzEowK3+v5TOdrI1C3/5bTT8b2rvVUNTVqoJ9tKFZKelXs7HS6nVS 2+BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=jDI4qLrUytAgK5qRZXUHre66xoUI9uEQvw6K3khITpw=; b=j7qcDMJRdyJ8dBQEOTenvWAmcZFH89/fMyoujShBezv11eUbGqEQlwF8v2iqssB/cU WtjbcJyMkZS9+0ndsiMVRAA73hoAXwO0WwbFuS8fPA1uUC3V0H/8uGf6ZTbIE7jE3YFm L43AtGbt8S+V4e3tE7WnqH4oyEA8r25Hjc/0FTcgHyKBFnjOannX3RU7XoUR0KpVfxNH lLCa1ri2PJKF8GJwzQLbzkUjgarcZmkFX634uMsCzogtWoE6TWrMzDxLWARNjYXnCCzT ibYKpbV1XvhHoGj6Y6jydg4xFcghQkiM1SFxV5FeGF1osRuA3MP6B3mTiOtAuDTq/89x Wg8A== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a12si788465ejg.220.2020.12.02.04.54.39; Wed, 02 Dec 2020 04:55:03 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729594AbgLBMu5 (ORCPT + 99 others); Wed, 2 Dec 2020 07:50:57 -0500 Received: from szxga03-in.huawei.com ([45.249.212.189]:2389 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727639AbgLBMu5 (ORCPT ); Wed, 2 Dec 2020 07:50:57 -0500 Received: from dggeme706-chm.china.huawei.com (unknown [172.30.72.53]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4CmJhP5YQxz50gv; Wed, 2 Dec 2020 20:49:41 +0800 (CST) Received: from [10.174.186.123] (10.174.186.123) by dggeme706-chm.china.huawei.com (10.1.199.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1913.5; Wed, 2 Dec 2020 20:50:14 +0800 Subject: Re: [PATCH v2 0/3] Fix several bugs in KVM stage 2 translation To: Marc Zyngier CC: Will Deacon , , , Catalin Marinas , James Morse , Julien Thierry , Suzuki K Poulose , Gavin Shan , Quentin Perret , , , , , , , References: <20201201201034.116760-1-wangyanan55@huawei.com> <20201201205948.GA28178@willie-the-truck> <74540986-6197-34bc-cd53-850472091ee3@huawei.com> <616980dcddd5c7e832c1068f6fa91449@kernel.org> From: "wangyanan (Y)" Message-ID: Date: Wed, 2 Dec 2020 20:50:14 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <616980dcddd5c7e832c1068f6fa91449@kernel.org> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Originating-IP: [10.174.186.123] X-ClientProxiedBy: dggeme708-chm.china.huawei.com (10.1.199.104) To dggeme706-chm.china.huawei.com (10.1.199.102) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/12/2 20:23, Marc Zyngier wrote: > Hi Yanan, > > [...] > >> BTW: there are two more things below that I want to talk about. >> >> 1.  Recently, I have been focusing on the ARMv8.4-TTRem feature which >> is aimed at changing block size in stage 2 mapping. >> >> I have a plan to implement this feature for stage 2 translation when >> splitting a block into tables or merging tables into a block. >> >> This feature supports changing block size without performing >> *break-before-make*, which might have some improvement on performance. >> >> What do you think about this? > > It would be interesting if you can demonstrate some significant > performance improvements compared to the same workload with BBM. > > I'm not completely convinced this would change much, given that > it is only when moving from a table to a block mapping that you > can elide BBM when the support level is 1 or 2. As far as I can > tell, this only happens in the "stop logging" case. > > Is that something that happens often enough to justify the added > complexity? Having to handle TLB Conflict Abort is annoying, for > example. I will take more consideration about the necessity  and maybe some tests on the performance will be made later. Thanks, Yanan > >> 2. Given that the issues we discussed before were found in practice >> when guest state changes from dirty logging to dirty logging canceled. >> >> I could add a test file testing on this case to selftests/ or kvm unit >> tests/, if it's necessary. > > That would be awesome, and I'd be very grateful if you did. It is the > second time we break this exact case, and having a reliable way to > verify it would definitely help. > > Thanks, > >         M.