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 AB7712C15B8 for ; Tue, 16 Sep 2025 19:59:35 +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=1758052777; cv=none; b=Dc/is96ME/t69xdgy8LMmLHwWpW1+hn/W27Os+rZ93ZFFSXIXwaZnMgjuAVsMgBr/92Yq3bpm4+67m6+b5cqmT8y+yk5/CS4xd/4De1Tj6T+GNkGvXTdUOJEWGl9WWNW2B7H9Lh5nhH+GoTH4GC/GCS6G0g1w9oOsdkyxUFPj7A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758052777; c=relaxed/simple; bh=Vdu1BZwep+6IsmxierDdcJvK3W/IMo/wNXpYCrdmdRM=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=fuYy3+ByZcgN7m/8H6+h4engzMtW8ZIFE5wadSqoZxNpzvuKJoLKOGVtQ+m9y3dk4JXKLFzawD2ze+xActoJYFffQCts19ZnUbzpKc1RVqxTNQp9QmfYSZgua8hKx3WPRhZ1B4/wxvaeDxw2W1+3FABakc97PiLbvw786WNJwd0= 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=u7lPfXRJ; 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="u7lPfXRJ" Received: by mail-pf1-f201.google.com with SMTP id d2e1a72fcca58-7724877cd7cso5977423b3a.1 for ; Tue, 16 Sep 2025 12:59:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1758052775; x=1758657575; 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=fTTCcsDBpjW/mF3lSMHNghy/htFIT4NWUYSMKsa6IZY=; b=u7lPfXRJYT4xiNYWh0IS4nTB+M+0k/kuv92dLVKYvwabDWJDkCPkfq6PMk8NV7+Vce FmEEf0D4UOqhDzIIzyhEHfYhOzdgmIdDYdW3tQBIrF3BdX0LygeWW4oSdEF29uNOBsWp BVNCUfEiaxm7cMIZ7Ldnbgci2pHO3CkjlZnMqH95oC4gD7QTMsaqw46/I3QHYgWw53h4 fd3R6m/rJLRO46xPakwvwN5a/TcbR+MSfMbbGHEVwz83rdfvVmffoCxeZdlVW4Jav3Yw ntwVieIfJalsfS2i4P9gQozkEefHaRpriPS0QLfBOhb/j5x97RO7SDkh2DCkJymAuiol SyZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758052775; x=1758657575; 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=fTTCcsDBpjW/mF3lSMHNghy/htFIT4NWUYSMKsa6IZY=; b=mEjuXtL6t+y5+zCTvApM31XHJan/0QtzhKZD1FPtP7VI6ZKQFrvDU5MQkVxYZw10rQ LWUYexFLNCAWBQRhcAtpnOaKAVCa+ntLBuediqLj9Ql7C4h8ZmeXiV0r3K/UMjxP/c+v gCF9rmex+A1lE5sUhrSAx5WoGIvw+q8PpdGG6o+Jskt41/4GqZEAtwwWoqwG8h7Q+8TE vZ0SzoDDVI/mv8U6nXXTANvLSWnsAvcWs9g62xkCgPxf1Vu8/qCn/j+Th1mqQwgGn0Ja Y1lVvpt8AOCAAweYGK+8uIDM04TgQic2+k4TZjUxCmKITUWT6rbMc+5RA/VQ9X8zdjRw V+KQ== X-Forwarded-Encrypted: i=1; AJvYcCXB6nGRwF0wY2cy9yyp+Ng/q3CwZen1Mm2ntIXgxT2SCJToD9d+HN6e/IbhKPn3vp6qri3s4iLbRT5l/9E=@vger.kernel.org X-Gm-Message-State: AOJu0YyowLYYlfD5K6XKeQXd3L0Qlzku00MFd5o9UlPCo+bQrs35QiV8 cIGxQ+e8tdDfTo6RfguyoHeo3YPaKu2VvAR+ZizanUna7Op5dDdAXPuogLT0guYIuOxaloJ05qA abma3mA== X-Google-Smtp-Source: AGHT+IEeOCLimp7Ef9XmIJDiwc7xsmOvJEWyAAUZvqolTLhCOh3V/BzP6YzcM++J0XFW+IbDbzqAEX2zdus= X-Received: from pjbdb3.prod.google.com ([2002:a17:90a:d643:b0:329:6ac4:ea2e]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a20:430d:b0:250:f80d:b334 with SMTP id adf61e73a8af0-26027c13362mr22964220637.0.1758052774975; Tue, 16 Sep 2025 12:59:34 -0700 (PDT) Date: Tue, 16 Sep 2025 12:59:33 -0700 In-Reply-To: <2e0b5ee6-deae-4eba-89dc-4abfd63b1578@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20250827011726.2451115-1-sagis@google.com> <175798193779.623026.2646711972824495792.b4-ty@google.com> <2e0b5ee6-deae-4eba-89dc-4abfd63b1578@intel.com> Message-ID: Subject: Re: [PATCH v2] KVM: TDX: Force split irqchip for TDX at irqchip creation time From: Sean Christopherson To: Xiaoyao Li Cc: Paolo Bonzini , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , Binbin Wu , Ira Weiny , "H. Peter Anvin" , Sagi Shahar , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, x86@kernel.org Content-Type: text/plain; charset="us-ascii" On Tue, Sep 16, 2025, Xiaoyao Li wrote: > On 9/16/2025 8:25 AM, Sean Christopherson wrote: > > On Tue, 26 Aug 2025 18:17:26 -0700, Sagi Shahar wrote: > > > TDX module protects the EOI-bitmap which prevents the use of in-kernel > > > I/O APIC. See more details in the original patch [1] > > > > > > The current implementation already enforces the use of split irqchip for > > > TDX but it does so at the vCPU creation time which is generally to late > > > to fallback to split irqchip. > > > > > > [...] > > > > Applied to kvm-x86 misc, thanks! > > The latest one of this patch is v4: > > https://lore.kernel.org/all/20250904062007.622530-1-sagis@google.com/ Yeah, I had applied v2 quite some time ago, just took me a while to do final testing and send the "thank you". > > [1/1] KVM: TDX: Force split irqchip for TDX at irqchip creation time > > https://github.com/kvm-x86/linux/commit/2569c8c5767b > > What got queued, added a superfluous new line in tdx_vm_init() Drat. I force pushed to fix that goof, and added Kai's Acked-by in the process. [1/1] KVM: TDX: Reject fully in-kernel irqchip if EOIs are protected, i.e. for TDX VMs https://github.com/kvm-x86/linux/commit/b3a37bff8daf