Why guest physical addresses are not the same as the corresponding host virtual addresses in QEMU/KVM? Thanks!

2020-10-10 Thread harry harry
Hi QEMU/KVM developers, I am sorry if my email disturbs you. I did an experiment and found the guest physical addresses (GPAs) are not the same as the corresponding host virtual addresses (HVAs). I am curious about why; I think they should be the same. I am very appreciated if you can give some

Re: [PATCH] virsocketaddr: Zero @netmask in virSocketAddrPrefixToNetmask()

2020-10-10 Thread Laine Stump
On 10/9/20 10:43 AM, Michal Privoznik wrote: The aim of virSocketAddrPrefixToNetmask() is to initialize passed virSocketAddr structure based on prefix length and family. However, it doesn't set all members in the struct which may lead to reads of uninitialized values: ==15421== Use of

[PATCH v6 4/4] qemu: Implement rbd namespace to the source name attribute

2020-10-10 Thread Han Han
Since Nautilus ceph supports separate image namespaces within a pool for tenant isolation and QEMU adds it as a rbd blockdev options from 5.0.0. The source name with format "//" could be used to access a rbd image with namespace. Add unit tests for this attribute.

[PATCH v6 3/4] conf: Support to parse rbd namespace from source name

2020-10-10 Thread Han Han
Signed-off-by: Han Han --- docs/formatdomain.rst | 16 ++ src/conf/domain_conf.c | 47 ++ 2 files changed, 59 insertions(+), 4 deletions(-) diff --git a/docs/formatdomain.rst b/docs/formatdomain.rst index df5ac28028..181afc8574 100644 ---

[PATCH v6 2/4] util: Add member ns to the storage source struct

2020-10-10 Thread Han Han
The member ns will be used to store the namespace string. Signed-off-by: Han Han --- src/util/virstoragefile.c | 2 ++ src/util/virstoragefile.h | 1 + 2 files changed, 3 insertions(+) diff --git a/src/util/virstoragefile.c b/src/util/virstoragefile.c index 82388ae544..38953324ee 100644 ---

[PATCH v6 0/4] qemu: Support rbd namespace in rbd source name

2020-10-10 Thread Han Han
Diffence from v5: - conf: implement virStringSplit() to parse the src->path - tests: Add the cases of path 'pool//image' to disk-network-rbd-namespace test - temporarily removed the patch of news - tweak of version in docs - rebase to the latest main branch v5:

[PATCH v6 1/4] qemu_capabilities: Add QEMU_CAPS_RBD_NAMESPACE

2020-10-10 Thread Han Han
The capability flag will be used for rbd namespace option. The rbd namespace is introduced since ceph Nautilus and qemu v5.0.0. Signed-off-by: Han Han --- src/qemu/qemu_capabilities.c | 2 ++ src/qemu/qemu_capabilities.h | 1 +

[PATCH] libvirt: add memory failure event

2020-10-10 Thread zhenwei pi
Since QEMU 5.2 (commit-77b285f7f6), QEMU supports 'memory failure' event, posts event to monitor if hitting a hardware memory error. Several changes in this patch: Add a new event 'memory failure' for libvirt domain. Implement memory failure event handling for QEMU from QMP. Also implement