27 lines
979 B
Diff
27 lines
979 B
Diff
|
|
Subject: virtinst: Add NVMe Controller
|
||
|
|
From: 6543 6543@obermui.de Thu Dec 18 03:37:40 2025 +0100
|
||
|
|
Date: Sun Jan 11 18:36:09 2026 +0100:
|
||
|
|
Git: 605b3d807078f8a67f6828ed84d4e0c2aa6d63bc
|
||
|
|
|
||
|
|
|
||
|
|
diff --git a/virtinst/devices/controller.py b/virtinst/devices/controller.py
|
||
|
|
index def85f10e..ff723d91c 100644
|
||
|
|
--- a/virtinst/devices/controller.py
|
||
|
|
+++ b/virtinst/devices/controller.py
|
||
|
|
@@ -14,6 +14,7 @@ class DeviceController(Device):
|
||
|
|
TYPE_IDE = "ide"
|
||
|
|
TYPE_FDC = "fdc"
|
||
|
|
TYPE_SCSI = "scsi"
|
||
|
|
+ TYPE_NVME = "nvme"
|
||
|
|
TYPE_SATA = "sata"
|
||
|
|
TYPE_VIRTIOSERIAL = "virtio-serial"
|
||
|
|
TYPE_USB = "usb"
|
||
|
|
@@ -121,6 +122,6 @@ class DeviceController(Device):
|
||
|
|
ret = []
|
||
|
|
if self.type == "virtio-serial":
|
||
|
|
ret = self._get_attached_virtioserial_devices(guest)
|
||
|
|
- elif self.type in ["scsi", "sata", "ide", "fdc"]:
|
||
|
|
+ elif self.type in ["scsi", "sata", "ide", "fdc", "nvme"]:
|
||
|
|
ret = self._get_attached_disk_devices(guest)
|
||
|
|
return ret
|