aboutsummaryrefslogtreecommitdiff
path: root/tci.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2015-01-19 15:52:28 +0100
committerMichael S. Tsirkin <mst@redhat.com>2015-02-26 12:42:15 +0100
commit133e9b228df16d11de01529c217417e78d1d9370 (patch)
tree0be3b27cb459ba0edbb62439f6640fc9dc30ca26 /tci.c
parent661875e948ece4723ebe4e7628060c27cad06df1 (diff)
downloadqemu-133e9b228df16d11de01529c217417e78d1d9370.zip
qemu-133e9b228df16d11de01529c217417e78d1d9370.tar.gz
qemu-133e9b228df16d11de01529c217417e78d1d9370.tar.bz2
pci: Convert core to realize
Implement DeviceClass methods realize() and unrealize() instead of init() and exit(). The core's initialization errors now get propagated properly, and QMP sends them instead of an unspecific "Device initialization failed" error. Unrealize can't fail, so no change there. PCIDeviceClass is unchanged: it still provides init() and exit(). Therefore, device models' errors are still not propagated. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Gonglei <arei.gonglei@huawei.com>
Diffstat (limited to 'tci.c')
0 files changed, 0 insertions, 0 deletions