• B
    qga-win: changing --retry-path option behavior · b70d6afe
    Bishara AbuHattoum 提交于
    Currently whenever the qemu-ga's service doesn't find the virtio-serial
    the run_agent() loops in a QGA_RETRY_INTERVAL (default 5 seconds)
    intervals and try to restart the qemu-ga which causes a synchronous loop.
    Changed to wait and listen for the serial events by registering for
    notifications a proper serial event handler that deals with events:
      DBT_DEVICEARRIVAL        indicates that the device has been inserted and
                               is available
      DBT_DEVICEREMOVECOMPLETE indicates that the devive has been removed
    Which allow us to determine when the channel path is available for the
    qemu-ga to restart.
    Signed-off-by: NBishara AbuHattoum <bishara@daynix.com>
    Signed-off-by: NSameeh Jubran <sameeh@daynix.com>
    Signed-off-by: NMichael Roth <mdroth@linux.vnet.ibm.com>
    b70d6afe
main.c 45.4 KB