qdev: add HotplugHandler->post_plug() callback
commit25e8978817a54745c44d956d8303e6be6f2c4047
authorStefan Hajnoczi <stefanha@redhat.com>
Mon, 16 Jul 2018 08:37:31 +0000 (16 09:37 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 16 Jul 2018 14:58:16 +0000 (16 16:58 +0200)
tree543b47fdca6c37c956a0ebdb022be981929c5f2b
parentf3575af130c700cea060b51a89008a76dae22259
qdev: add HotplugHandler->post_plug() callback

The ->pre_plug() callback is invoked before the device is realized.  The
->plug() callback is invoked when the device is being realized but
before it is reset.

This patch adds a ->post_plug() callback which is invoked after the
device has been reset.  This callback is needed by HotplugHandlers that
need to wait until after ->reset().

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20180716083732.3347-2-stefanha@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/core/hotplug.c
hw/core/qdev.c
include/hw/hotplug.h