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

[PATCH 16/37] xen/x86: export srat_bad to external


  • To: <wei.chen@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>, <sstabellini@xxxxxxxxxx>, <julien@xxxxxxx>
  • From: Wei Chen <wei.chen@xxxxxxx>
  • Date: Thu, 23 Sep 2021 20:02:15 +0800
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); 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; bh=nRu3DqWp6Kxy08JOeoeKkmzqLqGRX3WyhcKxeUsjENI=; b=hPP2BO4ubKHJgr/aDkxkxUvexH59T69iEU+N03XeyeXoBtmkVCq1wAeemZS3cHgWy9jTcFy+Y2Z0jf4M3nmCSEPXYfd+aBBd6SJGgo3m/jWtjyCeCe6OclZZ03fkabyRkZ1+U0WnBS2adDVbNp8qX9jm3t2GLZh+fCrTFO1RRB98gXm4tvPCLan/l6o2gq3itGncsiYGGXHB/ZZyHFEHJV9tISvX8/at/cZ6HdJ2w11kHizz5hHMqrsBmaKrFs+jcf909ItK9E/nneneZPfYH9O4WjEm/g/Bxmj9quAMnksNnDUzK2fgxbwo/Zm7TjwrGS4tw6Zlog/dg7aiZfCG6A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZsWc91N7wotNCfQYJQSblyn5soI+l19yZcCcqtgbYNHZy7ujJeSUgm0ZKWXHpXafMB1Tu7xyUaduStWf3//FHKuMcZcV+5yaBvdnQJn1lj/a1yGdPF4KyuCXjk8RNI0yzJ5sCMbjmmwYwuT1MXubVwl7c3Xy/9Dbx+VW75/bCQcDe1MtMvRZ6bTFb96Bfy0HpKuzjbdqx/pHkcKVG2c/+NytDSbE531G8MvWhJBGMjm4B0PWXdyUEDjwkuFyjg99jd/kt8eb51dxJ1zT4CQeaXmVIPzVJwSTKL3zB/StCdxOSxdf8FqHA6XOlZqexMMBA8A2y/tYwXuVmRIlchGMSA==
  • Cc: <Bertrand.Marquis@xxxxxxx>
  • Delivery-date: Thu, 23 Sep 2021 12:08:04 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true

srat_bad is used when NUMA initialization code scan SRAT failed.
It will turn fw_numa to disabled status. Its implementation depends
on NUMA implementation. We want every NUMA implementation to provide
this function for common initialization code.

In this patch, we export srat_bad to external. This will allow to
have the code mostly common.

Signed-off-by: Wei Chen <wei.chen@xxxxxxx>
---
 xen/arch/x86/srat.c        | 2 +-
 xen/include/asm-x86/numa.h | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/xen/arch/x86/srat.c b/xen/arch/x86/srat.c
index 0b8b0b0c95..94bd5b34da 100644
--- a/xen/arch/x86/srat.c
+++ b/xen/arch/x86/srat.c
@@ -163,7 +163,7 @@ static __init void cutoff_node(int i, paddr_t start, 
paddr_t end)
        }
 }
 
-static __init void bad_srat(void)
+__init void bad_srat(void)
 {
        int i;
        printk(KERN_ERR "SRAT: SRAT not used.\n");
diff --git a/xen/include/asm-x86/numa.h b/xen/include/asm-x86/numa.h
index 295f875a51..a5690a7098 100644
--- a/xen/include/asm-x86/numa.h
+++ b/xen/include/asm-x86/numa.h
@@ -32,6 +32,7 @@ extern bool numa_off;
 
 
 extern int srat_disabled(void);
+extern void bad_srat(void);
 extern void numa_set_node(int cpu, nodeid_t node);
 extern nodeid_t setup_node(unsigned int pxm);
 extern void srat_detect_node(int cpu);
-- 
2.25.1




 


Rackspace

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