#define AHCI_MAX_PORTS SATA_MAX_DEVICES
/*
- * Publicly supported maximum number of disks per VM.
- * The officially supported maximum number of disks per VM don't change.
+ * Official limit for supported number of disks is 440 per VM.
+ * VM can have more disks (up to 636 as of now), but such VM is not
+ * supported (main reason being too long downtime during (s)vmotion).
*/
-#define MAX_NUM_DISKS \
- ((SATA_MAX_CONTROLLERS * SATA_MAX_DEVICES) + \
- (SCSI_MAX_CONTROLLERS * SCSI_MAX_DEVICES) + \
- (NVME_MAX_CONTROLLERS * NVME_HW19_MAX_NAMESPACES) + \
- (IDE_NUM_INTERFACES * IDE_DRIVES_PER_IF))
-
-/*
- * Maximum number of supported disks in a VM from HWV14 or later, using PVSCSI updated max
- * devices. The note above still holds true, but instead of publicly supporting
- * all devices, HWv14 simply extends the maximum support to 256 devices,
- * instead ~244 calculated above.
- *
- * PVSCSI_HW_MAX_DEVICES is 65 - allowing 64 disks + controller (at ID 7)
- * 4 * 64 = 256 devices.
- *
- * NVME_MAX_NAMESPACES is 64, so 4 * 64 = 256 NVMe disks.
- */
-#define MAX_NUM_DISKS_HWV14 MAX(MAX_NUM_DISKS, \
- MAX((SCSI_MAX_CONTROLLERS * PVSCSI_MAX_NUM_DISKS), \
- (NVME_MAX_CONTROLLERS * NVME_MAX_NAMESPACES)))
+#define MAX_NUM_DISKS_SUPPORTED 440
/*
* VSCSI_BV_INTS is the number of uint32's needed for a bit vector