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

Re: vnuma_nodes missing pnode 0


  • To: Jim Fehlig <jfehlig@xxxxxxxx>
  • From: Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • Date: Mon, 14 Nov 2022 17:56:06 +0000
  • Authentication-results: esa1.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none
  • Cc: Jan Beulich <jbeulich@xxxxxxxx>, Henry Wang <Henry.Wang@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Mon, 14 Nov 2022 17:56:24 +0000
  • Ironport-data: A9a23:HrlePq9bLJdxlvLEF+6IDrUDkX6TJUtcMsCJ2f8bNWPcYEJGY0x3m zdJXW2BaPvcN2akfo8jbIWw/UNQu8TTn4BgGwZsry88E34SpcT7XtnIdU2Y0wF+jCHgZBk+s 5hBMImowOQcFCK0SsKFa+C5xZVE/fjUAOG6UKucYHsZqTZMEE8JkQhkl/MynrlmiN24BxLlk d7pqojUNUTNNwRcawr40Ire7kIx1BjOkGlA5AZnPKkX5AW2e0Q9V/rzG4ngdxMUfaEMdgKKb 76r5K20+Grf4yAsBruN+losWhRXKlJ6FVHmZkt+A8BOsDAbzsAB+v9T2M4nQVVWk120c+VZk 72hg3ASpTABZcUgkMxFO/VR/roX0aduoNcrKlDn2SCfItGvn9IBDJyCAWlvVbD09NqbDklBt vkWAQ4BXiy42f242Y2HQbdXpv88eZyD0IM34hmMzBncBPciB5vCX7/L9ZlT2zJYasJmRKiEI ZBDMHw2MUqGM0Yn1lQ/UfrSmM+hgGX/dDtJ7kqYv6Mt70DYzRBr0airO93QEjCPbZUIxB/G/ D+fl4j/KkAbEvm61mC8y3OxnNPonibXQKdDMpTto5aGh3XMnzdOWXX6T2CTsfS/z0KzRd9bA 0gV4TY167g/8lSxSdvwVAH+p2SL1jYeVddQF+w1wBqQ0aeS6AGcbkAGRDNcbN0ttOctWCcnk FSOmrvBJTFpqqzTdnub+Z+dtzb0Mi8QRVLufgddE1FDuYO65thu0FSfFb6PDZJZkPX6WjT+6 g6GnBQF2aodlPE33PuA3WvY1mfESofyciY54QDeX2SA5wx/ZZK4a4HA1WU3/cqsP67CEADf4 SFsd9y2qblXUMrTzHDlrPAlRunB2hqTDNHLbbeD9bEF/i/lxXOsdJs4DNpWdBYwaZZsldMEj SbuVeJtCH17ZirCgUxfOdjZ5yEWIU/IS7zYugj8NIYmX3SIXFbvEeEHTRf4M5rRuEYti7ojH pyQbNyhC30XYYw+kmTmHLlBjeF3nXhvrY82eXwc5036uYdymVbPEetVWLdwRr1RAFy4TPX9r I8EapriJ+R3W+zieCjHmbP/3nhTRUXWxPne9aRqSwJ0ClM2QTh5UqOPmetJlk4Mt/09q9okN 0qVAidwoGcTT1WbQelWQhiPsI/SYKs=
  • Ironport-hdrordr: A9a23:KjZkFKHsmv2EUy4apLqEEseALOsnbusQ8zAXPiBKJCC9vPb5qy nOpoV+6faQslwssR4b9uxoVJPvfZq+z+8R3WByB8bAYOCOggLBQL2KhbGI/9SKIVydygcy78 Zdm6gVMqyMMbB55/yKnDVRxbwbsaa6GKPDv5ah8590JzsaDJ2Jd21Ce32m+ksdfnghObMJUK Cyy+BgvDSadXEefq2AdwM4t7iqnayzqHr+CyR2fyIa1A==
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Mon, Nov 14, 2022 at 08:53:17AM -0700, Jim Fehlig wrote:
> On 11/14/22 01:18, Jan Beulich wrote:
> > On 14.11.2022 07:43, Henry Wang wrote:
> > > Sorry, missed Anthony (The toolstack maintainer). Also added him
> > > to this thread.
> > 
> > Indeed there's nothing x86-ish in here, it's all about data representation.
> > It merely happens to be (for now) x86-specific data which is being dealt
> > with.
> > 
> > Internally I indicated to Jim that the way the code presently is generated
> > it looks to me as if 0 was simply taken as the default for "pnode". What I
> > don't know at all is whether the concept of any kind of default is actually
> > valid in json representation of guest configs.
> 
> 0 is definitely ignored in the generated libxl_vnode_info_gen_json()
> function, which essentially has
> 
> if (p->pnode)
>   format-json
> 
> I took a quick peek at the generator, but being totally unfamiliar could not
> spot a fix. I'm also not sure how such a fix could be detected for testing
> purposes by libxl users like libvirt. I.e. how to detect a libxl that emits
> `"pnode:" 0` in the json representation of libxl_domain_config object and
> one that does not.

Well, the missing "pnode: 0' in json isn't exactly a bug, it's been done
on purpose, see 
https://xenbits.xen.org/gitweb/?p=xen.git;h=731233d64f6a7602c1ca297f7b67ec254

When the JSON is been reloaded into it's original struct,
libxl_vnode_info, pnode will have the expected value, that is 0, because
libxl_vnode_info_init() would have reset this field to 0.

I don't think it's possible to change the generator to just have it
generate '"pnode": 0', as if we make a change, it would have to be for
all unsigned it, I think.

Is it actually wanted to have all those in json, or is it just a case of
looking like there's missing part?

Also, I don't know if any part of libxl rely of this behavior, that is
where default values are omitted from json output.

Thanks,

-- 
Anthony PERARD



 


Rackspace

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