
24 Sep
2014
24 Sep
'14
2:05 p.m.
On 09/24/2014 02:05 AM, Linhaifeng wrote:
Hi,
I want to use virsh to create a VM with the qemu parameter '-object memory-backend-file,id=mem,size=2048M,mem-path=/mnt/huge,share=on -numa node,memdev=mem'.
Looking at tests/qemuxml2argvdata/qemuxml2argv-hugepages-pages.args, I see several instances of "-object memory-backend-file...", so look at the counterpart .xml file for some examples: <memoryBacking> <hugepages> <page size='2048' unit='KiB' nodeset='1'/> <page size='1048576' unit='KiB' nodeset='0,2-3'/> </hugepages> </memoryBacking> -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org