[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

vnuma_nodes missing pnode 0


  • To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jim Fehlig <jfehlig@xxxxxxxx>
  • Date: Fri, 11 Nov 2022 15:55:54 -0700
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=X1c1p5kOom6v9Hgu60KfRA/hvXIyiH2M0ufyRW+1hEQ=; b=D8P2l13suWC/Cffa39NZr9YYbfr+EMvHjgccV0oddMf7Kfn3InSc+dNcdWGAK2J3hQ65MqWIxm7W7+tL4yojlCb3FlALJdoeUYwba7qMSyNt9WNQ0XDTdN5i0p+OMMe4CTzbRBI3AJ6/kYX8SdacSpzYEA4a54CAr5yW4nz2O5qc9XGeCpV6VXTHxhfQhept6V3pEHWBOI9y4g1OayzGa5pVRgfLW86jXxNGO2dP3HxoGbZqPfemEDBRSWpXVvT+JczrPrfwAn+18R4YiHLFq9SZ7XDYE9WnffxjB7+tJo6rdFK4KjxKCVPNkcsAN1ShCd6bId7vHJDmkeIxVdDB4A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O5muzCD4evWv2hmvCy3XB3gp1SLxFy9/xq6VV6B+8wrnlpM8nrIsZyyg/h+PjGB9q4SKS92k02uoaCp9dKRzml4KRO7XflazAAF9YJ+NKO254igrr9vuLg+o/jVjxiri8SKEvTliTt1j3FzcVwYzVix4NhKPCOaebfZKPQDqoZPABjwQn5QBJhs6WyyKv02Zn0V3aMY+Va01WtlSKoj2/lWta8QWP/ZIPK+nQ4Fwkoegs5mUTga2/hIwDKRI+5V3qRstV33D/QNpbpLMNOB8IiguSxG4CdalWgMnYF2JSwvH/QgRV9DGV6HmodVZsh4Y7EB16tb5+B0iHfencPrXqw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Delivery-date: Fri, 11 Nov 2022 22:56:27 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Hi All,

While fixing [1] a recent downstream libvirt build failure against 4.17 rc3, I noticed the json representation of libxl_vnode_info omits pnode when value is 0. The problem can be seen by starting a VM containing the following vnuma config

vnuma = [ [ "pnode=0", "size=2048", "vcpus=0", "vdistances=10,20" ], [ "pnode=1", "size=2048", "vcpus=1", "vdistances=20,10" ] ]

The json representation for this config does not contain pnode 0

               "vnuma_nodes": [
                    {
                        "memkb": 2097152,
                        "distances": [
                            10,
                            20
                        ],
                        "vcpus": [
                            0
                        ]
                    },
                    {
                        "memkb": 2097152,
                        "distances": [
                            20,
                            10
                        ],
                        "pnode": 1,
                        "vcpus": [
                            1
                        ]
                    }
                ],

I'm not familiar with the code generator for the *_to_json functions, but with a hint I can probably cook up a patch :-).

Regards,
Jim

[1] https://listman.redhat.com/archives/libvir-list/2022-November/235745.html



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.