qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] need advice on PCI board emulation
@ 2006-12-08 10:52 jerome Arbez-Gindre
  2006-12-08 15:07 ` Paul Brook
  2006-12-08 15:22 ` Paul Brook
  0 siblings, 2 replies; 5+ messages in thread
From: jerome Arbez-Gindre @ 2006-12-08 10:52 UTC (permalink / raw)
  To: qemu-devel

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-12-08 17:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-08 10:52 [Qemu-devel] need advice on PCI board emulation jerome Arbez-Gindre
2006-12-08 15:07 ` Paul Brook
2006-12-08 16:57   ` jerome Arbez-Gindre
2006-12-08 15:22 ` Paul Brook
2006-12-08 17:06   ` jerome Arbez-Gindre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).