From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43169) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRdlk-0006Jd-23 for qemu-devel@nongnu.org; Wed, 10 Sep 2014 05:00:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XRdld-0004Qq-UP for qemu-devel@nongnu.org; Wed, 10 Sep 2014 05:00:52 -0400 Received: from szxga01-in.huawei.com ([119.145.14.64]:34407) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRdlb-0004Po-EX for qemu-devel@nongnu.org; Wed, 10 Sep 2014 05:00:45 -0400 Message-ID: <54101328.4070802@huawei.com> Date: Wed, 10 Sep 2014 17:00:24 +0800 From: zhanghailiang MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] ballooning not working on hotplugged pc-dimm List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexandre DERUMIER Cc: qemu-devel On 2014/9/9 11:05, Alexandre DERUMIER wrote: > Hello, > > I was playing with pc-dimm hotplug, and I notice that balloning is not working on > memory space of pc-dimm devices. > > example: > > qemu -m size=1024,slots=255,maxmem=15000M > > #free -m : 1024M > -> qmp balloon 512M > #free -m : 512M > > -> hotplug pc-dimm 1G: > > #free -m : 1512M > > > (This is the same behavior if qemu is started with pc-dimm devices) > > > qemu 2.1 > Guest kernel : 3.12. > > > > Does it need a guest balloon module update ? > > Regards, > > Alexandre Derumier > > > Hi, I noticed this fault also;-), this is a bug in qemu, And some work in process... Actually in QEMU the hotplugged memory(named hotplug-memory) is distinguished from the common memory(named pc.ram). When do balloon action, QEMU wrongly stats the ram_size. I will send a patch series which also include other bug fix for the memory hotplug. Thanks, zhanghailiang