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

Re: vnuma_nodes missing pnode 0


  • To: Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • From: Jim Fehlig <jfehlig@xxxxxxxx>
  • Date: Mon, 14 Nov 2022 11:08:21 -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=nWpWVQrC1DQaGImjsJWLYcGICoBgwfl7WlYrSk/35nc=; b=DhY4Iyr1t0jdDz2CYfAxMZViC6IkUQP3w6WRgegcmBCnUe3WF5cBFsz9+h7Lqi4DABT/Fa0R3VTm/eSw4mNtwwwnwiR0eHkJYff1XhOisKzmzrArV6woD5L6Iz7mJ6PBC1x+vzL90kK3seMhePF4g5cAPSfvX9qbqJY5XQzB54yHrz+azxJMUG962MD2UgR+dVj8vPnA6clDIgauhEcVeZc/+jMJDdDOCJJpQrpsX5g7TeG17dqAcC8HvdVE/bCSumvN8puaP+5ywf61nahfIn/Ann6MJEjIb1PCuKpi6SKzsS28AdQuZs7Bqj4iPI9oeZGAm29x6YY53+hlmc7AvA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XMfhQ1BmCK8116ABR2FKuIJ2OLYAkNRBp3sH3BO1S8wCDyE4NVOTw5NpkQ8aPMtmXk8PJjvv3BT6yjlS7x7F6wrcCh2AyrmE6SHkqmiI9A48zhFxvC8pJg8q0N69DFljkzKKZWs7EYUt3rYIR5onVUvP5MVEvycDz21MaBm3tcHdsVf48CoQ5QWa0ZlkviBm+QqmFm/uJ0Mf10n1ahizkYN/q+ETHtxKvSHLJCkUgVP3tJ4PxQY5wmuzfszAtoqpR/JKNOWplqZrGcmnNZJ7sNeCg3Fcx0pAC/IePGUFYbwqb10nPJMp2Eu2m0y54cJMx/AlJCyWYeFDDPpa7hqPNg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • 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 18:08:36 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 11/14/22 10:56, Anthony PERARD wrote:
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.

Which would likely cause lots of libvirt libxlxml2domconfig test failures.

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

The latter. ATM, libvirt only uses the json in its unit tests. No functionality is affected. I'm fine with the status quo if you are :-).

Thanks,
Jim



 


Rackspace

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