From 37b4578539091288a7e7851799ebf4289272706e Mon Sep 17 00:00:00 2001
Message-Id: <37b4578539091288a7e7851799ebf4289272706e@dist-git>
From: Martin Kletzander
Date: Wed, 17 Sep 2014 16:17:56 +0200
Subject: [PATCH] docs, conf, schema: add support for shared memory mapping
https://bugzilla.redhat.com/show_bug.cgi?id=1133144
Signed-off-by: Martin Kletzander
(cherry picked from commit def6b35989362cc7ce8474256e19d877ff07a711)
Signed-off-by: Jiri Denemark
---
docs/formatdomain.html.in | 7 +++-
docs/schemas/domaincommon.rng | 8 ++++
src/conf/cpu_conf.c | 30 ++++++++++++++-
src/conf/cpu_conf.h | 17 ++++++--
.../qemuxml2argv-cpu-numa-memshared.xml | 28 ++++++++++++++
.../qemuxml2argv-hugepages-shared.xml | 45 ++++++++++++++++++++++
tests/qemuxml2xmltest.c | 2 +
7 files changed, 131 insertions(+), 6 deletions(-)
create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-cpu-numa-memshared.xml
create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-hugepages-shared.xml
diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in
index a2ea758..ade40f3 100644
--- a/docs/formatdomain.html.in
+++ b/docs/formatdomain.html.in
@@ -1123,7 +1123,7 @@
...
<numa>
<cell id='0' cpus='0-3' memory='512000'/>
- <cell id='1' cpus='4-7' memory='512000'/>
+ <cell id='1' cpus='4-7' memory='512000' memAccess='shared'/>
</numa>
...
</cpu>
@@ -1140,6 +1140,11 @@
assigned ids in the increasing order starting from
0. Mixing cells with and without the id attribute
is not recommended as it may result in unwanted behaviour.
+
+ Since 1.2.9 the optional attribute
+ memAccess can control whether the memory is to be
+ mapped as "shared" or "private". This is valid only for
+ hugepages-backed memory.