[Hotplug_sig] [Lhms-devel] acpi emulation for memory hotplug. [3/3] hide system ram at boot

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

 



With this patch, system ram range is not registered to OS's resource check
at boot. This will allow fake memory hotadd.



Index: linux-2.6.17-rc5-mm2/arch/ia64/kernel/efi.c
===================================================================
--- linux-2.6.17-rc5-mm2.orig/arch/ia64/kernel/efi.c	2006-06-07 13:47:32.000000000 +0900
+++ linux-2.6.17-rc5-mm2/arch/ia64/kernel/efi.c	2006-06-07 13:48:07.000000000 +0900
@@ -1106,7 +1106,7 @@
 		res->start = md->phys_addr;
 		res->end = md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT) - 1;
 		res->flags = flags;
-
+#if 0
 		if (insert_resource(&iomem_resource, res) < 0)
 			kfree(res);
 		else {
@@ -1118,5 +1118,6 @@
 			insert_resource(res, code_resource);
 			insert_resource(res, data_resource);
 		}
+#endif
 	}
 }



[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux