From nobody Mon Feb 9 10:47:56 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) client-ip=207.211.31.81; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1599813888; cv=none; d=zohomail.com; s=zohoarc; b=MZwVX4pNyIeXQu0QwB0l+jolX+WFCjHDxU/l2Vjh46xExoorruxqR/kBfn5ACkRjj+dKKbbOAy1R2wi60BPBEtWICx4zEz4vuft5gOkZJi3cpEu0jiboZWYYWlgNx9I39xiV0dQlLLPHGTG2LXWa75ogvhrLCXR30/vgtesfK3I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1599813888; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=9TTA9MZ8aUIl276MUEBXq81ro2HhgcO3JcrlnA45PJU=; b=SsAbjNFZfqRI7IJUDMMO7gergx7DfxwlgdeppDxS7M5WFLSjUfFphUxBpSL3YLvS5XaK0f8jBVHMWSp1kShcTiFQinEdSGuUfSQgKIcNT807DwqZ1FxvKVb6wovLteb/fOXbbvwRrb9hOxkLHY7ZamavscvksD3xXyPQrN5BWx0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) by mx.zohomail.com with SMTPS id 1599813888266646.0725294318063; Fri, 11 Sep 2020 01:44:48 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-319-Br00xoX5MNqztDTlHAresg-1; Fri, 11 Sep 2020 04:44:44 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id ACD2B108E8A2; Fri, 11 Sep 2020 08:44:38 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 87A601002D41; Fri, 11 Sep 2020 08:44:38 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 5B3C792304; Fri, 11 Sep 2020 08:44:38 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 08B8iTaf020616 for ; Fri, 11 Sep 2020 04:44:29 -0400 Received: by smtp.corp.redhat.com (Postfix) id 1262581C47; Fri, 11 Sep 2020 08:44:29 +0000 (UTC) Received: from dell-r430-03.lab.eng.brq.redhat.com (dell-r430-03.lab.eng.brq.redhat.com [10.37.153.18]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6FEB581C44; Fri, 11 Sep 2020 08:44:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1599813886; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=9TTA9MZ8aUIl276MUEBXq81ro2HhgcO3JcrlnA45PJU=; b=JSLcoeyPL1BFuE2Z+pJMKh7/a9QEJNIi+lnawa/PQN/Q6VPOIHw642HWNYsW930SOw36TX C6MIwLFv3Y+wHVs/gazUvY6PU3Q5E0GJyl4kAAyquSnSS5WHUPxqFhX1Smo2KX0gA/F9dL 6i67DRx/EH+/H2ukR+FtL23oEYXnHGY= X-MC-Unique: Br00xoX5MNqztDTlHAresg-1 From: Igor Mammedov To: qemu-devel@nongnu.org Subject: [PATCH 3/3] numa: remove fixup numa_state->num_nodes to MAX_NODES Date: Fri, 11 Sep 2020 04:44:10 -0400 Message-Id: <20200911084410.788171-4-imammedo@redhat.com> In-Reply-To: <20200911084410.788171-1-imammedo@redhat.com> References: <20200911084410.788171-1-imammedo@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Cc: ehabkost@redhat.com, mst@redhat.com, libvir-list@redhat.com, qemu-ppc@nongnu.org, pbonzini@redhat.com, david@gibson.dropbear.id.au, rth@twiddle.net X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0.001 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" current code permits only nodeids in [0..MAX_NODES) range due to nodeid check in parse_numa_node() if (nodenr >=3D MAX_NODES) { error_setg(errp, "Max number of NUMA nodes reached: %" so subj fixup is not reachable, drop it. Signed-off-by: Igor Mammedov --- hw/core/numa.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/hw/core/numa.c b/hw/core/numa.c index 706c1e84c6..7d5d413001 100644 --- a/hw/core/numa.c +++ b/hw/core/numa.c @@ -677,10 +677,6 @@ void numa_complete_configuration(MachineState *ms) if (ms->numa_state->num_nodes > 0) { uint64_t numa_total; =20 - if (ms->numa_state->num_nodes > MAX_NODES) { - ms->numa_state->num_nodes =3D MAX_NODES; - } - numa_total =3D 0; for (i =3D 0; i < ms->numa_state->num_nodes; i++) { numa_total +=3D numa_info[i].node_mem; --=20 2.27.0