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

RE: [PATCH v4 05/10] xen/domain: Add DOMCTL handler for claiming memory with NUMA awareness


  • To: Teddy Astie <teddy.astie@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Bernhard Kaindl <bernhard.kaindl@xxxxxxxxxx>
  • Date: Fri, 27 Feb 2026 18:16:30 +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=Hm/EzdykBF6TtR3U0O9OvKQyOUGBN2fkEmfv2THaCso=; b=mGPIFRvaRn0pdE/oVGW8fjLDNtdGAOxawqvX3MZh5r0JIpP3smpAz5Q0bykBbPecjS1U7yo0WJE2gX/n4zbipktJqMu0U1sVs7lY+sdxn9bz4z6TPl4XS9zVOPGrNShV74ggue/L2wG3si5T7MqjYk/eBTo/gjMIZP4Y2apF50tsfUifXUP3yIkCnkocmDgL7GiSeyOXZX8iBGyyJeOHmf9cBhi4x5XvHAEN1OVNfdlJG7W8jKoH54M0krI8z+2SjENgH701pvhtyd5CDaoDcumihAyVpJiJQhxCRkWFAknVFepSYtzjw+3LegVBRbEbDvdXevDHNBjXAUTIegtmtQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=NrJ8mu874/FSqduttOYqOVXZMybiF3ZYzUS68rTyfGfdmPB3Bn5gcngz0+hGPlKIzNPN1mj+sFHaOL7/Pc3uA9KnFqXekoAxiH35Qdfst4edXbODr//SPDNy2WRVf4tAwyopvOaHHn81qzcl9SI7pC+LIkC6NzRRqkZn5iPOyf4y4o0duyCgXCtXu/1Ji3MJ+/Cl1WoibrEF1B9MpNe36ZfKA5icustEsIISSbthoopfJesAQCtMU7MJSW1yio/GdTVl2/U3z8JDifJTmFcn2osU65emR7DqksTn3J3ZtSWn4dAwyw1D1WQSUKpMc8T6st6egjdPt+F2iDuaEtYejg==
  • 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>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Roger Pau Monne <roger.pau@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Fri, 27 Feb 2026 18:17:00 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHcpy8NKyz6wh/Wrk6CsdW/rK3ShrWVfM8AgAAgIzCAAK6rgIAAe1AA
  • Thread-topic: [PATCH v4 05/10] xen/domain: Add DOMCTL handler for claiming memory with NUMA awareness

> Should we state that the old interface is "deprecated" (somehow), and that
> people should take a look at XEN_DOMCTL_claim_memory instead, especially if
> they need a NUMA-aware interface ?
> That could be a note on the XENMEM_claim_memory hypercall.

Yes. People looking at the then obsolete XENMEM_claim_pages interface
should be referred to the new hypercall using such note.

In preparation for a follow-up, I appended an initial patch to add such
Notes (maybe also in libxc, memory_op and OCaml bindings) to refer people
to the new hypercall interface.

Best, Bernhard

--- a/xen/include/public/memory.h
+++ b/xen/include/public/memory.h
@@ -569,6 +569,15 @@ DEFINE_XEN_GUEST_HANDLE(xen_mem_sharing_op_t);
  * for 10, only 7 additional pages are claimed.
  *
  * Caller must be privileged or the hypercall fails.
+ *
+ * Note: This hypercall is deprecated by introducing XEN_DOMCTL_claim_memory
+ * which provides the same claim semantics described above, and thus can be
+ * used as drop-in replacement and is extended for NUMA-node-specific claims.
+ * This hypercall should not be used by new code.
+ *
+ * See the following documentation pages for more information:
+ * docs/guest-guide/dom/DOMCTL_claim_memory.rst
+ * docs/guest-guide/mem/XENMEM_claim_pages.rst
  */
 #define XENMEM_claim_pages                  24

--- a/docs/guest-guide/mem/XENMEM_claim_pages.rst
+++ b/docs/guest-guide/mem/XENMEM_claim_pages.rst
@@ -5,8 +5,9 @@ XENMEM_claim_pages
 ==================
 
 This **xenmem** command allows a privileged guest to stake a memory claim for a
-domain, identical to :ref:`XEN_DOMCTL_claim_memory`, but without support for
-NUMA-aware memory claims.
+domain, identical to :ref:`XEN_DOMCTL_claim_memory`, which is extended for
+NUMA-aware claims. XENMEM_claim_pages should not be used for new code and is
+deprecated. :ref:`XEN_DOMCTL_claim_memory` provides the same claims semantics.

 Memory claims in Xen
 --------------------

 


Rackspace

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