Michal Privoznik af23241cfe qemu_command: Generate memory only after controllers
Currently, memory device (def->mems) part of cmd line is
generated before any controller. In majority of cases it doesn't
matter because neither of memory devices live on a bus that's
created by an exposed controller (e.g. there's no DIMM
controller, at least not exposed). Except for virtio-mem and
virtio-pmem, which do have a PCI address. And if it so happens
that the device goes onto non-default bus (pci.0) starting such
guest fails, because the controller that creates the desired bus
wasn't processed yet. QEMU processes arguments in order.

For instance, if virtio-mem has address with bus='0x01' QEMU
refuses to start with the following message:

  Bus 'pci.1' not found

Similarly for virtio-pmem. I've successfully tested migration and
changing the order does not affect migration stream.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2047271
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
2022-02-02 14:22:47 +01:00
..
2020-06-10 14:00:38 +02:00
2021-07-15 14:50:48 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2022-01-18 15:19:47 +01:00
2021-09-09 18:06:13 +02:00
2019-10-15 11:25:25 +02:00
2020-07-10 09:40:58 +02:00
2021-09-09 18:06:13 +02:00
2022-01-12 11:43:30 +01:00
2022-01-12 11:43:30 +01:00
2022-01-19 13:57:59 +01:00
2022-01-25 16:54:44 +01:00
2022-01-25 16:54:44 +01:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2019-10-15 11:25:25 +02:00
2021-09-09 18:06:13 +02:00
2021-10-21 17:34:04 +01:00
2021-11-08 14:32:32 +01:00
2021-12-13 14:44:01 +01:00
2021-09-09 18:06:13 +02:00
2021-12-13 14:44:01 +01:00
2019-10-15 11:25:25 +02:00
2019-10-15 11:25:25 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-12-13 14:44:01 +01:00
2020-11-27 16:28:31 +01:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-09-17 14:28:00 +02:00
2021-12-13 14:44:01 +01:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00