From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f201.google.com (mail-pf1-f201.google.com [209.85.210.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 68075346AE8 for ; Thu, 15 Jan 2026 18:05:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768500336; cv=none; b=feg+fh9OLTpanpZ9F8ZpyXGnyRBsdoBHg1ejaa8+rHJacIxZo6MMOVVSMfi4Eh3SRVjBO2swRlzNrlVmK/IFvy2ZfT3kdgsr+Azvky3kwxFW49rj9j4eqM7yhofKSx4ZPM1F6P9lL2P4kiGHxoqzui6Lr4+zKqQSBWdyWJuMwaw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768500336; c=relaxed/simple; bh=a0LE2pz2ec9ZnZxSQSRcRwjsTGP3jlsLaZ0l+73KD6w=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=ob8sYiZKRZJrNou2dNqiMOi7Eu+R+MjKpCnTGgHPuk6nhmQ3Xt/4dGeWmwhyfwEdnfjG9bj/4UflC8Vfu20KZ3jyo3ZXxZtG/hWM4FvP/JIEpQnbfHIeAmXcT7cftC8/3i6cIR2nTWGgjQdVXFba20hUGzA7OcAx3eHlmkz288Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=3Om+c46u; arc=none smtp.client-ip=209.85.210.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="3Om+c46u" Received: by mail-pf1-f201.google.com with SMTP id d2e1a72fcca58-81f42368322so1011746b3a.3 for ; Thu, 15 Jan 2026 10:05:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1768500334; x=1769105134; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=2byGtWA+XhDCZfdzGd+Mpsof5lNlMqrMFt6k5ec80HU=; b=3Om+c46uFj8dgBmuembzvdVtLY3pHnHyDQFBG3tPkC4g0erMYtpjQvGHNR/HJ3cfAr 50skh+ViTpUo3Qwp9kjVaQFHl0AdTZpgo3HKbRHuF9I/V2lB8EznPXreGOQIHKJK3MRt gyrl91rPYZN1V792jmQ0A78kPKyaGTv6eiltapDDu7NHED23TZttII1sgrLrfbyB7uOP wkq504eOinoAeJUStHsqS6Js4WnJDg+z6BshChPwysqJ1IHxS03JlbtuarshcfftfsgT sTUIm7jETtXoEMqCfyyf56QDPRtCJyZv1m4B6SQjezUbPd1MAaIF1yVJNss1yGmI04hE h6Ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768500334; x=1769105134; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=2byGtWA+XhDCZfdzGd+Mpsof5lNlMqrMFt6k5ec80HU=; b=dLZdY5suMUpThKcnNJqCDrfUaEze7UeLN3Lisuv+1f1WMlyBQeElzWK1UkJ/ZJGSI/ VY5aw3ue+yOTqx+PYg+CKnX5A8EzEzziu/FFqyUvAIBK6Lzqr3JsLUfWZQ8BVgxRPBvd ou/WO/DkdaYyHW0ncYNxrl2gvNxkrOBdjdv+C+ECXAj7Kpkb6pxTHNwDkFk+FgGwuuqh kCLZY7WcVKvg39UlP4er5DLVSGYdCD42woze1zDB5915IIp7rRzss3SZ7pD5R1HmUBfh QjUjqnDUzurAZ+577dhkww4dixYWUppUha6MQsNbKCA4R1iYvrp/lL9Qo2UpTMyxm0d7 KKAw== X-Forwarded-Encrypted: i=1; AJvYcCUrs7vAgKpcwkBU6WievjRYPHUZrnQ0Zy5OKz08bIjvaQEPpFeMnQndfMqG7UF+rVa9i74fn0Df+UzgQJk=@vger.kernel.org X-Gm-Message-State: AOJu0Yx8vsoAG4HvB9HD0Y9VBONSwy6RFyBMoOCgLJi3FGJ0rpvIwXW0 vZd6jMhjc1kFVV7dMkrTMz7VpaLBMXDpguo/rYhM3qT0c2Yq5iolemxH9IBX4WrdGHG/cWyjumd UyIUPAA== X-Received: from pgcv19.prod.google.com ([2002:a05:6a02:5313:b0:c0d:c35:c5ab]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a21:d8a:b0:38d:ec8c:7e62 with SMTP id adf61e73a8af0-38e00c4333amr34883637.30.1768500333659; Thu, 15 Jan 2026 10:05:33 -0800 (PST) Date: Thu, 15 Jan 2026 10:03:19 -0800 In-Reply-To: <20260113174606.104978-1-seanjc@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260113174606.104978-1-seanjc@google.com> X-Mailer: git-send-email 2.52.0.457.g6b5491de43-goog Message-ID: <176849868515.717654.3745446194809392090.b4-ty@google.com> Subject: Re: [PATCH 0/2] KVM: Fix dangling IRQ bypass on x86 and arm64 From: Sean Christopherson To: Sean Christopherson , Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Marc Zyngier , Oliver Upton Content-Type: text/plain; charset="utf-8" On Tue, 13 Jan 2026 09:46:04 -0800, Sean Christopherson wrote: > Fix three bugs in one, where KVM can incorrectly leave an IRQ configured > for bypass after the associated irqfd is deassigned from the VM (if the VMM > deassigns the irqfd while it's in bypass mode). > > Two of the bugs are recent-ish, one each in x86 and arm64. The x86 bug is > the most visible/noisy as it leads to kernel panics on AMD due to SVM's use > of a per-CPU list to track IRQs/irqfds that are being posted to the vCPU. > > [...] Applied rather quickly to kvm-x86 fixes, so that these can get as much time in -next as possible. I'll wait until next week to send a pull request (hooray for -rc8), and these are sitting at the top of the branch so I can amend (or drop) them as needed. [1/2] KVM: Don't clobber irqfd routing type when deassigning irqfd https://github.com/kvm-x86/linux/commit/b4d37cdb77a0 [2/2] KVM: x86: Assert that non-MSI doesn't have bypass vCPU when deleting producer https://github.com/kvm-x86/linux/commit/ef3719e33e66 -- https://github.com/kvm-x86/linux/tree/next