Hi,

I'm working on a modem PCI board emulation inside Qemu. 
My emulation is neerly functionnaly complete, but I have some doubt on
my technical choices :
 - to emulate dma transfers, I launch one thread for each dma channel.
 - to emulate posponed starting behaviors (board self tests), I launch a
thread with a sleep and then board status changes.
 - to emulate demodulated incoming data, I launch one thread waiting
with blocking reads on a UDP socket.

Because I had some toubles (segfaults in tb_reset_jump_recursive2
(exec.c)), I have serilized my calls to pci_set_irq with the help of a
new thread.

So, my question is :
        Is it reasonable to use threads to emulate parallel behaviors ?

if Yes :
        How could I make my calls to Qemu APIs more robust ?

If No :
        What is the *Good* way ?

Thanks

        Jérôme



_______________________________________________
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel

Reply via email to