RE: [Qemu-devel] QEMU/PCI shutdown event

2007-05-30 Thread Clemens Kolbitsch



hi everyone!
i'm programming a pci-device that includes some threads 
socket-connections (that allow remote debugging of my device).

however, i want to cleanly shutdown all threads and sockets when qemu
exits... is there an easy way of getting informed of a qemu shutdown?

(something similar to pci_device_init...)

thanks!!


  

You can use qemu_register_reset handler.
Note that it get's called when the guests exits but not if you just quit
the monitor.
  


dear qemu-developers,
i think it would be very helpful, if such a possibility exists.. maybe 
you could consider implementing this in a future release :-)


just a suggestion ;-)

greets!
  


sorry for this aweful post!! seems i forgot to delete half the message :-(




[Qemu-devel] QEMU/PCI shutdown event

2007-05-28 Thread Clemens Kolbitsch

hi everyone!
i'm programming a pci-device that includes some threads  
socket-connections (that allow remote debugging of my device).


however, i want to cleanly shutdown all threads and sockets when qemu 
exits... is there an easy way of getting informed of a qemu shutdown?


(something similar to pci_device_init...)

thanks!!




RE: [Qemu-devel] QEMU/PCI shutdown event

2007-05-28 Thread Dor Laor
hi everyone!
i'm programming a pci-device that includes some threads 
socket-connections (that allow remote debugging of my device).

however, i want to cleanly shutdown all threads and sockets when qemu
exits... is there an easy way of getting informed of a qemu shutdown?

(something similar to pci_device_init...)

thanks!!


You can use qemu_register_reset handler.
Note that it get's called when the guests exits but not if you just quit
the monitor.




Re: RE: [Qemu-devel] QEMU/PCI shutdown event

2007-05-28 Thread Clemens Kolbitsch



hi everyone!
i'm programming a pci-device that includes some threads 
socket-connections (that allow remote debugging of my device).

however, i want to cleanly shutdown all threads and sockets when qemu
exits... is there an easy way of getting informed of a qemu shutdown?

(something similar to pci_device_init...)

thanks!!




You can use qemu_register_reset handler.
Note that it get's called when the guests exits but not if you just quit
the monitor.
  
hm... since i'm really tearing down qemu quite often (sigint) that's not 
really a solutions for me, but thanks!! If nothing else works, i'll give 
it a try :-)


any other ideas?