Hi the xml element to be extended with additional children is the memoryBacking 
element.

We would like to introduce 3 new elements source,access and allocation

<memoryBacking>
     <source type="file|anonymous" path='/path/to/qemu/'/>
     <access Mode="shared|private"/>
     <allocation mode="immediate|ondemand"/> 
</memoryBacking>

If allocation is immediate then -mem-prealloc should be added to the qemu 
commanline.
If source is file then
-object memory-backend-file,id=mem,size=1024M,mem-path=/var/lib/libvirt/qemu 
-numa node,memdev=mem 
Should be added to the qemu commandline

If access is shared then the share=on parameter should be added to the 
memory-backend-file e.g.
-object 
memory-backend-file,id=mem,size=1024M,mem-path=/var/lib/libvirt/qemu,share=on

Jaroslav Safka (2):
  Add support for preallocated fd memory
  Add support for preallocated fd memory

 docs/schemas/domaincommon.rng                      |  37 +++++
 src/conf/domain_conf.c                             | 149 +++++++++++++++-----
 src/conf/domain_conf.h                             |  34 +++++
 src/qemu/qemu_command.c                            | 156 ++++++++++++++++-----
 src/qemu/qemu_command.h                            |   4 +
 .../qemuxml2argv-fd-memory-no-numa-topology.args   |  34 +++++
 .../qemuxml2argv-fd-memory-no-numa-topology.xml    |  96 +++++++++++++
 .../qemuxml2argv-fd-memory-numa-topology.args      |  34 +++++
 .../qemuxml2argv-fd-memory-numa-topology.xml       |  99 +++++++++++++
 .../qemuxml2argv-memorybacking-set.xml             |  32 +++++
 .../qemuxml2argv-memorybacking-unset.xml           |  32 +++++
 tests/qemuxml2argvtest.c                           |  24 ++++
 .../qemuxml2xmlout-memorybacking-set.xml           |  40 ++++++
 .../qemuxml2xmlout-memorybacking-unset.xml         |  40 ++++++
 tests/qemuxml2xmltest.c                            |   3 +
 15 files changed, 748 insertions(+), 66 deletions(-)
 create mode 100644 
tests/qemuxml2argvdata/qemuxml2argv-fd-memory-no-numa-topology.args
 create mode 100644 
tests/qemuxml2argvdata/qemuxml2argv-fd-memory-no-numa-topology.xml
 create mode 100644 
tests/qemuxml2argvdata/qemuxml2argv-fd-memory-numa-topology.args
 create mode 100644 
tests/qemuxml2argvdata/qemuxml2argv-fd-memory-numa-topology.xml
 create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-memorybacking-set.xml
 create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-memorybacking-unset.xml
 create mode 100644 
tests/qemuxml2xmloutdata/qemuxml2xmlout-memorybacking-set.xml
 create mode 100644 
tests/qemuxml2xmloutdata/qemuxml2xmlout-memorybacking-unset.xml

-- 
2.5.5

--------------------------------------------------------------
Intel Research and Development Ireland Limited
Registered in Ireland
Registered Office: Collinstown Industrial Park, Leixlip, County Kildare
Registered Number: 308263


This e-mail and any attachments may contain confidential material for the sole
use of the intended recipient(s). Any review or distribution by others is
strictly prohibited. If you are not the intended recipient, please contact the
sender and delete all copies.

--
libvir-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to