From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) (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 B1CBF4A8A39 for ; Mon, 21 Sep 2026 14:11:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.197 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789999877; cv=none; b=gJPwumq7PYmRC45izbxaEzOX2Iuzkcu68qJlPzKsWfYwbVbi9jl0MRVA7h4jnc/9IKg4AqKBPSJjW7ZMuSkK4+mC3KBdvDzWNfUb3PLEg/OlhmxVSkyNNq6Z5yfDBXYXfG85PvimOfR2Fs8epbZclFXb5OPAjeepJf3nA4w2azs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789999877; c=relaxed/simple; bh=B4QJF82dna8D9ggBsF8oeK2V+6NAw7hoRbDRKemE+iA=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=sEesdybx2hqPDkt98sm64RgSRbDJPGNSngWsuI5F6es3fdjO/VjSvUOE3FK/mwzQUcjMzsIv+YEbUKEwKd+rHoiqpsbOVXcU13zowBf07juQhziRBcSmLwagqyvZWQwkhf/eo5jFJIEmVYJH86Wc6pQbxl5LTcNYa4XGpKPFDDk= 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=oIU7zy4H; arc=none smtp.client-ip=209.85.214.197 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="oIU7zy4H" Received: by mail-pl1-f197.google.com with SMTP id d9443c01a7336-2dd188e16a2so34087685ad.2 for ; Mon, 21 Sep 2026 07:11:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1789999875; x=1790604675; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=KuS+RsQ1XJKIcaJnDQOiwRD0nOJzYFvdBOhw7tWIQmU=; b=oIU7zy4HyNKp2IBK19clGiJEU40RaDKJFkYvTUvGZgQGFiwGka4PrPEa/xXDsVa6lm rEyS+gouQbdYD5bUJcq/PXi87Uye6Q9SIlHfUBa6ohWCWohewWm5t+NHVqMdgftadjWF tc1w/dyA61JoIViA/phoMkOP3/g08PY7JOtdNSaQTSx7OQfn63H2ePCbre/OOudb1Q7g XfF8yWKQXLkWp+x2bEAM05drdWiglH1RbGBR/j4FaCVxhK/Ovm71b+Hu6ha3qzUDg+xG Zeew33ZPLwR8ErY+MJdqPYixLQvFjoeRlkoXvayMpcjSb1DzVFaJCMY4MH/9jQiVqYQ+ zrXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1789999875; x=1790604675; h=content-type: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:content-type; bh=KuS+RsQ1XJKIcaJnDQOiwRD0nOJzYFvdBOhw7tWIQmU=; b=KR3huX31R33SWv64upRjTKxZmyNKNBpqKdNQ1GBLUMdHdrx7LW308TjIbSmvmn6LqA 9/ikxfw7hREAZNdTcW1X7EzJU9dhIFUN0k7nO6BoqNU07n0C8VtQHnC40RdvlY5qhEq+ VLtI1PmPO2KrVEq8Iy9AQwS5OlCPSlluXRiM81mo9JPYjDVqS2RGj69eRD8wy0PwWoaU cpSNPzGtbsrbxlUHezoLiKbSVqYX2O1siifxJFWKNC+niz1MK/ponUurRe8Yt9fs9mZO 7AgRVUBaA73dvkLZRmCRYMQk7gAKSbX3KXke4Q9PwjD1WfX0pZvmXQwhAXTm9kht5NEX P9xw== X-Forwarded-Encrypted: i=1; AKwUvBwyd4uawOIZty/cGT9taLxqBTcOsS1aZYVidnue7GYcjnMPhsYNF/DsdZ1FOEchWazfjDqfXeI7e4FujAM=@vger.kernel.org X-Gm-Message-State: AFuF++lqpdk1jmsqeISLZJr+lHkGM6zPWgaMGHClfA9CiLhZV3zS93Qu et29dGL47i52Ive0rA/UnKmqItN/gt3Z7L9JQ1INTxmu0XYhIfeY+/1mXghtvlw+Sd8q3auXRMK gNaiZqg== X-Received: from plbd17.prod.google.com ([2002:a17:902:f151:b0:2dd:4fe2:d786]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:903:2349:b0:2dd:c100:4b73 with SMTP id d9443c01a7336-2ddc1005ee4mr92390435ad.42.1789999874739; Mon, 21 Sep 2026 07:11:14 -0700 (PDT) Date: Mon, 21 Sep 2026 07:11:14 -0700 In-Reply-To: <7efe2260-5c11-4e8c-812e-dd1e215ac3e4@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260914181223.289061-1-seanjc@google.com> <7efe2260-5c11-4e8c-812e-dd1e215ac3e4@redhat.com> Message-ID: Subject: Re: [PATCH 0/5] KVM: Serialize vCPU creation and revert vcpu_ids tracking From: Sean Christopherson To: Paolo Bonzini Cc: Thorsten Leemhuis , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Jean-Christophe Guillain , "=?utf-8?B?UGF3ZcWC?= S" , Linux kernel regressions list Content-Type: text/plain; charset="us-ascii" On Mon, Sep 21, 2026, Paolo Bonzini wrote: > On 9/21/26 15:57, Thorsten Leemhuis wrote: > > On 9/14/26 20:12, Sean Christopherson wrote: > > > Serialize vCPU creation by holding kvm->lock for the entirety of > > > kvm_vm_ioctl_create_vcpu(), and then revert the now-redundant tracking adding > > > by commit 97d65b544f48 ("KVM: Check for duplicate vcpu_id as early as > > > possible"). I botched the math when justifying the vcpu_ids tracking; it's not > > > an extra 256 bytes, it's an extra 2048 bytes. Roughly doubling the size of > > > "struct kvm" tripped x86's KVM_SANITY_CHECK_VM_STRUCT_SIZE, and obviously isn't > > > something we want to do in general. > > > > Hi Sean! Thx for handling this and sorry for pestering you, but I have > > to ask, as this fixes a regression that was already reported two times > > and introduced this cycle: > > > > What's the plan to merge this? Is this aimed for the current or the next > > merge window? Ciao, Thorsten > > For this one, but after fixing the PPC and s390 cases. Ya. > Sean, if you're busy I can send the v2 myself. I'll get it out today. I was traveling last week and got behind one a "few" things.