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

Re: [PATCH v4] xen/domain: introduce generic functions for domain struct allocation and freeing


  • To: Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: "Orzel, Michal" <michal.orzel@xxxxxxx>
  • Date: Mon, 8 Dec 2025 17:29:17 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=gmail.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • 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=1ez4eHZ3lhJQS4MeN+gO2lFxSdkxYehtXSkZmCMncJM=; b=ewLQhbdEzt/JV1q/0RPhMld6x1lTwVqM1BV5sM/bNxjx5dxoT3sqruQ/+optgaFW34Rr4hv5gdLxPr+PJxjvDXnMfyT72ygLdtYnHSJHFMP+QHFJLyzd6sYufgqLaS+nfjHRPh29YjIlWP29e3J/A/dEkAmfhRG6TQH3Qog/ftLjSE3N+CJF2t8fgmc26U6JnegKbjI/ssVo3cLHSE9svXgm+IohATlxAuQWUks07+YUPueunKcfyhpyKOVjB+4/mY2/+4tt4y7tHqv1TcQ8hpo5D0C4QZpl1RqMRkgomDv44p/VIBQ7UzHK/GUC5ESsiUY291JYq04zSoR+dDmxHw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=yjclh8VP4+uYDPC/6rkIyY0z+dDjfZAmziBW/ednjWVwh3koXbam/8OtAXfimdIu4P5Yjz8Z2QkpI/t0ErZIaiqZc0s77Hd72UTtS5P5tWBAsWve6N4HBbGyea5xtbJnftaks7kdYU23lK4kTlWWbtVT/9tbT+v0wQ573xlNf+xyGgNqxraH8QlEp1z9frjNYRd9I5Xgf2MqZeg+BGl/PfG1/k2PygT4+kvHBc247jLgdyIVMJmvtBuk8akOySvMN6aWEhOuDMkBlTGuk37k16WcZOtJ8dAxJc7Hcn0XGnl3y60mdoFglS3JPW2urjEoTBvR3uAE1a+w9ZFhPx9Z9g==
  • Cc: Roger Pau Monne <roger.pau@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Timothy Pearson <tpearson@xxxxxxxxxxxxxxxxxxxxx>, Alistair Francis <alistair.francis@xxxxxxx>, Bob Eshleman <bobbyeshleman@xxxxxxxxx>, Connor Davis <connojdavis@xxxxxxxxx>
  • Delivery-date: Mon, 08 Dec 2025 16:29:30 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>


On 02/12/2025 10:27, Oleksii Kurochko wrote:
> From: Roger Pau Monne <roger.pau@xxxxxxxxxx>
> 
> Move x86's free_domain_struct() to common code since it is shared between
> architectures.
> 
> Move the x86 version of alloc_domain_struct() to common code as most of the
> logic is architecture-independent. To handle the remaining architectural
> differences, introduce arch_domain_struct_memflags() for x86-specific
> allocation requirements.
> 
> No functional change.
> 
> Suggested-by: Jan Beulich <jbeulich@xxxxxxxx>
> [Introduce an arch-specific function instead of using a weak function]
> Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
> Signed-off-by: Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>
> Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
Acked-by: Michal Orzel <michal.orzel@xxxxxxx>

~Michal




 


Rackspace

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