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 D525BC8303F for ; Mon, 25 Aug 2025 21:49:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=M0lbC0L6QECAyCeVd5nHIM1YUSTPPTQIlf2pkW2zCoQ=; b=WdMS+w5vdbs2bO pnxeTBXBxIZvgZA1jxA8J2ae+ITF07ymmMn5SP73LN+3TZ6xPDNK7ghLYmeQNnzgWo+X6CiLor1Tw Th4k8Nob9FqATqgD1cJ852G/ZQ7U9qmSFbDZ+mWKVRcGrn8iJ+dqEP9J60AL8EjM5W4GOubzBLANR xS8PiH0TbC4XFFRrFdjv+JnT/PS3/8Cryp3yeaN+Q2/ezWe5Pvm9HZeb9/eJUyFo9SipP3v9dklvp wYzisuJ2nyI1MlcE3XHnAO02xIbrjG2bBpcwWwN3I50b1mQGXPm4L2wmJr3xG5eXJllq2ku6YQhOh k5hdOfNvzpamAxheE83w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uqf3f-00000009o9I-1RNJ; Mon, 25 Aug 2025 21:48:55 +0000 Received: from tor.source.kernel.org ([2600:3c04:e001:324:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uqf0x-00000009ndJ-00d9; Mon, 25 Aug 2025 21:46:07 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 04A06601E5; Mon, 25 Aug 2025 21:46:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 95AD6C4CEED; Mon, 25 Aug 2025 21:45:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1756158354; bh=z2K4pTnpiDqLqYIH8QVc9PQKE3DH+YA71ZyqVbqxW6o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WehF5ftNNXRo0ktcAvTwwGNFGV/EAJ74RPmJHCc1/Z17l1QEglTKoK3ibLL8gnc4t NlKz6k7fz2lmrzWRP6K+pj3xu5efQX0yAcStIUphpdlkE0hXvX1O/hxV14uaFfM9Il teNGWS4vL/IPlA1GKik4UxLjNusOjbU5D/OewsXrWcI/Ynet9r+J6j0h0Qw9udbcdx Jt5qZw5UoaBh5E3LiK4rJTYYyfwi5l7H9dDZXLKpcynQANDbCwVWm46jM36cUflkSE TgteF7/ksdzao8dEBvyhS4bxR3OBEL/v0WKy2lffmwCnCK3v1xmgFX8nRRpGli6jrU 9ptYFqpFDYbDA== Date: Mon, 25 Aug 2025 21:45:52 +0000 From: Wei Liu To: Sean Christopherson Cc: Marc Zyngier , Oliver Upton , Catalin Marinas , Will Deacon , Tianrui Zhao , Bibo Mao , Huacai Chen , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Paolo Bonzini , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Peter Zijlstra , Andy Lutomirski , "Paul E. McKenney" , Frederic Weisbecker , Neeraj Upadhyay , Joel Fernandes , Josh Triplett , Boqun Feng , Uladzislau Rezki , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, kvm@vger.kernel.org, loongarch@lists.linux.dev, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-hyperv@vger.kernel.org, rcu@vger.kernel.org, mrathor@linux.microsoft.com, nunodasneves@linux.microsoft.com Subject: Re: [PATCH 0/5] Drivers: hv: Fix NEED_RESCHED_LAZY and use common APIs Message-ID: References: <20250825200622.3759571-1-seanjc@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20250825200622.3759571-1-seanjc@google.com> X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org On Mon, Aug 25, 2025 at 01:06:17PM -0700, Sean Christopherson wrote: > Fix a bug where MSHV root partitions don't honor NEED_RESCHED_LAZY, and then > deduplicate the TIF related MSHV code by turning the "kvm" entry APIs into > more generic "virt" APIs (which ideally would have been done when MSHV root > support was added). > It is nice to have a common infrastructure. Cc Mukesh and Nuno for review and test. Thanks, Wei > Assuming all is well, maybe this could go through the tip tree? > > The Hyper-V stuff and non-x86 architectures are compile-tested only. > > Sean Christopherson (5): > Drivers: hv: Move TIF pre-guest work handling fully into mshv_common.c > Drivers: hv: Handle NEED_RESCHED_LAZY before transferring to guest > entry/kvm: KVM: Move KVM details related to signal/-EINTR into KVM > proper > entry: Rename "kvm" entry code assets to "virt" to genericize APIs > Drivers: hv: Use common "entry virt" APIs to do work before running > guest > > MAINTAINERS | 2 +- > arch/arm64/kvm/Kconfig | 2 +- > arch/arm64/kvm/arm.c | 3 +- > arch/loongarch/kvm/Kconfig | 2 +- > arch/loongarch/kvm/vcpu.c | 3 +- > arch/riscv/kvm/Kconfig | 2 +- > arch/riscv/kvm/vcpu.c | 3 +- > arch/x86/kvm/Kconfig | 2 +- > arch/x86/kvm/vmx/vmx.c | 1 - > arch/x86/kvm/x86.c | 3 +- > drivers/hv/Kconfig | 1 + > drivers/hv/mshv.h | 2 -- > drivers/hv/mshv_common.c | 22 --------------- > drivers/hv/mshv_root_main.c | 31 ++++----------------- > include/linux/{entry-kvm.h => entry-virt.h} | 19 +++++-------- > include/linux/kvm_host.h | 17 +++++++++-- > include/linux/rcupdate.h | 2 +- > kernel/entry/Makefile | 2 +- > kernel/entry/{kvm.c => virt.c} | 15 ++++------ > kernel/rcu/tree.c | 6 ++-- > virt/kvm/Kconfig | 2 +- > 21 files changed, 49 insertions(+), 93 deletions(-) > rename include/linux/{entry-kvm.h => entry-virt.h} (83%) > rename kernel/entry/{kvm.c => virt.c} (66%) > > > base-commit: 1b237f190eb3d36f52dffe07a40b5eb210280e00 > -- > 2.51.0.261.g7ce5a0a67e-goog > _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv