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

Re: [PATCH v2 06/10] xen: introduce an arch helper for default dma zone status


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Wei Chen <Wei.Chen@xxxxxxx>
  • Date: Thu, 21 Apr 2022 15:03:27 +0800
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.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=J9Esg3YoA6ses4DC0rYJeS9nw9MCvXOmCUoUxocmDVI=; b=QiRyCidcdm21p55gycx7rvEgmgH+B6eZADkLmgEkL2h/vENpnyqqAYF+LyTz5UQvfXpkm82u8mxxpcv3pulhNOw501ZxXjm7H6yztm6fqHf9OQ7+UVNLpJeL26QM7+9jTNL5F9yO8RHi2Cn5xElsrAt6S+Fc07kQFxeWUgJHmF/UmfTo4mQyW+bNCTi0uHZtHPq7TtaXUDLPJCepZwbt+Tc/Oh09VMLq8NK8s0FCdSnKdm13hSQckROVKlK6XLFK13D8ptvHH1q3e/H1Kv5ZQ3ZiR0ImVFRWVpFvwShfkGpT+mQ5BI1g9Dt/BKOjYr8rafabth6dCaiQFVNHryfbSA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=H2flMK5ccI4SvnGgwUhued0y4gnuU57Nx1+Ubq0zdsvVy6o0w+OiUtxm/dcSXSW8sFfxFQbpKZ/T2Bt28vzH57MMkDaZrdPuGCmNpO0kiNqmpsHWFKw0mM4V0RL1YuXXkGz1ijSrhw5HAao65YYzzYboFrF2WT+6Hy7MIUbNL73lmA126+9WMrjauoC3guDHCOvx8melfO8nZoyQPSxZHDnSfiJr00k8y4E08oCyhcjtw/Q0DAuQRHxW1U7IRNEp5dkL7NsoFcqL3LhRs2ugIwSr0sKe3/ofgCN0uYggt98okrc52nvxk3FJyjpkwR8LuaBwP2UOojiAnDBPJIRQVg==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: nd@xxxxxxx, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Thu, 21 Apr 2022 07:03:50 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;

Hi Jan,

On 2022/4/19 17:18, Jan Beulich wrote:
On 18.04.2022 11:07, Wei Chen wrote:
--- a/xen/common/page_alloc.c
+++ b/xen/common/page_alloc.c
@@ -1889,7 +1889,7 @@ void __init end_boot_allocator(void)
      }
      nr_bootmem_regions = 0;
- if ( !dma_bitsize && (num_online_nodes() > 1) )
+    if ( !dma_bitsize && arch_have_default_dmazone() )
          dma_bitsize = arch_get_dma_bitsize();

Considering its purpose, may I suggest "want" instead of "have" in the
hook name?


Ok, I will do it.

Jan




 


Rackspace

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