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

RE: [PATCH v6 1/7] xen/mm: Refactor claim deduction for later functional changes


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Bernhard Kaindl <bernhard.kaindl@xxxxxxxxxx>
  • Date: Wed, 22 Apr 2026 14:35:40 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=6ktO3UcHswmV91HJ+wET0XHDvqR95Tm/WaYN8IWe+J8=; b=liGVhZsk3C1davACBE41mn5RdL2gF3353HfVaoyFnkKBM0MbrzsT/xXZng0uDV3kpVy2rrSOCQlTMjzgJeYMHNnh58f8GdRKIHeLG8+17zPW/ZQIzMVTXQAvD5Aqc5fV+l63HCVHOzQMxdoDfmBhP3/QrpoZpE97nYHVQq4v0BBXZjXP0exDOt3QR1PDcbsX/Qtc3QiEU7PsOjnWlERDrYKivzgXzjkUQ9VRv72vF1r9JPCc5glS6b6Xt6ciyB57D2xjhwzgpvI9haNrpNK0xWB1uf2y3F19qQ8cw9qELz629pg3Vgf+AjE6dmPDRUGT4YC2VfiPscU3FZbI1b8dDg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=dcGhqvLGqw9PrYMqIw+FsI7o5KYHUaQMuJNT1TbjjUgI23nfNGNWUhNarNMeYvLLgvOoggSi7YLaOK5jVSWumWhXzf9Fy+TRdEuZM+tRo6ZaRmTfMyILm1IW57v0E0VjeXb2+Aivre8WyYMuEccBhnDo8B1Kb9tCwGIQ/v+fA9yA/7x7zgjiKNHNqzKSx3WjS/S/WEU8KIq4n4wtws2rfPyLH3yDkzf9ysujN38wO3lD68du/HIgJ4TaIX7HZDap0jQlngN4HtWq8KQX1Hz0+wDDVhJSMmtYHr3EtagrWVQBM5KmJBAZ2h97pe6jwerr6mWO1TGbHhOgF2aN9ZpfqA==
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=citrix.com header.i="@citrix.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:x-ms-exchange-senderadcheck"
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: Andrew Cooper <andrew.cooper@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Julien Grall <julien@xxxxxxx>, Roger Pau Monne <roger.pau@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Wed, 22 Apr 2026 14:35:49 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHczBIVjQaUKhelwUCYpZQxzVcChrXqzwoAgABXiPA=
  • Thread-topic: [PATCH v6 1/7] xen/mm: Refactor claim deduction for later functional changes

Jan Beulich wrote:

> As to the rename to deduct_global_claims(): With that, wouldn't its 2nd
> parameter then better also change to "deduction"? Furthermore, "global" in
> the name is ambiguous: It may mean "not per-node", but it may also mean
> "not per-domain". The v4 name didn't have such an issue.

I see the point about 'global'. While the struct domain argument provides
context, the term is indeed too generic.

In this logic, 'global' was intended to refer to the opposite of
node-specific claims. While the legacy codebase uses 'no-node' or
NUMA_NO_NODE as a sentinel, I find those terms ambiguous for this new
logic; they often imply a "missing" assignment rather than an explicit
"any-node" policy.

'Node-agnostic' better describes the architectural intent: that these
claims are valid regardless of node locality. To resolve the ambiguity,
I will replace 'global' with 'node-agnostic' across the board (design
documentation, code, and tests).

Specifically, I will:

    Rename the function to deduct_node_agnostic_claims().

    Update the second parameter to 'deduction' for consistency.

    Update the function comment to explicitly define the scope.

/* Deduct from the domain's node-agnostic (non-per-node) claims pool */
static unsigned long deduct_node_agnostic_claims(struct domain *d,
                                                 unsigned long deduction)

While 'global' was shorter, 'node-agnostic' is much more descriptive of
the actual logic and the node-locality (or lack thereof) being addressed,
avoiding the potential confusion associated with 'no-node'.

For consistency, the corresponding renames across the series will be:

+--------------------------------+---------------------------------------+
| Original Term                  | New Term                              |
+--------------------------------+---------------------------------------+
| "global claims"                | "node-agnostic claims"                |
| d->global_claims               | d->node_agnostic_claims               |
| XEN_DOMCTL_CLAIM_MEMORY_GLOBAL | XEN_DOMCTL_CLAIM_MEMORY_NODE_AGNOSTIC |
| deduct_global_claims()         | deduct_node_agnostic_claims()         |
+--------------------------------+---------------------------------------+

I believe these changes result in less ambiguous language universally.
Jan, could you Ack these renames for the next version of the series?

Bernhard


 


Rackspace

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