mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-02 09:47:16 +03:00
domcapabilities: Add supports_filesystem_virtiofs()
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 <lma@suse.com>
This commit is contained in:
parent
a608a8c710
commit
546010ff94
@ -373,6 +373,13 @@ class DomainCapabilities(XMLBuilder):
|
||||
types = self.devices.graphics.get_enum("type").get_values()
|
||||
return bool("spice" in types)
|
||||
|
||||
def supports_filesystem_virtiofs(self):
|
||||
"""
|
||||
Return True if libvirt advertises support for virtiofs
|
||||
"""
|
||||
types = self.devices.filesystem.get_enum("driverType").get_values()
|
||||
return bool("virtiofs" in types)
|
||||
|
||||
|
||||
XML_NAME = "domainCapabilities"
|
||||
os = XMLChildProperty(_OS, is_single=True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user