Files
xemu/include/hw
Bharata B Rao e6fc9568c8 spapr_rtas: Prevent QEMU crash during hotplug without a prior device_add
If drmgr is used in the guest to hotplug a device before a device_add
has been issued via the QEMU monitor, QEMU segfaults in configure_connector
call. This occurs due to accessing of NULL FDT which otherwise would have
been created and associated with the DRC during device_add command.

Check for NULL FDT and return failure from configure_connector call.
As per PAPR+, an error value of -9003 seems appropriate for this failure.

Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
Cc: Michael Roth <mdroth@linux.vnet.ibm.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2015-09-23 10:51:09 +10:00
..
2015-09-10 11:21:21 +03:00
2015-09-14 14:39:49 +01:00
2015-09-14 14:39:49 +01:00
2015-09-07 10:39:30 +01:00
2015-09-09 15:34:53 +02:00
2015-06-11 10:13:30 +01:00
2015-09-07 10:39:30 +01:00
2015-09-10 12:04:27 +00:00
2015-09-07 10:39:28 +01:00
2015-07-06 12:15:14 -06:00
2015-07-27 11:24:48 +03:00
2015-01-15 10:44:13 +03:00
2014-10-23 16:41:25 +02:00
2014-10-24 12:19:11 +01:00
2015-07-13 14:42:24 +03:00
2015-07-06 12:15:14 -06:00
2015-04-30 16:05:48 +03:00