Re: [PATCH 7/7] tests: Added tests for NFS disk protocol

2021-01-03 Thread Han Han
On Wed, Dec 30, 2020 at 5:23 AM Ryan Gahagan wrote: > Signed-off-by: Ryan Gahagan > --- > tests/qemuxml2argvdata/disk-network-nfs.args | 1 + > .../disk-network-nfs.x86_64-latest.args | 56 +++ > tests/qemuxml2argvdata/disk-network-nfs.xml | 48 > test

Re: [PATCH 5/7] qemu: Added NFS JSON props methods

2021-01-03 Thread Han Han
On qemu-5.2.0-4.fc34.x86_64, libvirt v6.10.0-262-gbed50bcbbb with this patch series, by following script: #!/bin/bash - set -o nounset # Treat unset variables as an error VM=test NFS_EXPORT=/tmp/nfs IMG=disk1 DISK_XML=/tmp/nfs.xml mkdir -p $NFS_EXPORT echo "$NFS_EXPORT

[PATCH v2] conf: Add support for keeping TPM emulator state

2021-01-03 Thread Eiichi Tsukata
Currently, swtpm TPM state file is removed when a transient domain is powered off or undefined. When we store TPM state on a shared storage such as NFS and use transient domain, TPM states should be kept as it is. Add per-TPM emulator option `persistent_sate` for keeping TPM state. This option onl

Re: [PATCH 1/7] conf: Add NFS disk protocol

2021-01-03 Thread Han Han
On Wed, Dec 30, 2020 at 5:24 AM Ryan Gahagan wrote: > Per Issue 90, Libvirt does not support attaching an NFS disk even though > QEMU has added support for it. This series of patches seeks to implement > this support in Libvirt and begins by adding in flags for an NFS disk. > It is hard to know w

[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 b/docs/sch

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

2021-01-03 Thread Luyao Zhong
Before this patch set, 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, but none of above policies fit our requirment under this case. mbind() support default

[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 a/

[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