WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH 1/2] Add support to hotplug entry in SRAT table

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH 1/2] Add support to hotplug entry in SRAT table
From: "Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx>
Date: Tue, 8 Dec 2009 18:03:12 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc:
Delivery-date: Tue, 08 Dec 2009 02:03:44 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acp37abzTehYXbheS56Y5sGQ8inB5w==
Thread-topic: [PATCH 1/2] Add support to hotplug entry in SRAT table
This patch revert changeset 20053:ebb07c5934c8, so that in next patch, we will 
add support for hotplug memory entry in SRAT table.

Signed-off-by: Jiang, Yunhong <yunhong.jiang@xxxxxxxxx>

Revert changeset 20053 to add memory hot-add support

diff -r d0b030008814 xen/arch/x86/srat.c
--- a/xen/arch/x86/srat.c       Fri Nov 27 08:09:26 2009 +0000
+++ b/xen/arch/x86/srat.c       Mon Nov 30 20:51:33 2009 +0800
@@ -185,21 +185,10 @@ acpi_numa_memory_affinity_init(struct ac
                bad_srat();
                return;
        }
-       if (ma->flags & ACPI_SRAT_MEM_HOT_PLUGGABLE) {
-               if (page_is_ram_type(paddr_to_pfn(start), 
RAM_TYPE_CONVENTIONAL))
-                       printk(KERN_INFO "SRAT: hot-pluggable zone found 
%"PRIx64" - %"PRIx64" \n",
+       /* It is fine to add this area to the nodes data it will be used later*/
+       if (ma->flags & ACPI_SRAT_MEM_HOT_PLUGGABLE)
+               printk(KERN_INFO "SRAT: hot plug zone found %"PRIx64" - 
%"PRIx64" \n",
                                start, end);
-               else {
-                       /* TODO: This range contains no existing memory yet,
-                        * and shouldn't be included in nodes' [start, end]. It
-                        * will be covered with physical memory hotplug support
-                        * in future.
-                        */
-                       printk(KERN_INFO "SRAT: future hotplug zone found 
%"PRIx64" - %"PRIx64" \n",
-                               start, end);
-                       return;
-               }
-       }
        i = conflicting_nodes(start, end);
        if (i == node) {
                printk(KERN_WARNING

Attachment: revert_20053.patch
Description: revert_20053.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH 1/2] Add support to hotplug entry in SRAT table, Jiang, Yunhong <=