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

2020-04-14 Thread thomas.kuang
wrote: >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. >>

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 follow:

when virEventAddTimeout trigger timeout ,should in the callback call virConnectDomainEventDeregisterAny ?

2020-04-07 Thread thomas.kuang
hi, all I do a hotplug detach a network in a thread, because virDomainDetachDeviceFlags maybe asynchronous, so I do like follow: cb_para->cluster_id = info->cluster_id; cb_para->group_id = info->group_id; cb_para->vsys_id = info->vsysid; cb_para->vnf_id = info->vnf_id; cb_

why virConnectDomainEventRegisterAny can't alway trigger the callback ,how can i get a stable callback ?

2020-04-07 Thread thomas.kuang
hi, all: I create a vm with six nic, after the vm start, i delete tree nics. all the three nic delete logic will happen in a thread , every nic delete has the following process: int vnf_control_del_network(void *arg) { 。 call_id = virConnectDomainEventRegisterAny(conn, dom, VIR_DOMA

can libvirt.so use jemalloc to manage mem ?

2020-04-02 Thread thomas.kuang
HI, all My daemon exists a libvirt API call: virEventRegisterDefaultImpl(); once I called the virEventRegisterDefaultImpl() ,must be core ,the bt stack is: (gdb) bt #0 free (ptr=0x1) at include/jemalloc/internal/arena.h:652 #1 0x7f57690a488a in virFree () from /lib64/libvirt.so.0 #2

how can i get enough mem stat detai from win7 vm with virtio-win driver install and blnsrv started ?

2020-03-24 Thread thomas.kuang
hi,every one I have some trouble with the virsh to get vm mem-usage in guest os. [root@localhost ~]# virsh list --all Id Name State 1 wwl_centos7_1708 running 2 windows-virtio-template running I create two vms one guest os is centos, the other is window 7 virsh dommemstat wwl_centos7_1708 actual