I forgot to add the updated documentation. I will send it in different patch.
-----Original Message-----
From: Safka, JaroslavX
Sent: Tuesday, November 01, 2016 12:45 PM
To: libvir-list(a)redhat.com
Cc: Ptacek, MichalX <michalx.ptacek(a)intel.com>; Mooney, Sean K
<sean.k.mooney(a)intel.com>; Safka, JaroslavX <jaroslavx.safka(a)intel.com>
Subject: [PATCH 0/2] Add support for preallocated fd memory
Hi,
we would like to introduce 3 new elements source,access and allocation in
memoryBacking element.
<memoryBacking>
<source type="file|anonymous"/>
<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
Also token memAccess in numa cell is used (if not present, default value from
memoryBacking is used)
Jaroslav Safka (2):
Add support for preallocated fd memory
Add support for preallocated fd memory
docs/schemas/domaincommon.rng | 30 ++++
src/conf/domain_conf.c | 138 +++++++++++++-----
src/conf/domain_conf.h | 33 +++++
src/qemu/qemu_command.c | 156 ++++++++++++++++-----
src/qemu/qemu_command.h | 4 +
.../qemuxml2argv-fd-memory-no-numa-topology.args | 33 +++++
.../qemuxml2argv-fd-memory-no-numa-topology.xml | 91 ++++++++++++
.../qemuxml2argv-fd-memory-numa-topology.args | 33 +++++
.../qemuxml2argv-fd-memory-numa-topology.xml | 94 +++++++++++++
.../qemuxml2argv-fd-memory-numa-topology2.args | 36 +++++
.../qemuxml2argv-fd-memory-numa-topology2.xml | 95 +++++++++++++
.../qemuxml2argv-fd-memory-numa-topology3.args | 39 ++++++
.../qemuxml2argv-fd-memory-numa-topology3.xml | 96 +++++++++++++
.../qemuxml2argv-memorybacking-set.xml | 32 +++++
.../qemuxml2argv-memorybacking-unset.xml | 32 +++++
tests/qemuxml2argvtest.c | 42 ++++++
.../qemuxml2xmlout-memorybacking-set.xml | 40 ++++++
.../qemuxml2xmlout-memorybacking-unset.xml | 40 ++++++
tests/qemuxml2xmltest.c | 3 +
19 files changed, 1001 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-fd-memory-
numa-topology2.args
create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-fd-memory-
numa-topology2.xml
create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-fd-memory-
numa-topology3.args
create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-fd-memory-
numa-topology3.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.7.4
--------------------------------------------------------------
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.