@@ -1320,6 +1320,18 @@ static struct hv_pci_dev *new_pcichild_device(struct hv_pcibus_device *hbus,
+ * When a device is being added to the bus, we set the PCI domain
+ * number to be the device serial number, which is non-zero and
+ * unique on the same VM. The serial numbers start with 1, and
+ * increase by 1 for each device. So device names including this
+ * can have shorter names than based on the bus instance UUID.
+ * Only the first device serial number is used for domain, so the
+ * domain number will not change after the first device is added.
+ if (list_empty(&hbus->children))
+ hbus->sysdata.domain = desc->ser;