login
Header Space

 
 

Re: Trying to make use of hotplug memory for xen balloon driver

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jeremy Fitzhardinge <jeremy@...>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@...>, Yasunori Goto <y-goto@...>, Christoph Lameter <clameter@...>, Linux Kernel Mailing List <linux-kernel@...>, Anthony Liguori <anthony@...>, Chris Wright <chrisw@...>
Date: Wednesday, March 26, 2008 - 8:09 pm

On Wed, 2008-03-26 at 16:11 -0700, Jeremy Fitzhardinge wrote:

Yeah, this is your problem.  You've only allocated the iomem *resource*
for the memory area, which means that you've basically claimed the
physical addresses.

But, you don't have any 'struct page's there.

We really screwed up the memory hotplug code and ended up with some
incredibly arcane function names.  You might want to look at
add_memory().  It is hidden away in mm/memory_hotplug.c :)

You might also note that most of the ppc64 memory hotplug is driven by
userspace.  The hypervisor actually contacts a daemon on the guest to
tell it where its new memory is.  That daemon does the addition
through /sys/devices/system/memory/probe.  

-- Dave

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Trying to make use of hotplug memory for xen balloon driver, Jeremy Fitzhardinge, (Wed Mar 26, 7:11 pm)
Re: Trying to make use of hotplug memory for xen balloon dri..., KAMEZAWA Hiroyuki, (Wed Mar 26, 8:50 pm)
Re: Trying to make use of hotplug memory for xen balloon dri..., Jeremy Fitzhardinge, (Thu Mar 27, 1:57 am)
Re: Trying to make use of hotplug memory for xen balloon dri..., KAMEZAWA Hiroyuki, (Thu Mar 27, 2:11 am)
Re: Trying to make use of hotplug memory for xen balloon dri..., Jeremy Fitzhardinge, (Thu Mar 27, 4:54 pm)
Re: Trying to make use of hotplug memory for xen balloon dri..., KAMEZAWA Hiroyuki, (Thu Mar 27, 8:20 pm)
Re: Trying to make use of hotplug memory for xen balloon dri..., Jeremy Fitzhardinge, (Thu Mar 27, 2:09 am)
Re: Trying to make use of hotplug memory for xen balloon dri..., Jeremy Fitzhardinge, (Thu Mar 27, 6:23 pm)
Re: Trying to make use of hotplug memory for xen balloon dri..., Dave Hansen, (Wed Mar 26, 8:09 pm)
Re: Trying to make use of hotplug memory for xen balloon dri..., Christoph Lameter, (Wed Mar 26, 9:23 pm)
Re: Trying to make use of hotplug memory for xen balloon dri..., Jeremy Fitzhardinge, (Wed Mar 26, 8:15 pm)
speck-geostationary