The virtiofs in domcapabilities is used as a proxy to tell us whether
libvirt is new enough to allow bare memory access mode=shared', So We
enable/disable this checkbox according to it.
When we configure shared memory access, If the 'memfd' is available in
domcaps, We configure VM to use it as mem
Linux memfd memory backend doesn't require any host setup, We prefer to
use it as the simplest memory XML adjustments to make virtiofs works.
Signed-off-by: Lin Ma
---
virtinst/domcapabilities.py | 12
1 file changed, 12 insertions(+)
diff --git a/virtinst/domcapabilities.py b/virt
Check whether virtiofs is exposed in domcapabilities, We can use it as a
proxy for 'libvirt is new enough to allow bare memory access mode=shared'
as well.
Signed-off-by: Lin Ma
---
virtinst/domcapabilities.py | 7 +++
1 file changed, 7 insertions(+)
diff --git a/virtinst/domcapabilities.py
Future patches about virtiofs addhw support relies on shared memory access.
Lin Ma (7):
domcapabilities: Get filesystem devices
domcapabilities: Add supports_filesystem_virtiofs()
domcapabilities: Add supports_memorybacking_memfd()
domain: memorybacking: Add function is_shared_access()
d
It returns true in case the memoryBacking element contains the "shared"
access mode.
Signed-off-by: Lin Ma
---
virtinst/domain/memorybacking.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/virtinst/domain/memorybacking.py b/virtinst/domain/memorybacking.py
index c883c57d..60e97da4 1006
It returns true in case all of numa nodes have the "shared" memAccess
attribute defined explicitly.
Signed-off-by: Lin Ma
---
virtinst/domain/cpu.py | 8
1 file changed, 8 insertions(+)
diff --git a/virtinst/domain/cpu.py b/virtinst/domain/cpu.py
index 01e6c9aa..76e69bb5 100644
--- a/v
Signed-off-by: Lin Ma
---
virtinst/domcapabilities.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/virtinst/domcapabilities.py b/virtinst/domcapabilities.py
index 8a6ac66c..65b984ce 100644
--- a/virtinst/domcapabilities.py
+++ b/virtinst/domcapabilities.py
@@ -101,6 +101,7 @@ class _Device
It returns true in case any of numa nodes has the "private" memAccess
attribute.
Signed-off-by: Lin Ma
---
virtinst/domain/cpu.py | 6 ++
1 file changed, 6 insertions(+)
diff --git a/virtinst/domain/cpu.py b/virtinst/domain/cpu.py
index 55def91f..01e6c9aa 100644
--- a/virtinst/domain/cpu.py