[libvirt] [RFC 1/3] xml: introduce more config elements for NVDIMM memory

2018-10-16 Thread Luyao Zhong
In order to align with QEMU ,four more parameters about NVDIMM will be introduced into Libvirt xml. 1.alignsize The 'alignsize' option allows users to specify the proper alignment. When mmap(2) the backend files, QEMU uses the host page size by default as the alignment of mapping address.

[libvirt] [RFC 2/3] xml: update xml parsing and formating about NVDIMM memory

2018-10-16 Thread Luyao Zhong
Four new parameters were introduced into libvirt xml, including 'align', 'pmem', 'persistence' and 'unarmed', which are related to NVDIMM memory device. So we need parse and format the xml to save these configurations.Besides, more testcases related to these parameters were added to verify the

[libvirt] [RFC 3/3] qemu: update qemu command-line generating for NVDIMM memory

2018-10-16 Thread Luyao Zhong
According to the result parsing from xml, add corresponding properties into QEMU command line, including 'align', 'pmem', 'persistence' and 'nvdimm-persistence'. And add testcases related to these properties. Signed-off-by: Zhong,Luyao --- src/qemu/qemu_command.c| 25

[libvirt] [RFC 0/3] update NVDIMM support

2018-10-16 Thread Luyao Zhong
' properties in QEMU, and update xml parsing, formating and qemu command-line generating process for NVDIMM. Thanks, Zhong, Luyao Luyao Zhong (3): xml: introduce more config elements for NVDIMM memory xml: update xml parsing and formating about NVDIMM memory qemu: update qemu command-line generating

Re: [libvirt] [RFC 0/3] update NVDIMM support

2018-10-17 Thread Luyao Zhong
Hi Han, I'm not sure which release my patches will merge into. How about adding the patch to update the release news after my last version of these patches.  Waiting for more reviews and comments. Regards, Luyao Zhong On 2018/10/18 上午9:10, Han Han wrote: On Wed, Oct 17, 2018 at 10:25 AM

Re: [libvirt] [RFC 0/3] update NVDIMM support

2018-10-29 Thread Luyao Zhong
polite ping On 2018/10/17 上午10:21, Luyao Zhong wrote: Hi libvirt experts, This is the RFC for updating NVDIMM support in libvirt. QEMU has supported four more properties which libvirt has not introduced yet, including 'align', 'pmem', 'nvdimm-persistences' and 'unarmed'. The 'align' property

[libvirt] [PATCH] docs: remove duplicate example usegae of nvdimm

2019-01-15 Thread Luyao Zhong
original: ... ... merge two examples above into one: ... Signed-off-by: Luyao Zhong --- docs/formatdomain.html.in | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index 7f07bb7

Re: [libvirt] [PATCH] docs: remove duplicate example usegae of nvdimm

2019-01-16 Thread Luyao Zhong
On 2019/1/16 下午4:16, Peter Krempa wrote: On Wed, Jan 16, 2019 at 14:58:21 +0800, Luyao Zhong wrote: original: ... ... merge two examples above into one: ... Signed-off-by: Luyao Zhong What's the benefit of the above change? We have multiple instances

Re: [libvirt] [PATCH v4 02/11] nvdimm: introduce 'pmem' element into xml for NVDIMM memory

2018-12-17 Thread Luyao Zhong
On 2018/12/17 下午7:05, Daniel P. Berrangé wrote: On Mon, Dec 17, 2018 at 05:26:12PM +0800, Luyao Zhong wrote: The 'pmem' option allows users to specify whether the backend storage of memory-backend-file is a real persistent memory: What does this actually do in practice ? Why does it matter

Re: [libvirt] [PATCH v4 03/11] nvdimm: introduce 'unarmed' element into xml for NVDIMM memory

2018-12-17 Thread Luyao Zhong
On 2018/12/17 下午7:07, Daniel P. Berrangé wrote: On Mon, Dec 17, 2018 at 05:26:13PM +0800, Luyao Zhong wrote: The 'unarmed' option allows users to mark vNVDIMM read-only: Why don't we call this element then ? Just keep the same with QEMU, hah~ :) ... /dev

Re: [libvirt] [PATCH v5 11/11] nvdimm: update news.xml

2018-12-21 Thread Luyao Zhong
On 2018/12/21 上午1:10, John Ferlan wrote: $SUBJ: docs: Add news for new nvdimm options On 12/20/18 4:14 AM, Luyao Zhong wrote: add more configure options for NVDIMM Signed-off-by: Luyao Zhong --- docs/news.xml | 9 + 1 file changed, 9 insertions(+) diff --git a/docs/news.xml b

[libvirt] [PATCH v4 08/11] nvdimm: qemu command-line generating for align property

2018-12-17 Thread Luyao Zhong
According to the result parsing from xml, add align property into QEMU command line. Signed-off-by: Luyao Zhong --- src/qemu/qemu_command.c| 14 + .../memory-hotplug-nvdimm-align.x86_64-latest.args | 36 ++ tests/qemuxml2argvtest.c

[libvirt] [PATCH v4 09/11] nvdimm: qemu command-line generating for pmem property

2018-12-17 Thread Luyao Zhong
According to the result parsing from xml, add pmem property into QEMU command line. Signed-off-by: Luyao Zhong --- src/qemu/qemu_command.c| 14 + .../memory-hotplug-nvdimm-pmem.x86_64-latest.args | 36 ++ tests/qemuxml2argvtest.c

[libvirt] [PATCH v4 10/11] nvdimm: qemu command-line generating for unarmed property

2018-12-17 Thread Luyao Zhong
According to the result parsing from xml, add unarmed property into QEMU command line. Signed-off-by: Luyao Zhong --- src/qemu/qemu_command.c| 16 -- src/qemu/qemu_command.h| 3 +- src/qemu/qemu_hotplug.c

[libvirt] [PATCH v4 06/11] qemu_capabilities: introduce QEMU_CAPS_DEVICE_NVDIMM_UNARMED

2018-12-17 Thread Luyao Zhong
This capability tracks if nvdimm has unarmed attribute or not. Signed-off-by: Luyao Zhong --- src/qemu/qemu_capabilities.c | 8 ++ src/qemu/qemu_capabilities.h | 1 + .../caps_2.10.0.x86_64.replies | 62 - tests

[libvirt] [PATCH v4 11/11] nvdimm: update news.xml

2018-12-17 Thread Luyao Zhong
add more configure options for NVDIMM Signed-off-by: Luyao Zhong --- docs/news.xml | 9 + 1 file changed, 9 insertions(+) diff --git a/docs/news.xml b/docs/news.xml index 5bdbd34..dde98a1 100644 --- a/docs/news.xml +++ b/docs/news.xml @@ -65,6 +65,15 @@ qemu: Add support

[libvirt] [PATCH v4 01/11] nvdimm: introduce 'alignsize' element into xml for NVDIMM memory

2018-12-17 Thread Luyao Zhong
: ... /dev/dax0.0 2 4094 0 2 ... Signed-off-by: Luyao Zhong --- docs/formatdomain.html.in | 23 +++-- docs/schemas/domaincommon.rng | 13 +++-- src/conf

[libvirt] [PATCH v4 02/11] nvdimm: introduce 'pmem' element into xml for NVDIMM memory

2018-12-17 Thread Luyao Zhong
The 'pmem' option allows users to specify whether the backend storage of memory-backend-file is a real persistent memory: ... /dev/dax0.0 4094 0 2 ... Signed-off-by: Luyao Zhong

[libvirt] [PATCH v4 04/11] qemu_capabilities: introduce QEMU_CAPS_OBJECT_MEMORY_FILE_ALIGN

2018-12-17 Thread Luyao Zhong
This capability tracks if memory-backend-file has align attribute or not. Signed-off-by: Luyao Zhong --- src/qemu/qemu_capabilities.c | 4 +++- src/qemu/qemu_capabilities.h | 1 + tests/qemucapabilitiesdata/caps_2.12.0.aarch64.xml | 1 + tests

[libvirt] [PATCH v4 07/11] nvdimm: use DO_TEST_CAPS_LATEST to do nvdimm qemuxml2argvdata test

2018-12-17 Thread Luyao Zhong
Depracate DO_TEST to do nvdimm qemuxml2argvdata tests, because DO_TEST_CAPS_LATEST is a better choice. the DO_TEST need to specify all qemu capabilities and is not easy for scaling. Signed-off-by: Luyao Zhong --- .../memory-hotplug-nvdimm-access.args | 31

[libvirt] [PATCH v4 00/11] update NVDIMM support

2018-12-17 Thread Luyao Zhong
Hi libvirt experts, There are some gaps between qemu and libvirt, libvirt has not supported several config options about NVDIMM memory while qemu has now, including 'align', 'pmem', 'unarmed'. So these three options is introduced in this patch set. Regards, Luyao Zhong Luyao Zhong (11

[libvirt] [PATCH v4 03/11] nvdimm: introduce 'unarmed' element into xml for NVDIMM memory

2018-12-17 Thread Luyao Zhong
The 'unarmed' option allows users to mark vNVDIMM read-only: ... /dev/dax0.0 4094 0 2 ... Signed-off-by: Luyao Zhong --- docs/formatdomain.html.in | 45

[libvirt] [PATCH v4 05/11] qemu_capabilities: introduce QEMU_CAPS_OBJECT_MEMORY_FILE_PMEM

2018-12-17 Thread Luyao Zhong
This capability tracks if memory-backend-file has pmem attribute or not. Signed-off-by: Luyao Zhong --- src/qemu/qemu_capabilities.c | 4 src/qemu/qemu_capabilities.h | 3 +++ tests/qemucapabilitiesdata/caps_3.1.0.ppc64.xml | 1 + tests

Re: [libvirt] [RFC v3 0/4] update NVDIMM support

2018-12-14 Thread Luyao Zhong
On 2018/12/14 上午9:06, John Ferlan wrote: No need to CC developers for libvirt, we're all subscribed to the list anyways and generally are faithful in reading. Reviews are a different story. On 12/12/18 7:52 AM, Luyao Zhong wrote: Hi libvirt experts, This is the RFC v3 for updating NVDIMM

Re: [libvirt] [RFC v3 1/4] nvdimm: introduce more config elements into xml for NVDIMM memory

2018-12-16 Thread Luyao Zhong
On 2018/12/14 上午9:07, John Ferlan wrote: On 12/12/18 7:52 AM, Luyao Zhong wrote: 1.alignsize The 'alignsize' option allows users to specify the proper alignment. 2.pmem The 'pmem' option allows users to specify whether the backend storage of memory-backend-file is a real persistent memory

Re: [libvirt] [RFC v3 3/4] nvdimm: update qemu command-line generating for NVDIMM memory

2018-12-14 Thread Luyao Zhong
On 2018/12/14 上午9:10, John Ferlan wrote: On 12/12/18 7:53 AM, Luyao Zhong wrote: According to the result parsing from xml, add corresponding properties into QEMU command line, including 'align', 'pmem' and 'unarmed'. Signed-off-by: Luyao Zhong --- src/qemu/qemu_command.c

Re: [libvirt] [RFC v3 2/4] nvdimm: add nvdimm-related qemucapabilities check

2018-12-14 Thread Luyao Zhong
On 2018/12/14 上午9:09, John Ferlan wrote: On 12/12/18 7:52 AM, Luyao Zhong wrote: -object memory-backend-file[,align=][,pmem=] Signed-off-by: Luyao Zhong --- src/qemu/qemu_capabilities.c | 8 +++- src/qemu/qemu_capabilities.h | 4

Re: [libvirt] [RFC v3 4/4] nvdimm: update news.xml

2018-12-14 Thread Luyao Zhong
On 2018/12/14 上午10:17, John Ferlan wrote: On 12/12/18 7:53 AM, Luyao Zhong wrote: add more configure options for NVDIMM Signed-off-by: Luyao Zhong --- docs/news.xml | 9 + 1 file changed, 9 insertions(+) It will be OK to just have one of these assuming each of the options

Re: [libvirt] [PATCH v5 10/11] nvdimm: qemu command-line generating for unarmed property

2018-12-20 Thread Luyao Zhong
On 2018/12/20 下午5:14, Luyao Zhong wrote: According to the result parsing from xml, add unarmed property into QEMU command line: -device nvdimm,...[,unarmed=on/off] Signed-off-by: Luyao Zhong --- src/qemu/qemu_command.c| 16 -- src/qemu/qemu_command.h

[libvirt] [PATCH v5 06/11] qemu_capabilities: introduce QEMU_CAPS_DEVICE_NVDIMM_UNARMED

2018-12-20 Thread Luyao Zhong
This capability tracks if nvdimm has unarmed attribute or not. Signed-off-by: Luyao Zhong --- src/qemu/qemu_capabilities.c | 8 ++ src/qemu/qemu_capabilities.h | 1 + .../caps_2.10.0.x86_64.replies | 62 - tests

[libvirt] [PATCH v5 07/11] nvdimm: use DO_TEST_CAPS_LATEST to do nvdimm qemuxml2argvdata test

2018-12-20 Thread Luyao Zhong
Depracate DO_TEST to do nvdimm qemuxml2argvdata tests, because DO_TEST_CAPS_LATEST is a better choice. the DO_TEST need to specify all qemu capabilities and is not easy for scaling. Signed-off-by: Luyao Zhong --- .../memory-hotplug-nvdimm-access.args | 31

[libvirt] [PATCH v5 01/11] nvdimm: introduce 'alignsize' element into xml for NVDIMM memory

2018-12-20 Thread Luyao Zhong
: ... /dev/dax0.0 2 4094 0 2 ... Signed-off-by: Luyao Zhong --- docs/formatdomain.html.in | 23 +++-- docs/schemas/domaincommon.rng | 13 +++-- src/conf

[libvirt] [PATCH v5 08/11] nvdimm: qemu command-line generating for align property

2018-12-20 Thread Luyao Zhong
According to the result parsing from xml, add align property into QEMU command line: -object memory-backend-file,...[,align=xxx] Signed-off-by: Luyao Zhong --- src/qemu/qemu_command.c| 14 + .../memory-hotplug-nvdimm-align.x86_64-latest.args | 36

[libvirt] [PATCH v5 02/11] nvdimm: introduce 'pmem' element into xml for NVDIMM memory

2018-12-20 Thread Luyao Zhong
The 'pmem' option allows users to specify whether the backend storage of memory-backend-file is a real persistent memory: ... /dev/dax0.0 4094 0 2 ... Signed-off-by: Luyao Zhong

[libvirt] [PATCH v5 04/11] qemu_capabilities: introduce QEMU_CAPS_OBJECT_MEMORY_FILE_ALIGN

2018-12-20 Thread Luyao Zhong
This capability tracks if memory-backend-file has align attribute or not. Signed-off-by: Luyao Zhong --- src/qemu/qemu_capabilities.c | 4 +++- src/qemu/qemu_capabilities.h | 1 + tests/qemucapabilitiesdata/caps_2.12.0.aarch64.xml | 1 + tests

[libvirt] [PATCH v5 05/11] qemu_capabilities: introduce QEMU_CAPS_OBJECT_MEMORY_FILE_PMEM

2018-12-20 Thread Luyao Zhong
This capability tracks if memory-backend-file has pmem attribute or not. Signed-off-by: Luyao Zhong --- src/qemu/qemu_capabilities.c | 4 src/qemu/qemu_capabilities.h | 3 +++ tests/qemucapabilitiesdata/caps_3.1.0.ppc64.xml | 1 + tests

[libvirt] [PATCH v5 00/11] update NVDIMM support

2018-12-20 Thread Luyao Zhong
to 'alignsize' and 'readonly' in domain xml file for user-friendly definition. Regards, Luyao Zhong Luyao Zhong (11): nvdimm: introduce 'alignsize' element into xml for NVDIMM memory nvdimm: introduce 'pmem' element into xml for NVDIMM memory nvdimm: introduce 'readonly' element into xml for NVDIMM

[libvirt] [PATCH v5 03/11] nvdimm: introduce 'readonly' element into xml for NVDIMM memory

2018-12-20 Thread Luyao Zhong
The 'readonly' option allows users to mark vNVDIMM read-only: ... /dev/dax0.0 4094 0 2 ... Signed-off-by: Luyao Zhong --- docs/formatdomain.html.in | 45

[libvirt] [PATCH v5 11/11] nvdimm: update news.xml

2018-12-20 Thread Luyao Zhong
add more configure options for NVDIMM Signed-off-by: Luyao Zhong --- docs/news.xml | 9 + 1 file changed, 9 insertions(+) diff --git a/docs/news.xml b/docs/news.xml index e9b6bb7..2076cd5 100644 --- a/docs/news.xml +++ b/docs/news.xml @@ -79,6 +79,15 @@ qemu: Add support

[libvirt] [PATCH v5 10/11] nvdimm: qemu command-line generating for unarmed property

2018-12-20 Thread Luyao Zhong
According to the result parsing from xml, add unarmed property into QEMU command line: -device nvdimm,...[,unarmed=on/off] Signed-off-by: Luyao Zhong --- src/qemu/qemu_command.c| 16 -- src/qemu/qemu_command.h| 3 +- src/qemu

[libvirt] [PATCH v5 09/11] nvdimm: qemu command-line generating for pmem property

2018-12-20 Thread Luyao Zhong
According to the result parsing from xml, add pmem property into QEMU command line: -object memory-backend-file,...[,pmem=on/off] Signed-off-by: Luyao Zhong --- src/qemu/qemu_command.c| 14 + .../memory-hotplug-nvdimm-pmem.x86_64-latest.args | 36

[libvirt] [RFC v3 4/4] nvdimm: update news.xml

2018-12-12 Thread Luyao Zhong
add more configure options for NVDIMM Signed-off-by: Luyao Zhong --- docs/news.xml | 9 + 1 file changed, 9 insertions(+) diff --git a/docs/news.xml b/docs/news.xml index 5bdbd34..0112c91 100644 --- a/docs/news.xml +++ b/docs/news.xml @@ -38,6 +38,15 @@ would normally

[libvirt] [RFC v3 2/4] nvdimm: add nvdimm-related qemucapabilities check

2018-12-12 Thread Luyao Zhong
-object memory-backend-file[,align=][,pmem=] Signed-off-by: Luyao Zhong --- src/qemu/qemu_capabilities.c | 8 +++- src/qemu/qemu_capabilities.h | 4 tests/qemucapabilitiesdata/caps_2.12.0.aarch64.xml | 1 + tests/qemucapabilitiesdata

[libvirt] [RFC v3 1/4] nvdimm: introduce more config elements into xml for NVDIMM memory

2018-12-12 Thread Luyao Zhong
can be configured respectively or simultaneously in domain xml file, here is an example: ... /dev/dax0.0 2 4094 0 2 ... Signed-off-by: Luyao Zhong --- docs

[libvirt] [RFC v3 0/4] update NVDIMM support

2018-12-12 Thread Luyao Zhong
ards, Luyao Zhong Luyao Zhong (4): nvdimm: introduce more config elements into xml for NVDIMM memory nvdimm: add nvdimm-related qemucapabilities check nvdimm: update qemu command-line generating for NVDIMM memory nvdimm: update news.xml docs/formatdomain.html.in

[libvirt] [RFC v3 3/4] nvdimm: update qemu command-line generating for NVDIMM memory

2018-12-12 Thread Luyao Zhong
According to the result parsing from xml, add corresponding properties into QEMU command line, including 'align', 'pmem' and 'unarmed'. Signed-off-by: Luyao Zhong --- src/qemu/qemu_command.c| 32 ++ .../memory-hotplug-nvdimm-align.args

Re: [libvirt] [RFC v2 2/3] nvdimm: update qemu command-line generating for NVDIMM memory

2018-11-29 Thread Luyao Zhong
On 2018/11/29 下午4:52, Peter Krempa wrote: On Thu, Nov 29, 2018 at 12:08:58 +0800, Luyao Zhong wrote: On 2018/11/28 下午10:32, Peter Krempa wrote: On Wed, Nov 28, 2018 at 22:09:01 +0800, Luyao Zhong wrote: According to the result parsing from xml, add corresponding properties into QEMU command

Re: [libvirt] [RFC v2 2/3] nvdimm: update qemu command-line generating for NVDIMM memory

2018-11-28 Thread Luyao Zhong
On 2018/11/28 下午10:32, Peter Krempa wrote: On Wed, Nov 28, 2018 at 22:09:01 +0800, Luyao Zhong wrote: According to the result parsing from xml, add corresponding properties into QEMU command line, including 'align', 'pmem', 'unarmed' and 'nvdimm-persistence'. Signed-off-by: Luyao Zhong

Re: [libvirt] [RFC v2 3/3] nvdimm: update docs for introducing more NVDIMM configurations

2018-11-28 Thread Luyao Zhong
On 2018/11/28 下午10:33, Peter Krempa wrote: On Wed, Nov 28, 2018 at 22:09:19 +0800, Luyao Zhong wrote: Update news.xml and add description about new supported configurations about NVDIMM in html, including 'alignsize', 'pmem', 'unarmed' and 'persistence'. Signed-off-by: Luyao Zhong

[libvirt] [RFC v2 0/3] update NVDIMM support

2018-11-28 Thread Luyao Zhong
options here. I'd like you give some suggestions. Thank you in advance. Regards, Luyao Zhong Luyao Zhong (3): nvdimm: introduce more config elements into xml for NVDIMM memory nvdimm: update qemu command-line generating for NVDIMM memory nvdimm: update docs for introducing more NVDIMM

[libvirt] [RFC v2 2/3] nvdimm: update qemu command-line generating for NVDIMM memory

2018-11-28 Thread Luyao Zhong
According to the result parsing from xml, add corresponding properties into QEMU command line, including 'align', 'pmem', 'unarmed' and 'nvdimm-persistence'. Signed-off-by: Luyao Zhong --- src/qemu/qemu_capabilities.c | 17 +++ src/qemu/qemu_capabilities.h

[libvirt] [RFC v2 1/3] nvdimm: introduce more config elements into xml for NVDIMM memory

2018-11-28 Thread Luyao Zhong
4094 0 2 cpu ... Signed-off-by: Luyao Zhong --- docs/schemas/domaincommon.rng | 31 +- src/conf/domain_conf.c| 94 +-- src/conf/domain_conf.h

[libvirt] [RFC v2 3/3] nvdimm: update docs for introducing more NVDIMM configurations

2018-11-28 Thread Luyao Zhong
Update news.xml and add description about new supported configurations about NVDIMM in html, including 'alignsize', 'pmem', 'unarmed' and 'persistence'. Signed-off-by: Luyao Zhong --- docs/formatdomain.html.in | 94 --- docs/news.xml | 9 2

[libvirt] [PATCH] clarify the xml example for NVDIMM more clealy

2019-09-23 Thread Luyao Zhong
The NVDIMM backend file can be a normal file or a real device file, Current xml example and explainations may mislead users. So add more info about the NVDIMM related elements and update the xml examples. Signed-off-by: Luyao Zhong --- docs/formatdomain.html.in | 9 ++--- 1 file changed, 6

[libvirt] Some questions about live migration

2019-10-18 Thread Luyao Zhong
Hi libvirt experts, I have some questions about live migration. * If a live migration failed during migrating, will the domain exist on the destination host? * Is the flag VIR_MIGRATE_PAUSED make sense to live migration? It's a little confusing for me. Does that indicate if I set this flag,

[libvirt][PATCH v1 1/1] introduce an attribute "migratable" to numatune memory element

2020-10-05 Thread Luyao Zhong
Attribute ``migratable`` will be 'no' by default, and 'yes' indicates that it allows operating system or hypervisor migrating the memory pages between different memory nodes, that also means we will not rely on hypervisor to set the memory policy or memory affinity, we only

[libvirt][PATCH v1 0/1] introduce an attribute "migratable" to numatune memory element

2020-10-05 Thread Luyao Zhong
RFC discussion record link: https://www.redhat.com/archives/libvir-list/2020-August/msg00960.html Luyao Zhong (1): introduce an attribute "migratable" to numatune memory element docs/formatdomain.rst | 8 +++- docs/schemas/domaincommon.rng

[libvirt][RFC PATCH] add a new 'default' option for attribute mode in numatune

2020-08-03 Thread Luyao Zhong
Hi Libvirt experts, I would like enhence the numatune snippet configuration. Given a example snippet: ... ... Currently, attribute mode is either 'interleave', 'strict', or 'preferred', I propose to add a new 'default' option. I give the reason as following.

[libvirt][PATCH v1 3/3] qemu: add parser and formatter for 'restrictive' mode in numatune

2020-11-27 Thread Luyao Zhong
--- include/libvirt/libvirt-domain.h | 1 + src/conf/numa_conf.c | 9 + src/qemu/qemu_command.c | 6 ++- src/qemu/qemu_process.c | 27 + src/util/virnuma.c| 3 ++

[libvirt][PATCH v1 0/3] introduce 'restrictive' mode in numatune

2020-11-27 Thread Luyao Zhong
and not setting any specific memory policies explicitly. RFC discussion: https://www.redhat.com/archives/libvir-list/2020-November/msg01256.html Regards, Luyao Luyao Zhong (3): docs: add docs for 'restrictive' option for mode in numatune schema: add 'restrictive' config option for mode

[libvirt][PATCH v1 1/3] docs: add docs for 'restrictive' option for mode in numatune

2020-11-27 Thread Luyao Zhong
When user would like use cgroups to restrict the allowed memory nodes, and require not setting any specific memory policy, then 'restrictive' mode is useful. --- docs/formatdomain.rst | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/formatdomain.rst

[libvirt][PATCH v1 2/3] schema: add 'restrictive' config option for mode in numatune

2020-11-27 Thread Luyao Zhong
support 'restrictive' mode in memory element and memnode element in numatune: ... ... --- docs/schemas/domaincommon.rng | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index

[libvirt][PATCH v1 2/3] schema: add 'restrictive' config option for mode in numatune

2020-12-15 Thread Luyao Zhong
support 'restrictive' mode in memory element and memnode element in numatune: ... ... --- docs/schemas/domaincommon.rng | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index

[libvirt][PATCH v1 0/3] introduce 'restrictive' mode in numatune

2020-12-15 Thread Luyao Zhong
and not setting any specific memory policies explicitly. RFC discussion: https://www.redhat.com/archives/libvir-list/2020-November/msg01256.html Regards, Luyao Luyao Zhong (3): docs: add docs for 'restrictive' option for mode in numatune schema: add 'restrictive' config option for mode

[libvirt][PATCH v1 1/3] docs: add docs for 'restrictive' option for mode in numatune

2020-12-15 Thread Luyao Zhong
When user would like use cgroups to restrict the allowed memory nodes, and require not setting any specific memory policy, then 'restrictive' mode is useful. --- docs/formatdomain.rst | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/formatdomain.rst

[libvirt][PATCH v1 3/3] qemu: add parser and formatter for 'restrictive' mode in numatune

2020-12-15 Thread Luyao Zhong
--- include/libvirt/libvirt-domain.h | 1 + src/conf/numa_conf.c | 9 + src/qemu/qemu_command.c | 6 ++- src/qemu/qemu_process.c | 27 + src/util/virnuma.c| 3 ++

[libvirt][PATCH v1 0/1] support system default memory policy with numatune

2020-11-03 Thread Luyao Zhong
nks for your patience to read this. Appreciate if you could give comments. Regards, Luyao Luyao Zhong (1): support system default memory policy with numatune docs/formatdomain.rst | 12 - docs/schemas/domaincommon.rng | 7 +++ include/libvir

[libvirt][PATCH v1 1/1] support system default memory policy with numatune

2020-11-03 Thread Luyao Zhong
This patch seeks the support of system default memory policy when numatune is configured. Before this patch, numatune only has three memory modes: static, interleave and prefered. These memory policies are ultimately set by mbind() system call. Memory policy could be 'hard coded' into the kernel,

[libvirt][PATCH v2 1/3] docs: add docs for 'restrictive' option for mode in numatune

2021-01-03 Thread Luyao Zhong
When user would like use cgroups to restrict the allowed memory nodes, and require not setting any specific memory policy, then 'restrictive' mode is useful. Reviewed-by: Daniel Henrique Barboza --- docs/formatdomain.rst | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git

[libvirt][PATCH v2 3/3] qemu: add parser and formatter for 'restrictive' mode in numatune

2021-01-03 Thread Luyao Zhong
Reviewed-by: Daniel Henrique Barboza --- include/libvirt/libvirt-domain.h | 1 + src/conf/numa_conf.c | 9 + src/qemu/qemu_command.c | 6 ++- src/qemu/qemu_process.c | 27 + src/util/virnuma.c

[libvirt][PATCH v2 0/3] introduce 'restrictive' mode in numatune

2021-01-03 Thread Luyao Zhong
and not setting any specific memory policies explicitly. RFC discussion: https://www.redhat.com/archives/libvir-list/2020-November/msg01256.html Regards, Luyao Luyao Zhong (3): docs: add docs for 'restrictive' option for mode in numatune schema: add 'restrictive' config option for mode

[libvirt][PATCH v2 2/3] schema: add 'restrictive' config option for mode in numatune

2021-01-03 Thread Luyao Zhong
support 'restrictive' mode in memory element and memnode element in numatune: ... ... Reviewed-by: Daniel Henrique Barboza --- docs/schemas/domaincommon.rng | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/schemas/domaincommon.rng

[libvirt][PATCH v3 3/3] qemu: add parser and formatter for 'restrictive' mode in numatune

2021-01-05 Thread Luyao Zhong
Reviewed-by: Daniel Henrique Barboza Signed-off-by: Luyao Zhong --- include/libvirt/libvirt-domain.h | 1 + src/conf/numa_conf.c | 9 + src/qemu/qemu_command.c | 6 ++- src/qemu/qemu_process.c | 27

[libvirt][PATCH v3 1/3] docs: add docs for 'restrictive' option for mode in numatune

2021-01-05 Thread Luyao Zhong
When user would like use cgroups to restrict the allowed memory nodes, and require not setting any specific memory policy, then 'restrictive' mode is useful. Reviewed-by: Daniel Henrique Barboza Signed-off-by: Luyao Zhong --- docs/formatdomain.rst | 7 +-- 1 file changed, 5 insertions

[libvirt][PATCH v3 0/3] introduce 'restrictive' mode in numatune

2021-01-05 Thread Luyao Zhong
and not setting any specific memory policies explicitly. RFC discussion: https://www.redhat.com/archives/libvir-list/2020-November/msg01256.html Regards, Luyao Luyao Zhong (3): docs: add docs for 'restrictive' option for mode in numatune schema: add 'restrictive' config option for mode

[libvirt][PATCH v3 2/3] schema: add 'restrictive' config option for mode in numatune

2021-01-05 Thread Luyao Zhong
support 'restrictive' mode in memory element and memnode element in numatune: ... ... Reviewed-by: Daniel Henrique Barboza Signed-off-by: Luyao Zhong --- docs/schemas/domaincommon.rng | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs

[libvirt][PATCH v4 3/3] qemu: add parser and formatter for 'restrictive' mode in numatune

2021-03-22 Thread Luyao Zhong
Reviewed-by: Daniel Henrique Barboza Signed-off-by: Luyao Zhong --- include/libvirt/libvirt-domain.h | 1 + src/conf/numa_conf.c | 9 src/qemu/qemu_command.c | 6 ++- src/qemu/qemu_process.c | 27

[libvirt][PATCH v4 0/3] introduce 'restrictive' mode in numatune

2021-03-22 Thread Luyao Zhong
and not setting any specific memory policies explicitly. RFC discussion: https://www.redhat.com/archives/libvir-list/2020-November/msg01256.html Regards, Luyao Luyao Zhong (3): docs: add docs for 'restrictive' option for mode in numatune schema: add 'restrictive' config option for mode

[libvirt][PATCH v4 2/3] schema: add 'restrictive' config option for mode in numatune

2021-03-22 Thread Luyao Zhong
support 'restrictive' mode in memory element and memnode element in numatune: ... ... Reviewed-by: Daniel Henrique Barboza Signed-off-by: Luyao Zhong --- docs/schemas/domaincommon.rng | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs

[libvirt][PATCH v4 1/3] docs: add docs for 'restrictive' option for mode in numatune

2021-03-22 Thread Luyao Zhong
When user would like use cgroups to restrict the allowed memory nodes, and require not setting any specific memory policy, then 'restrictive' mode is useful. Reviewed-by: Daniel Henrique Barboza Signed-off-by: Luyao Zhong --- docs/formatdomain.rst | 7 +-- 1 file changed, 5 insertions

[libvirt][PATCH v5 2/3] schema: add 'restrictive' config option for mode in numatune

2021-04-13 Thread Luyao Zhong
support 'restrictive' mode in memory element and memnode element in numatune: ... ... Reviewed-by: Daniel Henrique Barboza Signed-off-by: Luyao Zhong --- docs/schemas/domaincommon.rng | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs

[libvirt][PATCH v5 1/3] docs: add docs for 'restrictive' option for mode in numatune

2021-04-13 Thread Luyao Zhong
When user would like use cgroups to restrict the allowed memory nodes, and require not setting any specific memory policy, then 'restrictive' mode is useful. Reviewed-by: Daniel Henrique Barboza Signed-off-by: Luyao Zhong --- docs/formatdomain.rst | 7 +-- 1 file changed, 5 insertions

[libvirt][PATCH v5 3/3] qemu: add parser and formatter for 'restrictive' mode in numatune

2021-04-13 Thread Luyao Zhong
Reviewed-by: Daniel Henrique Barboza Signed-off-by: Luyao Zhong --- include/libvirt/libvirt-domain.h | 1 + src/conf/numa_conf.c | 9 src/qemu/qemu_command.c | 6 ++- src/qemu/qemu_process.c | 27

[libvirt][PATCH v5 0/3] introduce 'restrictive' mode in numatune

2021-04-13 Thread Luyao Zhong
it is full, then on the next one and so on). In a word, if a user requires default mode(MPOL_DEFAULT), that means they want kernel decide the memory allocation and also want the cgroups to restrict memory nodes, "restrictive" mode will be useful. BR, Luyao Luyao Zhong (3): docs: add docs for