[virt-tools-list] [virt-manager] [PATCH 7/7] details: Add new checkbox to control shared memory access

2021-08-01 Thread Lin Ma
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

[virt-tools-list] [virt-manager] [PATCH 3/7] domcapabilities: Add supports_memorybacking_memfd()

2021-08-01 Thread Lin Ma
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

[virt-tools-list] [virt-manager] [PATCH 2/7] domcapabilities: Add supports_filesystem_virtiofs()

2021-08-01 Thread Lin Ma
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

[virt-tools-list] [virt-manager] [PATCH 0/7] Add a checkbox in memory details to control memory access mode

2021-08-01 Thread Lin Ma
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

[virt-tools-list] [virt-manager] [PATCH 4/7] domain: memorybacking: Add function is_shared_access()

2021-08-01 Thread Lin Ma
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

[virt-tools-list] [virt-manager] [PATCH 6/7] domain: cpu: Add function all_shared_memAccess_cells()

2021-08-01 Thread Lin Ma
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

[virt-tools-list] [virt-manager] [PATCH 1/7] domcapabilities: Get filesystem devices

2021-08-01 Thread Lin Ma
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

[virt-tools-list] [virt-manager] [PATCH 5/7] domain: cpu: Add function has_private_memAccess_cells()

2021-08-01 Thread Lin Ma
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