Thomas Huth 9405d87be2 hw/ide: Fix crash when plugging a piix3-ide device into the x-remote machine
QEMU currently crashes when the user tries to do something like:

 qemu-system-x86_64 -M x-remote -device piix3-ide

This happens because the "isabus" variable is not initialized with
the x-remote machine yet. Add a proper check for this condition
and propagate the error to the caller, so we can fail there gracefully.

Message-Id: <20210416125256.2039734-1-thuth@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
2021-07-19 10:08:45 +02:00
..
2021-06-03 16:43:27 +01:00
2021-05-12 18:20:25 +02:00
2021-07-08 14:15:45 -05:00
2021-03-15 21:02:20 +01:00
2021-02-21 18:41:04 +01:00
2021-07-11 14:32:49 +01:00
2021-03-05 15:17:34 +00:00
2021-05-05 20:29:14 +01:00
2020-09-09 09:27:09 -04:00
2020-09-09 09:27:09 -04:00
2021-02-21 12:12:18 +00:00
2021-03-06 16:18:42 +01:00
2020-09-09 09:27:09 -04:00
2019-08-16 13:31:52 +02:00
2021-07-06 08:33:51 +02:00
2021-05-12 17:42:23 +02:00
2020-09-09 09:27:09 -04:00
2019-08-16 13:31:52 +02:00
2020-09-09 09:27:09 -04:00
2020-09-09 09:27:09 -04:00
2020-09-18 14:12:32 -04:00
2019-06-12 13:20:21 +02:00
2020-09-09 09:27:09 -04:00
2020-09-09 09:27:09 -04:00