17.08.2023 13:26, Daniel P. Berrangé wrote:
..
A host mgmt app should not be assuming that networking is
running at all, and if it is, the guest might not even be
on the same subnet as the host. Conceivably someone could
even be using QGA to inject files to configure networking.
Overall, IMHO, it is wrong to correlate host notification
that QGA is running, with any assumption about state of
the guest networking.
IOW, I don't think we should make an attempt to serialize
startup of QGA after guest networking. The QGA should be
run as soon as its data transport (virtio-serial/vsock)
is available, which is the current state.
If a host consumer of QGA wants to do something with
guest networking, they should check for guest network
state with the 'guest-network-get-interfaces' command.
Full nod.
/mjt