mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-22 13:34:07 +03:00
domain: cpu: Add function has_private_memAccess_cells()
It returns true in case any of numa nodes has the "private" memAccess attribute. Signed-off-by: Lin Ma <lma@suse.com>
This commit is contained in:
parent
0864a9b231
commit
f223992934
@ -412,6 +412,12 @@ class DomainCpu(XMLBuilder):
|
|||||||
return
|
return
|
||||||
self.topology.set_defaults_from_vcpus(vcpus)
|
self.topology.set_defaults_from_vcpus(vcpus)
|
||||||
|
|
||||||
|
def has_private_memAccess_cells(self):
|
||||||
|
for cell in self.cells:
|
||||||
|
if cell.memAccess == "private":
|
||||||
|
return True
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
##################
|
##################
|
||||||
# Default config #
|
# Default config #
|
||||||
|
Loading…
Reference in New Issue
Block a user