• M
    Revert "Separate out StateAutoStart from StateInitialize" · 07a9c8ba
    Michal Privoznik 提交于
    https://bugzilla.redhat.com/show_bug.cgi?id=1685151
    
    This reverts commit e4a96909.
    
    Now that drivers may call virConnectOpen() on secondary drivers, it
    doesn't make much sense to have autostart separated from driver
    initialization callback. In fact, it creates a problem because one
    driver during its initialization might try to fetch an object from
    another driver but since the object is yet to be autostarted the fetch
    fails. This has been observed in reality: qemu driver performs
    qemuProcessReconnect() during qemu's stateInitialize phase which may
    call virDomainDiskTranslateSourcePool() which connects to the storage
    driver to look up the volume. But the storage driver did not autostart
    its pools yet therefore volume lookup fails and the domain is killed.
    Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
    Reviewed-by: NJán Tomko <jtomko@redhat.com>
    07a9c8ba
driver-state.h 1.5 KB