Re: 'virtual HW' into kernel (SystemC)

From: Alan Cox
Date: Wed Sep 07 2005 - 11:37:38 EST


On Mer, 2005-09-07 at 12:31 +0200, MÃrius MontÃn wrote:
> At this point, we plan to develop a pci device driver to act as a bridge
> between kernel PCI subsystem and SystemC simulator (in user space).

The first thing that would worry me about such an architecture would be
deadlocks between user space and kernel PCI accesses trapped under
simulation.

If you take a look at Xen or qemu both would give you a way to run the
virtualised simulated device in Linux user space on a sane complete
Linux environment while running a seperate copy of Linux experiencing
the simulated device.

Xen is fast - very fast, qemu is somewhat slower but because it is a JIT
can do accurate tracing and has a lovely well designed API for adding
virtualised drivers, plus nice examples like video cards and a virtual
NE2000.

Alan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/