Skip to content
  • Bishara AbuHattoum's avatar
    qga-win: changing --retry-path option behavior · b70d6afe
    Bishara AbuHattoum authored
    
    
    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: default avatarBishara AbuHattoum <bishara@daynix.com>
    Signed-off-by: default avatarSameeh Jubran <sameeh@daynix.com>
    Signed-off-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
    b70d6afe