search for: vireventrundefaultimpl

Displaying 20 results from an estimated 86 matches for "vireventrundefaultimpl".

2020 Apr 13
2
what a correct use for virConnectDomainEventRegisterAny API, how to Obtain a stable expected result
...} vnf_op_process(&mission->info); // this will deal with network hotplug,will call virConnectDomainEventRegisterAny then call virDomainDetachDeviceFlags if (mission) { vnf_mission_free(mission); } if(virEventRunDefaultImpl() < 0) { // at here process the registered callback for event-registered printf();.... } } My problem is: some time , the virEventRunDefaultImpl can trigger the vnf_control_del_network_cb callback ,but some time there is nothing ,as if the V...
2017 Mar 08
2
events dispatching in synchronous mode
Hi Is there any way to get events dispatching in synchronous mode ? I mean I'm running my own events polling loop which calls virEventRunDefaultImpl each turn . I'd expect to get my callback function called synchronously , but it's not . Seems that's async call. Maybe it's my general misunderstanding and I shouldn't use virEventRunDefaultImpl for that ? Thanks in advance for any guidance Krzysztof ------------------------...
2013 Sep 18
0
libvirt report error "error: End of file while reading data: Input/output error" when start domain
...136 : EVENT_POLL_ADD_HANDLE: watch=1 fd=5 events=1 cb=0x3fffceb67a8 opaque=(nil) ff=(nil) debug : virEventRegisterImpl:203 : addHandle=0x3fffceb7060 updateHandle=0x3fffceb7450 removeHandle=0x3fffceb6814 addTimeout=0x3fffceb69c8 updateTimeout=0x3fffceb6c24 removeTimeout=0x3fffceb6e2c debug : virEventRunDefaultImpl:270 : running default event implementation debug : virEventPollCleanupTimeouts:514 : Cleanup 0 debug : virEventPollCleanupTimeouts:550 : Found 0 out of 0 timeout slots used, releasing 0 debug : virEventPollCleanupHandles:562 : Cleanup 1 debug : virEventPollMakePollFDs:391 : Prepare n=0 w=1...
2017 Oct 17
2
virConnectIsAlive
...nect, Before usr old virConnectPtr , I call virConnectIsAlive. but when I restart libvirtd , virConnectIsAlive return 1, and I continue other operate use the old virConnectPtr, program will receive signal pipe. I use libvirt event. before any api use, I call virEventRegisterDefaultImpl, and run virEventRunDefaultImpl. then use virConnectIsAlive, when I restart libvirtd, virConnectIsAlive will return 0, I want know how to use virConnectIsAlive, if virConnectIsAlive use keep alive message, what default the interval and count. Thanks
2013 Oct 14
2
event handler
good day to all. i still have not solved my problem with event handling. currently i have following code void libvirt_eventloop_thr_func() { while(true) //TODO: stop somehow on exit { if(virEventRunDefaultImpl() < 0) { virErrorPtr err = virGetLastError(); fprintf(stderr, "Failed to run event loop: %s\n", err && err->message ? err->message : "Unknown error"); } } } ... virSetErrorFunc(NULL, libvirt_error_handler); libvirt_connection = virConnectOpen(&...
2016 Aug 03
0
Crash after connection close when callback is in progress
...ce () at ../../../src/util/vireventpoll.c:653 fds = 0x7fc824000920 ret = <optimized out> timeout = <optimized out> nfds = 1 __func__ = "virEventPollRunOnce" __FUNCTION__ = "virEventPollRunOnce" #6 0x00007fc83280a141 in virEventRunDefaultImpl () at ../../../src/util/virevent.c:314 __func__ = "virEventRunDefaultImpl" #7 0x0000000000400b37 in loop (arg=0x0) at crash.c:8 __PRETTY_FUNCTION__ = "loop" #v- And the state of cbList: #v+ >>> print *cbList $2 = { nextID = 11419456, count = 1,...
2013 Oct 31
2
Re: libvirt_lxc causes cpu 100% usage
...10-29 10:17:00.568+0000: 7566: debug : virEventPollDispatchHandles:482 : i=7 w=8 2013-10-29 10:17:00.568+0000: 7566: debug : virEventPollCleanupTimeouts:514 : Cleanup 2 2013-10-29 10:17:00.568+0000: 7566: debug : virEventPollCleanupHandles:562 : Cleanup 8 2013-10-29 10:17:00.568+0000: 7566: debug : virEventRunDefaultImpl:270 : running default event implementation 2013-10-29 10:17:00.569+0000: 7566: debug : virEventPollCleanupTimeouts:514 : Cleanup 2 2013-10-29 10:17:00.569+0000: 7566: debug : virEventPollCleanupHandles:562 : Cleanup 8 2013-10-29 10:17:00.569+0000: 7566: debug : virEventPollMakePollFDs:391 : Prepare...
2015 Oct 02
0
virsh with OSX and virtualbox
...4073709551615: info : virObjectNew:202 : OBJECT_NEW: obj=0x7f9cda600b10 classname=virConnect 2015-10-02 08:52:11.876+0000: 18446744073709551615: info : virObjectNew:202 : OBJECT_NEW: obj=0x7f9cda600c20 classname=virConnectCloseCallbackData 2015-10-02 08:52:11.876+0000: 18446744073709551615: debug : virEventRunDefaultImpl:305 : running default event implementation 2015-10-02 08:52:11.876+0000: 18446744073709551615: debug : virEventPollCleanupTimeouts:526 : Cleanup 1 2015-10-02 08:52:11.876+0000: 18446744073709551615: debug : virEventPollCleanupHandles:575 : Cleanup 1 2015-10-02 08:52:11.876+0000: 1844674407370955161...
2013 Aug 22
1
Re: virConnectDomainEventRegisterAny problem
...ain_event_handler" is never called, what is >>>>>> wrong here ? >>>> >>>>> Are you running an event loop? You can have a look at our >>>>> examples [1] and see what's being done there. Especially >>>>> note the virEventRunDefaultImpl() [2] there. >>>> >>>>> Martin >>>> >>>>> [1] >>>>> http://libvirt.org/git/?p=libvirt.git;a=blob;f=examples/domain-events/events-c/event-test.c;h=52aa3d08d7326e422c12a8521717c3d55b2d8afd;hb=HEAD >>>> >>>&gt...
2013 Oct 24
3
libvirt_lxc causes cpu 100% usage
libvirt_lxc causes cpu 100% usage? libvirt version : 1.1.1 I don't know what happend, any help would be appreciated. thx top - 07:39:44 up 1 day, 2:13, 2 users, load average: 4.72, 4.59, 4.51 Tasks: 243 total, 4 running, 239 sleeping, 0 stopped, 0 zombie %Cpu0 : 33.1 us, 1.3 sy, 0.0 ni, 64.6 id, 0.7 wa, 0.0 hi, 0.3 si, 0.0 st %Cpu1 : 41.1 us, 3.0 sy, 0.0 ni, 55.3 id, 0.7
2013 Aug 21
2
Re: virConnectDomainEventRegisterAny problem
...> > >>> but "domain_event_handler" is never called, what is wrong here > >>> ? > > > >> Are you running an event loop? You can have a look at our > >> examples [1] and see what's being done there. Especially note > >> the virEventRunDefaultImpl() [2] there. > > > >> Martin > > > >> [1] > >> http://libvirt.org/git/?p=libvirt.git;a=blob;f=examples/domain-events/events-c/event-test.c;h=52aa3d08d7326e422c12a8521717c3d55b2d8afd;hb=HEAD > > > >> > > > > [2] > >> htt...
2013 Oct 14
2
Re: event handler
...ote: >> good day to all. >> i still have not solved my problem with event handling. >> currently i have following code >> >> >> void libvirt_eventloop_thr_func() >> { >> while(true) //TODO: stop somehow on exit >> { >> if(virEventRunDefaultImpl() < 0) >> { >> virErrorPtr err = virGetLastError(); >> fprintf(stderr, "Failed to run event loop: %s\n", err && >> err->message ? err->message : "Unknown error"); >> } >> } >>...
2013 Oct 30
0
Re: libvirt_lxc causes cpu 100% usage
...10-29 10:17:00.568+0000: 7566: debug : virEventPollDispatchHandles:482 : i=7 w=8 2013-10-29 10:17:00.568+0000: 7566: debug : virEventPollCleanupTimeouts:514 : Cleanup 2 2013-10-29 10:17:00.568+0000: 7566: debug : virEventPollCleanupHandles:562 : Cleanup 8 2013-10-29 10:17:00.568+0000: 7566: debug : virEventRunDefaultImpl:270 : running default event implementation 2013-10-29 10:17:00.569+0000: 7566: debug : virEventPollCleanupTimeouts:514 : Cleanup 2 2013-10-29 10:17:00.569+0000: 7566: debug : virEventPollCleanupHandles:562 : Cleanup 8 2013-10-29 10:17:00.569+0000: 7566: debug : virEventPollMakePollFDs:391 : Prepare...
2013 Oct 31
0
Re: libvirt_lxc causes cpu 100% usage
...10-29 10:17:00.568+0000: 7566: debug : virEventPollDispatchHandles:482 : i=7 w=8 2013-10-29 10:17:00.568+0000: 7566: debug : virEventPollCleanupTimeouts:514 : Cleanup 2 2013-10-29 10:17:00.568+0000: 7566: debug : virEventPollCleanupHandles:562 : Cleanup 8 2013-10-29 10:17:00.568+0000: 7566: debug : virEventRunDefaultImpl:270 : running default event implementation 2013-10-29 10:17:00.569+0000: 7566: debug : virEventPollCleanupTimeouts:514 : Cleanup 2 2013-10-29 10:17:00.569+0000: 7566: debug : virEventPollCleanupHandles:562 : Cleanup 8 2013-10-29 10:17:00.569+0000: 7566: debug : virEventPollMakePollFDs:391 : Prepare...
2013 Aug 21
2
Re: virConnectDomainEventRegisterAny problem
...handle callback\n"; return -1; } ..... >> >> >> but "domain_event_handler" is never called, what is wrong here ? > > Are you running an event loop? You can have a look at our examples > [1] and see what's being done there. Especially note the > virEventRunDefaultImpl() [2] there. > > Martin > > [1] > http://libvirt.org/git/?p=libvirt.git;a=blob;f=examples/domain-events/events-c/event-test.c;h=52aa3d08d7326e422c12a8521717c3d55b2d8afd;hb=HEAD > > [2] > http://libvirt.org/git/?p=libvirt.git;a=blob;f=examples/domain-events/events-c/event...
2018 Nov 13
1
create vm timeout
...42+0000: 95205: info : virObjectUnref:259 : OBJECT_UNREF: obj=0x561dca9e7b60 2018-11-13 14:21:39.942+0000: 95205: debug : virEventPollCleanupTimeouts:525 : Cleanup 2 2018-11-13 14:21:39.942+0000: 95205: debug : virEventPollCleanupHandles:574 : Cleanup 12 2018-11-13 14:21:39.942+0000: 95205: debug : virEventRunDefaultImpl:311 : running default event implementation 2018-11-13 14:21:39.942+0000: 95205: debug : virEventPollCleanupTimeouts:525 : Cleanup 2 2018-11-13 14:21:39.942+0000: 95205: debug : virEventPollCleanupHandles:574 : Cleanup 12 2018-11-13 14:21:39.943+0000: 95205: debug : virEventPollMakePollFDs:401 : Pre...
2017 Mar 08
0
Re: events dispatching in synchronous mode
On Wed, Mar 08, 2017 at 11:27:17AM +0000, Matczak, KrzysztofX wrote: > Hi > Is there any way to get events dispatching in synchronous mode ? > I mean I'm running my own events polling loop which calls > virEventRunDefaultImpl each turn . I'd expect to get my callback > function called synchronously , but it's not . Seems that's async > call. > Maybe it's my general misunderstanding and I shouldn't use > virEventRunDefaultImpl for that ? By design, all libvirt event dispatch is asynchron...
2017 Aug 21
1
dump in virEventPollRunOnce
libvirt version: 3.4.0 architecture: x86_64 ubuntu16.04-server hypervisor: kvm,qemu My program use libvirt event , the program is a module(.so) file in cloud application, when unload the module, program will dump in virEventPoolRunOnce call. program frame virInitialize virEventAddTimeOut virEventRunDefaultImpl virConnectXXX virConnectDomainEventRegisterAny ... virConnectDomainEventDeregisterAny ... when unload the module will dump , the gdb bt commad output is [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Core was gener...
2020 Apr 07
0
why virConnectDomainEventRegisterAny can't alway trigger the callback ,how can i get a stable callback ?
...; continue; } VNF_IMAGE_DBG("tid:%lu, get one mission from mission queue\n", tid); vnf_op_process(&mission->info); //this cause vnf_control_del_network called if (mission) { vnf_mission_free(mission); } if(virEventRunDefaultImpl() < 0) { VNF_IMAGE_DBG("virEventRunDefaultImpl() called failure\n"); } } return NULL; }
2020 Apr 14
0
Re: what a correct use for virConnectDomainEventRegisterAny API, how to Obtain a stable expected result
...&mission->info); // this will deal with network hotplug,will call virConnectDomainEventRegisterAny then call virDomainDetachDeviceFlags > > if (mission) { > > vnf_mission_free(mission); > > } > > if(virEventRunDefaultImpl() < 0) { // at here process the registered callback for event-registered > > printf();.... > > > } > > } > > My problem is: some time , the virEventRunDefaultImpl can trigger the > vnf_control_del_network_cb call...