mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-22 13:34:07 +03:00
guest: Add supports_virtioscsi()
This is similar to the existing supports_virtio*() functions, but for virtio-scsi. Signed-off-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
parent
1a1875be06
commit
c2bcb9e5a6
@ -413,6 +413,8 @@ class Guest(XMLBuilder):
|
||||
return self._supports_virtio(self.osinfo.supports_virtionet())
|
||||
def supports_virtiodisk(self):
|
||||
return self._supports_virtio(self.osinfo.supports_virtiodisk())
|
||||
def supports_virtioscsi(self):
|
||||
return self._supports_virtio(self.osinfo.supports_virtioscsi())
|
||||
def _supports_virtioserial(self):
|
||||
return self._supports_virtio(self.osinfo.supports_virtioserial())
|
||||
|
||||
|
@ -400,6 +400,12 @@ class _OsVariant(object):
|
||||
"http://pcisig.com/pci/1af4/1042"]
|
||||
return bool(self._device_filter(devids=devids))
|
||||
|
||||
def supports_virtioscsi(self):
|
||||
# virtio-scsi and virtio1.0-scsi
|
||||
devids = ["http://pcisig.com/pci/1af4/1004",
|
||||
"http://pcisig.com/pci/1af4/1048"]
|
||||
return bool(self._device_filter(devids=devids))
|
||||
|
||||
def supports_virtionet(self):
|
||||
# virtio-net and virtio1.0-net
|
||||
devids = ["http://pcisig.com/pci/1af4/1000",
|
||||
|
Loading…
Reference in New Issue
Block a user