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-14 18:51:09 +01:00
2015-09-14 16:13:16 +01:00
2015-09-11 10:45:43 +03:00
2015-09-21 09:56:49 +02:00
2015-09-11 10:45:43 +03:00
2015-09-11 10:45:43 +03:00
2015-09-11 10:21:38 +03:00
2015-09-21 09:56:49 +02:00
2015-09-11 10:45:43 +03:00
2015-09-21 09:56:49 +02:00
2015-09-14 16:13:16 +01:00
2015-09-19 11:53:15 +02:00
2015-09-18 14:38:08 +02:00
2015-09-15 17:24:28 +01:00
2015-09-14 16:13:16 +01:00
2015-09-22 11:32:37 +02:00
2015-09-07 18:14:03 +02:00
2015-09-07 18:14:03 +02:00
2015-09-14 16:51:36 +02:00
2015-09-16 17:33:33 +02:00
2015-09-15 15:42:58 +01:00

Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org

- QEMU team
Description
No description provided
Readme 404 MiB
Languages
C 82.6%
C++ 6.5%
Python 3.4%
Dylan 2.9%
Shell 1.6%
Other 2.8%