From nobody Sun Feb 8 23:06:12 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 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=1621255476; cv=none; d=zohomail.com; s=zohoarc; b=OourtCD8TJaKKHiqF2f7rROT7VfV/79+v3wOp4qVBgRwBwIwtTmmogu4t1vbJTwl5inqKRDlgHomseS69LSXjD+/Zir+KA2KPmy6kdPIyyPkDiOzAK58D86Vx8ko0R+J/2Y6uPgsgpbq/ulAx7EM+to7jBhI1+5VOxOQS0Wmej0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1621255476; h=Content-Type:Content-Transfer-Encoding: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=5oWhIS8D1oEf+H5HZ8jXvKdO5djw9hPm+u2UPQrQJgM=; b=cC2y/jlODZp9qYjxyXPaAZNfJK8HtKFJft4pr7Sms30Jk74FmDFD4Zr15VGdfOveJNtdYPsv3vbkPoJm4QsRKcnkrS41Yc7s+Ojo0mYX/hrWF89fOiISSBUUx3LDofBCmG3BhhRRjTHXykS+BOOA34HBim8Bkwk4G1W+UYL7jr8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 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-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1621255476448588.0895301139868; Mon, 17 May 2021 05:44:36 -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-594-J7Y-BngtMkGSQryPpjbk_w-1; Mon, 17 May 2021 08:44:33 -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 6AB3E107ACF2; Mon, 17 May 2021 12:44:28 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 13A71100F49F; Mon, 17 May 2021 12:44:28 +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 7CC4C180B465; Mon, 17 May 2021 12:44:26 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 14HCiPuK015623 for ; Mon, 17 May 2021 08:44:25 -0400 Received: by smtp.corp.redhat.com (Postfix) id D5F2B1899A; Mon, 17 May 2021 12:44:25 +0000 (UTC) Received: from localhost.localdomain (unknown [10.40.193.229]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5AECA179B3 for ; Mon, 17 May 2021 12:44:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1621255475; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=5oWhIS8D1oEf+H5HZ8jXvKdO5djw9hPm+u2UPQrQJgM=; b=XYQC1YvZgtAE/YqFgQm4FckiG3WoF6aKG0N5M4Q52sEuyANdWBBBC9HaSespRYye1agLYO GjrnxhcttCebCleUKxRFqOUmw5wOnIKuWbEJw3CSiVFpwRqIaQ/RJaX1UZPfN5tZ0ivIcB toNlkaIApSo2S49KJkIT2aJFaYADUGM= X-MC-Unique: J7Y-BngtMkGSQryPpjbk_w-1 From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 2/4] virnuma: Export virNumaGetMaxCPUs properly Date: Mon, 17 May 2021 14:44:16 +0200 Message-Id: <87636b9845cceba09ff3ab8e15ab047683b0a229.1621255232.git.mprivozn@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com 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 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" This function will be used in virnumamock, shortly. Signed-off-by: Michal Privoznik --- src/libvirt_private.syms | 1 + src/util/virnuma.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms index 1df4b8cfe8..b7bbe46dc7 100644 --- a/src/libvirt_private.syms +++ b/src/libvirt_private.syms @@ -2872,6 +2872,7 @@ virNodeSuspendGetTargetMask; virNumaGetAutoPlacementAdvice; virNumaGetDistances; virNumaGetHostMemoryNodeset; +virNumaGetMaxCPUs; virNumaGetMaxNode; virNumaGetNodeCPUs; virNumaGetNodeMemory; diff --git a/src/util/virnuma.h b/src/util/virnuma.h index 45342ecf11..bc79bff891 100644 --- a/src/util/virnuma.h +++ b/src/util/virnuma.h @@ -43,7 +43,7 @@ int virNumaGetNodeMemory(int node, unsigned long long *memsize, unsigned long long *memfree) G_GNUC_NO_INLINE; =20 -unsigned int virNumaGetMaxCPUs(void); +unsigned int virNumaGetMaxCPUs(void) G_GNUC_NO_INLINE; =20 int virNumaGetNodeCPUs(int node, virBitmap **cpus) G_GNUC_NO_INLINE; int virNumaNodesetToCPUset(virBitmap *nodeset, --=20 2.26.3