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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 65818CFC51F for ; Sat, 22 Nov 2025 16:23:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: References:In-Reply-To:Subject:Cc:To:From:Message-ID:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=en6w0ZpiEIC6JLAbPW1FRYh96XeVH0EnjXgBtQhwF24=; b=LsS2c7Di2Sd8LxiRw8X+hy2fEn M1mymXKWwYmNi+EhF6x9mOwdrgdkMj5btDiohoj4nJa4RJQGvfnYY4hfOYvgCLT8ofBafaC+y7G/8 mUlh2ZZQxIy6zsYJtdV0Xkp4Y+lcP9Mx0OM1AoN2Q7aH/udCSk1Dd9916RYtaZArTRjcHRvem3Yru Yp4F835DT0tCzAgBrSvyHcBaW0EsLB65+6WI2fP4hfbjGsWU8dKJJMyxe7NihREINgmuhZJ2x2wed /QEAbAV+vPtwnB+WfQ7+sOkkeYjnimBKeGcxi57r4G0zvv9oC1p3X32u88rB9Jn4zMEMhEGkYMBWk oy0N4V/A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vMqOn-00000009jby-2RqH; Sat, 22 Nov 2025 16:23:45 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vMqOk-00000009jbX-3CPV for linux-arm-kernel@lists.infradead.org; Sat, 22 Nov 2025 16:23:43 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id C20D343AC8; Sat, 22 Nov 2025 16:23:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 96C25C113D0; Sat, 22 Nov 2025 16:23:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1763828621; bh=KMqqBwj44p4qphVJeUmSKSm0+fweFHnjC7BLOlRrR24=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=mMlpZKx8zmKMBNInoh6V2NVjfulX4oK1hI7skmvA6TOELnGW85vTcdTsxHj//sv1/ B9qCzKTzjP9oMGV0O8tR9u3ERVXloUcMPn/wLJAC/ChOxfKHKj3IMB2p3vtchPIYwE Bqd4MB/TuRSrc9hjCw9lCYRl3/BWJNsjfqbLRmGqO0yCT52sZX2qLuebB/lAVe+0g1 Rb5kNzj7z7lYpB2LWxbB4pxozpNnHNC+0cJNhMjw3v5jR1Sv3gPz75UC8OmwFPngk7 pz4gme5hMZ0VFgsQhKHSiK7GT/3IoEBZw8kMuBREK7GK1JwcDVYWEuaN6Oh4/UdbD5 93vPPP13VtrgA== Received: from sofa.misterjones.org ([185.219.108.64] helo=lobster-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vMqOh-00000007W12-19Ed; Sat, 22 Nov 2025 16:23:39 +0000 Date: Sat, 22 Nov 2025 16:23:38 +0000 Message-ID: <87jyzif33p.wl-maz@kernel.org> From: Marc Zyngier To: z00939249 Cc: , , , , , , , , , , , , , , , , Subject: Re: [PATCH v2 0/5] Support the FEAT_HDBSS introduced in Armv9.5 In-Reply-To: <90180222-5399-442c-b7a3-e65b7d0e1378@huawei.com> References: <20251121092342.3393318-1-zhengtian10@huawei.com> <86zf8fr9r2.wl-maz@kernel.org> <90180222-5399-442c-b7a3-e65b7d0e1378@huawei.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/30.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: zhengtian10@huawei.com, oliver.upton@linux.dev, catalin.marinas@arm.com, corbet@lwn.net, pbonzini@redhat.com, will@kernel.org, linux-kernel@vger.kernel.org, yuzenghui@huawei.com, wangzhou1@hisilicon.com, yezhenyu2@huawei.com, xiexiangyou@huawei.com, zhengchuan@huawei.com, joey.gouly@arm.com, kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, suzuki.poulose@arm.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20251122_082342_839822_5FAAC8DD X-CRM114-Status: GOOD ( 28.40 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, 21 Nov 2025 10:21:16 +0000, z00939249 wrote: > > On 2025/11/21 17:54, Marc Zyngier wrote: > > On Fri, 21 Nov 2025 09:23:37 +0000, > > Tian Zheng wrote: > >> > >> This series of patches add support to the Hardware Dirty state tracking > >> Structure(HDBSS) feature, which is introduced by the ARM architecture > >> in the DDI0601(ID121123) version. > >> > >> The HDBSS feature is an extension to the architecture that enhances > >> tracking translation table descriptors' dirty state, identified as > >> FEAT_HDBSS. The goal of this feature is to reduce the cost of surveying > >> for dirtied granules, with minimal effect on recording when a granule > >> has been dirtied. > >> > >> The purpose of this feature is to make the execution overhead of live > >> migration lower to both the guest and the host, compared to existing > >> approaches (write-protect or search stage 2 tables). > >> > >> After these patches, users(such as qemu) can use the > >> KVM_CAP_ARM_HW_DIRTY_STATE_TRACK ioctl to enable or disable the HDBSS > >> feature before and after the live migration. > >> > >> This feature is similar to Intel's Page Modification Logging (PML), > >> offering hardware-assisted dirty tracking to reduce live migration > >> overhead. With PML support expanding beyond Intel, HDBSS introduces a > >> comparable mechanism for ARM. > > > > Where is the change log describing what was changed compared to the > > previous version? > > > > We gave you extensive comments back in March. You never replied to the > > feedback. And you now dump a whole set of patches, 6 months later, > > without the slightest indication of what has changed? > > > > Why should we make the effort to review this again? > > Apologies for the lack of proper changelog and the delayed follow-up > on the feedback provided in March. This was an oversight on our part > during the transition of maintainership for the HDBSS patch series. We > sincerely appreciate the thorough comments you shared earlier and > regret not responding in a timely manner. > > Below is a summary of the changes made from v1 to v2. > > v1: > https://lore.kernel.org/kvm/20250311040321.1460-1-yezhenyu2@huawei.com/ > > v1->v2 changes: > - Removed redundant macro definitions and switched to tool-generated. > - Split HDBSS interface and implementation into separate patches. > - Integrate system_supports_hdbss() into ARM feature initialization. > - Refactored HDBSS data structure to store meaningful values instead > of raw register contents. > - Fixed permission checks when applying DBM bits in page tables to > prevent potential memory corruption. > - Removed unnecessary dsb instructions. > - Drop the debugging printks. > - Merged the two patches "using ioctl to enable/disable the HDBSS > feature" and "support to handle the HDBSSF event" into one. Thanks for the update. Please make sure you always include such description in future version of this series. I hope the next version won't take as long (over 8 months between versions is counter productive). M. -- Jazz isn't dead. It just smells funny.