Displaying 20 results from an estimated 300 matches similar to: "virConnectDomainEventRegisterAny problem"
2013 Aug 21
2
Re: virConnectDomainEventRegisterAny problem
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
21.08.2013 09:32, Martin Kletzander пишет:
> On Wed 21 Aug 2013 01:03:37 AM CEST, Alexandr wrote:
>>
>> good day. i trying to make callback function for
>> VIR_DOMAIN_EVENT_ID_LIFECYCLE, i have successfully registering
>> callback, but it never called, i need to know when domain
>> started, stopped or crashed, i have
2013 Aug 21
2
Re: virConnectDomainEventRegisterAny problem
On Wed, Aug 21, 2013 at 12:36:06PM +0300, Alexandr wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> 21.08.2013 09:46, Alexandr пишет:
> > 21.08.2013 09:32, Martin Kletzander пишет:
> >> On Wed 21 Aug 2013 01:03:37 AM CEST, Alexandr wrote:
> >>>
> >>> good day. i trying to make callback function for
> >>>
2013 Aug 22
1
Re: virConnectDomainEventRegisterAny problem
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
21.08.2013 12:58, Alexandr пишет:
> 21.08.2013 12:39, Daniel P. Berrange пишет:
>> On Wed, Aug 21, 2013 at 12:36:06PM +0300, Alexandr wrote:
>>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>>>
>>> 21.08.2013 09:46, Alexandr пишет:
>>>> 21.08.2013 09:32, Martin Kletzander пишет:
>>>>> On
2013 Oct 14
2
Re: event handler
Michal Privoznik писал 2013-10-14 11:39:
> On 14.10.2013 10:33, Alexandr wrote:
>> Michal Privoznik писал 2013-10-14 08:48:
>>> On 14.10.2013 02:42, Alexandr wrote:
>>>> good day to all.
>>>> i still have not solved my problem with event handling.
>>>> currently i have following code
>>>>
>>>>
>>>> void
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
2013 Aug 21
0
Re: virConnectDomainEventRegisterAny problem
On Wed 21 Aug 2013 01:03:37 AM CEST, Alexandr wrote:
>
> good day. i trying to make callback function for
> VIR_DOMAIN_EVENT_ID_LIFECYCLE, i have successfully registering callback,
> but it never called, i need to know when domain started, stopped or
> crashed, i have write following code
>
> static int domain_event_handler(virConnectPtr conn, virDomainPtr dom,
> int
2013 Aug 21
0
Re: virConnectDomainEventRegisterAny problem
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
21.08.2013 09:46, Alexandr пишет:
> 21.08.2013 09:32, Martin Kletzander пишет:
>> On Wed 21 Aug 2013 01:03:37 AM CEST, Alexandr wrote:
>>>
>>> good day. i trying to make callback function for
>>> VIR_DOMAIN_EVENT_ID_LIFECYCLE, i have successfully registering
>>> callback, but it never called, i need to
2013 Aug 21
0
Re: virConnectDomainEventRegisterAny problem
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
21.08.2013 12:39, Daniel P. Berrange пишет:
> On Wed, Aug 21, 2013 at 12:36:06PM +0300, Alexandr wrote:
>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>>
>> 21.08.2013 09:46, Alexandr пишет:
>>> 21.08.2013 09:32, Martin Kletzander пишет:
>>>> On Wed 21 Aug 2013 01:03:37 AM CEST, Alexandr wrote:
2013 Oct 14
2
Re: event handler
Michal Privoznik писал 2013-10-14 08:48:
> On 14.10.2013 02:42, Alexandr wrote:
>> 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
>> {
>>
2013 Oct 14
0
Re: event handler
On 14.10.2013 10:57, Alexandr wrote:
> Michal Privoznik писал 2013-10-14 11:39:
>> On 14.10.2013 10:33, Alexandr wrote:
>>> Michal Privoznik писал 2013-10-14 08:48:
>>>> On 14.10.2013 02:42, Alexandr wrote:
>>>>> good day to all.
>>>>> i still have not solved my problem with event handling.
>>>>> currently i have following
2013 Oct 14
0
Re: event handler
On 14.10.2013 02:42, Alexandr wrote:
> 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();
>
2013 Oct 14
0
Re: event handler
On 14.10.2013 10:33, Alexandr wrote:
> Michal Privoznik писал 2013-10-14 08:48:
>> On 14.10.2013 02:42, Alexandr wrote:
>>> 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:
2011 Nov 04
1
Event&Callback in QEMU
Hi buddy,
I wanna to monitor a domain's life cycle event, so i register a event an a
virConnectDomainEventCallback, the code segment is as below:
------------------------
int DomainEventCallback(virConnectPtr conn,
virDomainPtr dom,
int event,
int detail,
void * opaque){
/*My code */
.......
}
int main(){
/* .....*/
virDomainPtr dom =
2020 Apr 13
2
what a correct use for virConnectDomainEventRegisterAny API, how to Obtain a stable expected result
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:
2020 Apr 14
0
Re: what a correct use for virConnectDomainEventRegisterAny API, how to Obtain a stable expected result
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 register an event ID: VIR_DOMAIN_EVENT_ID_DEVICE_REMOVED ,
>
> my process as follow:
2020 Apr 07
0
why virConnectDomainEventRegisterAny can't alway trigger the callback ,how can i get a stable callback ?
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_DOMAIN_EVENT_ID_DEVICE_REMOVED, VIR_DOMAIN_EVENT_CALLBACK(vnf_control_del_network_cb), cb_para,
2009 Mar 08
3
Thread creation in Wine
Hi guys,
I was looking at the thread creation API.
Exactly, why do we use PTHREAD_SCOPE_SYSTEM instead of PTHREAD_SCOPE_PROCESS ?
http://source.winehq.org/git/wine.git/?a=blob;f=dlls/ntdll/thread.c#l611
What is the technical difference?
I remember, some years ago, that on SunOS 8 setting the latter it would make one thread only scheduled globally for the process, instead, using the first would
2013 Jun 24
3
deadlock on connection loosing
libvirtd will lock if for example kill programm which established connection,
only sigkill + restart helps., to reproduce:
virConnectPtr libvirt_connection = virConnectOpen("qemu:///system");
if(libvirt_connection == NULL)
{
std::cout<<"failed to connect to qemu:///system\n";
exit(-1);
}
exit(0);
2016 Aug 03
0
Crash after connection close when callback is in progress
Hey!
It seems that if I close a connection while a domain event callback is
in progress, I can easily have a crash. Here is a backtrace:
#v+
#0 virFree (ptrptr=0x0) at ../../../src/util/viralloc.c:582
save_errno = <optimized out>
#1 0x00007fc8328a4ad2 in virObjectEventCallbackListPurgeMarked (cbList=0xadfc30) at ../../../src/conf/object_event.c:282
freecb = <optimized
2020 Apr 07
0
when virEventAddTimeout trigger timeout ,should in the callback call virConnectDomainEventDeregisterAny ?
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_para->conn = conn;
cb_para->time_out = 20*1000;//20s