> On Wed, 2010-11-17 at 10:08 +0800,
shaohui.zheng@intel.com wrote:
> > And more we make it friendly, it is possible to add memory to do
> >
> > echo 3g > memory/probe
> > echo 1024m,3 > memory/probe
> >
> > It maintains backwards compatibility.
> >
> > Another format suggested by Dave Hansen:
> >
> > echo physical_address=0x40000000 numa_node=3 > memory/probe
> >
> > it is more explicit to show meaning of the parameters.
>
> The other thing that Greg suggested was to use configfs. Looking back
> on it, that makes a lot of sense. We can do better than these "probe"
> files.
>
> In your case, it might be useful to tell the kernel to be able to add
> memory in a node and add the node all in one go. That'll probably be
> closer to what the hardware will do, and will exercise different code
> paths that the separate "add node", "then add memory" steps that you're
> using here.
>
> For the emulator, I also have to wonder if using debugfs is the right
> was since its ABI is a bit more, well, _flexible_ over time. :)