From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796030542; b=VXa8sGEVOJlMV/KiNTD7g/87IllWfQ4A2QwNO5DyWvE0KdX32/POuQ505qKgPfebJuce RLzv7C6ITzXcZW/x/CyK0Py8wDLGjY8IdwVeuHNErpbEv8nZC7+l8blcebuSuum9wF+SB bumJmIOuPITewu9LEdOAe/yTvCaiE0bCKRTpHD+y+kRHBvlKwWbUdVoBQrLxtACH7wycp l6MpfyjAHCmT+YbMDoMTgrziM5srLfYoH1Eq6t4QE7Iyn6HnV2OeKJe7al4EkEp+zg+TF PrJviPIOBubQs/2tJ3+x+ETgmmOXZ+xQO4WbffPE1NIwxqTIeMUx8sELu2KzFXb08ag== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796030542; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=aYMBWgBWiQt/SwtVVzujv0/Kl5TQO0cvM8Mf3LzW6Z0=; b=beNGaWPN0psEJg8Z2FiAPCnUSc8Hv6F5HTQeKTchAub0y0s6HyJNB2jb99PZaf+DoYt/ JXB9yob5s0WTVpUGq+xMDgElWnat3LHURJ5uhzPj717NNUmcAnwbYysNWrMqCSZTT4y2a WAq/F087xpHW5nUGVL3g/V8PCABvvwZuPgG8cGhIlx/zT31HKm0/16qgNalG8KcM+Vm1L 5ru4qvFZ/yda9ECdJ9xeYvmZphvTBAUmmLMRivXMvGBAqJQolCfK7Qvcg1bVuFCoYPBi8 O39EPFtGHTXA40iLRumPxhqgz3ghI/h8vPB224lOU1sIEcP4DrgNM8QNrutbgZLB8YQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=XPu6X3u3; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D5FBB606A320 for ; Mon, 30 Nov 2026 09:22:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=XPu6X3u3 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E5B3C1F00897; Mon, 30 Nov 2026 09:22:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796030542; bh=aYMBWgBWiQt/SwtVVzujv0/Kl5TQO0cvM8Mf3LzW6Z0=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=XPu6X3u3MdELFXI560UQIvB+UEv0/lxZJY33tHeHGNnl7KO2IMo32bghY7xfIGTHp Qt7kTvdoajN1wWPqt4LjplljJz9ysnQ3bN60rJc/35E10XAkppydeX4E2NTnS6ydhb e6qs6B5/6ja6gOJ6Mqn1t1kmnMdC8DBo0j8KG9HN1fENc8K9oRgZwvW6ENQfl/r7Vl Of/MNSXztPRGuF0ovF/0JNbsYwQl/DqABy9NpaKaU41TMnFDBos4tOfz5ZMg6rRE+U kzNvic8XwQrIt/13/FOvZCGTA3aoKSjbbdXmov6+S5p1c1RBMNlB22tYaP3b9h1xNu RkxrbX/1PgNJQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH] KVM: s390: Don't kick vcpus for floating IRQs that are no longer pending Reply-To: sashiko-reviews@lists.linux.dev To: "Christian Borntraeger" Cc: linux-s390@vger.kernel.org, "Heiko Carstens" , "Vasily Gorbik" , "Alexander Gordeev" In-Reply-To: <20261130091704.1566209-1-borntraeger@linux.ibm.com> References: <20261130091704.1566209-1-borntraeger@linux.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 30 Nov 2026 09:22:21 +0000 X-Mailing-List: linux-s390@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > kick_cpu_irq() searches for a vcpu that can take the injected floating > IRQ, starting with last_sleep_cpu, and, if it does not find one that > is suitable it wakes up all vcpus to avoid starvation. >=20 > For GISA interrupts, __inject_io() only sets the IPM bit and the > hardware may deliver the interrupt to a vcpu running in SIE before > kick_cpu_irq() looks at it. The IPM bit is then already clear, so > deliverable_irqs() returns 0 for every vcpu and all vcpus are woken up > for an interrupt that has already been delivered. >=20 > Whenever a candidate vcpu cannot take the IRQ, check whether the IRQ is > still pending for the VM at all and skip the kick if it is not. The > common case, where the last_sleep_cpu guess works, is not affected: > deliverable_irqs() has already looked at the pending IRQs then. >=20 > [ ... ] >=20 > virtio-net also shows benefit. >=20 > Fixes: 370b3a89cbd9 ("KVM: s390: Improve floating IRQ injection behavior") > Signed-off-by: Christian Borntraeger Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261130091704.1566= 209-1-borntraeger@linux.ibm.com?part=3D1