[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] need advice on PCI board emulation

From: jerome Arbez-Gindre
Subject: [Qemu-devel] need advice on PCI board emulation
Date: Fri, 08 Dec 2006 11:52:50 +0100


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 ?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]