>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.