Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp822108pxu; Wed, 2 Dec 2020 04:28:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJwQkF/4g/THuGmHXlvaaz5y/Gv1eh03VC1nAxfga6oCLUpc7DaHI/ooDy+ypO9qjV0idTve X-Received: by 2002:a50:da08:: with SMTP id z8mr2336504edj.170.1606912121071; Wed, 02 Dec 2020 04:28:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606912121; cv=none; d=google.com; s=arc-20160816; b=lqc9rRGWWgHlw57CnttakuBSjtaYbp3CVFXthbe00od3lhDQclxNYaqOnsuyBXOWUj otlfgKbaWlpy/XFE88fv1PH6dQ6Tfhe6HPAMJ1ESgkG9e+7GpHeXFEg8BLgbtz/FTwF/ TEoB1p3SdfK3me/+N0X2+bnt+CiKWgwLEX6b+6zSkkA9r7ooRUgCvHlVPayOcxlkvC/0 PULhv8LWA3qYz/PntGKMIrHALcyYfmgR6KCsewyrqD3pUF83tEgQb1C11rRweHPNW2Re 24hEZw9LZi6pdx36iYm0ZX1Oj5ED1ioMAhwU4MvEBVNY9I6PmktAuruLio5AYJvnhaPv ajBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version; bh=TvYiC94buYumHGnb9jVI/4aE0pmbrn0S7/SU0MasWAk=; b=nr6YiL6j7OvNenJiWOLkaR1VPPg2zWqoD0L8RIoSF7apS1qkmNJSsfvXrzkqrd6DuT sQVhwxR7bSPrpN7DRhx7AVWMBdEnsbbVd5fi+1K+mBoVwOqsfMDxxR76ZHkt6JtOmwK0 B8/lk6xEWhw6YIv1jlGD7VwcxeoNwtnDd8N0Qly51Fb7txW+BVUryZynRAA/i/pnWo5M wJKzfzSubooW+v4QEDRY60UnXl7K9rgA/yOEISTm+P9ol3rIWcj5ThGb3d9/BO9jybB9 KBKPlOqgy7gWnrUEQlCY1H9ZpvCtG2k5sSzt0fdu6OzbHG18q8jDZjh7bgP0G2qw3uwK wfXw== 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 q3si756002eja.541.2020.12.02.04.28.17; Wed, 02 Dec 2020 04:28:41 -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 S1729911AbgLBMX4 (ORCPT + 99 others); Wed, 2 Dec 2020 07:23:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:52294 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726066AbgLBMXz (ORCPT ); Wed, 2 Dec 2020 07:23:55 -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 5B2C6221FE; Wed, 2 Dec 2020 12:23:14 +0000 (UTC) Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94) (envelope-from ) id 1kkRA8-00FKbJ-2J; Wed, 02 Dec 2020 12:23:12 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Wed, 02 Dec 2020 12:23:11 +0000 From: Marc Zyngier To: "wangyanan (Y)" Cc: Will Deacon , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Catalin Marinas , James Morse , Julien Thierry , Suzuki K Poulose , Gavin Shan , Quentin Perret , wanghaibin.wang@huawei.com, yezengruan@huawei.com, zhukeqian1@huawei.com, yuzenghui@huawei.com, jiangkunkun@huawei.com, wangjingyi11@huawei.com, lushenming@huawei.com Subject: Re: [PATCH v2 0/3] Fix several bugs in KVM stage 2 translation In-Reply-To: <74540986-6197-34bc-cd53-850472091ee3@huawei.com> References: <20201201201034.116760-1-wangyanan55@huawei.com> <20201201205948.GA28178@willie-the-truck> <74540986-6197-34bc-cd53-850472091ee3@huawei.com> User-Agent: Roundcube Webmail/1.4.9 Message-ID: <616980dcddd5c7e832c1068f6fa91449@kernel.org> X-Sender: maz@kernel.org X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: wangyanan55@huawei.com, will@kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, catalin.marinas@arm.com, james.morse@arm.com, julien.thierry.kdev@gmail.com, suzuki.poulose@arm.com, gshan@redhat.com, qperret@google.com, wanghaibin.wang@huawei.com, yezengruan@huawei.com, zhukeqian1@huawei.com, yuzenghui@huawei.com, jiangkunkun@huawei.com, wangjingyi11@huawei.com, lushenming@huawei.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 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. > 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. -- Jazz is not dead. It just smells funny...