Re:Re: what a correct use for virConnectDomainEventRegisterAny API, how to Obtain a stable expected result

2020-04-14 Thread thomas.kuang
Daniel, thanks for your help. If it cannot receive a stable expected callback, it need a timer to handle the timeout, in the timer timeout to release memory passed to virConnectDomainEventRegisterAny or, maybe memory-leak now ... At 2020-04-14 18:00:49, "Daniel P. Berrangé" wrote: >On

Re: what a correct use for virConnectDomainEventRegisterAny API, how to Obtain a stable expected result

2020-04-14 Thread Daniel P . Berrangé
On Mon, Apr 13, 2020 at 05:32:38PM +0800, thomas.kuang wrote: > HI, everyone: > > > My target deal with network hotplug use virDomainDetachDeviceFlags. Because > when the API return ,the network maybe doesn’t remove from my vm guest os. > > So I use virConnectDomainEventRegisterAny to

what a correct use for virConnectDomainEventRegisterAny API, how to Obtain a stable expected result

2020-04-13 Thread thomas.kuang
HI, everyone: My target deal with network hotplug use virDomainDetachDeviceFlags. Because when the API return ,the network maybe doesn’t remove from my vm guest os. So I use virConnectDomainEventRegisterAny to register an event ID: VIR_DOMAIN_EVENT_ID_DEVICE_REMOVED , my process as