From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f201.google.com (mail-pg1-f201.google.com [209.85.215.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 5B52D3D3302 for ; Thu, 15 Jan 2026 18:05:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768500343; cv=none; b=k5iIVJ0Wm+EvyiyrxXievl29WkzRgIKsNTRzliM/X1jQWhKcHfc3Eh1yRih70EYWpLMNZ+L2GkKzseGChqOywjiLCFuvgQjL1h175jkwiZSkeNX7uXcYhbBjslaB3vSyTsBClNc8P+6JCKi1Nts4gkD2nndx618RZSqdUE6DHRA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768500343; c=relaxed/simple; bh=/Abo1nq1bguKGNik3MrHGVXr+PkEtU3mkkYJfTBpRYg=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=B6tHIzKDXZrUk5FJBwsDY2cwgSNvhnG2bslQ2JQPjeNYrwofZQX4ymOMAkNdYvBh8X5ImlBdugCK3IkSCZHSMn89Tctcb+DXBTwH/huYMmHQ6gt20wi8zLrtRYwK1XUsIQlMY/6DCXgNduPI/DRiERKphVw7eOai7Fpq+ujdlgg= 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=MzWzNBmj; arc=none smtp.client-ip=209.85.215.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="MzWzNBmj" Received: by mail-pg1-f201.google.com with SMTP id 41be03b00d2f7-c5539b9adc3so727996a12.1 for ; Thu, 15 Jan 2026 10:05:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1768500342; x=1769105142; 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=sqd1PFsVUIs3F4pfhVq6qyofMpX+RLDhYeJtA2Ru3xA=; b=MzWzNBmjkvPYQBCEHHI3yezHTNtL+PDMTD6O5Oh+/c93OL53SpoEBj6k3KwZUBWAFc hSlcRWqYyDE00YcloovfjXzpRZrPkzs87T/6C1bEPbzvum7ocyGa/fz/NRfWkZUD1+cZ MhSzx1Lf7n9RXsb4dmluNWhUrP9+e4SWTf5tHSkw/8BozVeXQY9EO7XQeC+ZtZXPrB3O VIUz7CsDFJ77DL1AvLFCrRgOu1bsivFkbpCwgSYaBI/TlgXvLG+1VW/dDcmX0RIB1f+A zTjokXwuvUjaao47xziQ9BhyRgC0QmeolZj5xZWQAH4U0ku5tuEL3GXKyhjQ7huHncTX XKFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768500342; x=1769105142; 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=sqd1PFsVUIs3F4pfhVq6qyofMpX+RLDhYeJtA2Ru3xA=; b=iDoQz71IZmkKqHhFt4kia7U0qcWleEW6NO+IURIrGSfauV0OQYi2WcccmGF1Qy6DKT SAIol79v2puBXd8SO5XKBxSXzRBujUMTG/A8soSgyywHU+Qms/65VaHoGCXfc7UstGUR ee2nQ6OQMfK4hlS+YpitsSQPNYEg9qefpu2u88PTrXTZMftVR3R0DWXDm+/nvd5YaC/j b+CzNwlj+2SE/SU9gVg8eHzEL2Lt0Q+l8onIwNzk5T4QNfnzJy3D6YG4q4yiksg5UHXM ntH0H1x22zAbcRJCn1KcdRN+hynO7NFKIaCm9+RTetULhoUieJReHBNWOeE0nuuHNGwW Ku0Q== X-Forwarded-Encrypted: i=1; AJvYcCWbIpE0PtrXFZ92PjWLSDRTh96BFVzhS2LeCj2s9ACNa4KC0oviEfO2GRCDB4BvJxb8QgaRgglXUqX+hko=@vger.kernel.org X-Gm-Message-State: AOJu0Yy5TeraUG4NnKrvD9aAZvfpbZ5XN3iQzgicJrdcfGROW2H3Uq/J +wL/QG4YeJPGHT05H+SgTBkRDsIEqg5QPp/7CQQAyRkpNuH3YVoxiyVg2FXK+Mv/Mxn7SPN+Xrd zGuqrug== X-Received: from plho10.prod.google.com ([2002:a17:903:23ca:b0:29d:5afa:2d4]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:903:2445:b0:294:f6b4:9a42 with SMTP id d9443c01a7336-2a71888c47bmr798915ad.9.1768500341579; Thu, 15 Jan 2026 10:05:41 -0800 (PST) Date: Thu, 15 Jan 2026 10:03:21 -0800 In-Reply-To: <20260112232805.1512361-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: <20260112232805.1512361-1-seanjc@google.com> X-Mailer: git-send-email 2.52.0.457.g6b5491de43-goog Message-ID: <176849720857.705106.9881442086637980436.b4-ty@google.com> Subject: Re: [PATCH] KVM: SVM: Check vCPU ID against max x2AVIC ID if and only if x2AVIC is enabled From: Sean Christopherson To: Sean Christopherson , Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Naveen N Rao , Suravee Suthikulpanit Content-Type: text/plain; charset="utf-8" On Mon, 12 Jan 2026 15:28:05 -0800, Sean Christopherson wrote: > When allocating the AVIC backing page, only check one of the max AVIC vs. > x2AVIC ID based on whether or not x2AVIC is enabled. Doing so fixes a bug > where KVM incorrectly inhibits AVIC if x2AVIC is _disabled_ and any vCPU > with a non-zero APIC ID is created, as x2avic_max_physical_id is left '0' > when x2AVIC is disabled. > > > [...] Applied to kvm-x86 fixes, thanks! [1/1] KVM: SVM: Check vCPU ID against max x2AVIC ID if and only if x2AVIC is enabled https://github.com/kvm-x86/linux/commit/cfbe371194d1 -- https://github.com/kvm-x86/linux/tree/next