[libvirt] [PATCHv2.5 00/10] Add support for memory hotplug

Prerna Saxena prerna at linux.vnet.ibm.com
Thu Apr 2 11:05:20 UTC 2015


Hi Peter,

While playing around with memory hotplug implementation, I found that the guest XML isnt updated after a successful hotplug operation :

[root at kop2 test-libvirt]# ./bin/virsh attach-device rhel71-be /home/prerna/mem-hp.xml
Device attached successfully

[root at kop2 test-libvirt]# ./bin/virsh qemu-monitor-command rhel71-be  --hmp "info memdev"                                                                     
  memory backend: 0
  size:  1073741824
  merge: true
  dump: true
  prealloc: false
  policy: default
  host nodes:

[root at kop2 test-libvirt]# ./bin/virsh edit rhel71-be
< Does not reflect an updated memory value or a separate dimm device >

I have observed this on PowerKVM.

Wondering what is a good place to observe the hot-added memory : Should this reflect as  an updated value for current memory in domain XML, or should this show up as a memory device of type:

<memory model='dimm'>
  <source>
    <pagesize unit='KiB'>4096</pagesize>
    <nodemask>1-3</nodemask>
  </source>
  <target>
    <size unit='KiB'>524287</size>
    <node>1</node>
  </target>
</memory>


I would be happy to work on a patch to fix this. Pls provide me your thoughts.

Regards,

-- 
Prerna Saxena

Linux Technology Centre,
IBM Systems and Technology Lab,
Bangalore, India




More information about the libvir-list mailing list