On Thu, Apr 13, 2000 at 09:55:46PM +0100, Bryan Meredith wrote:
> But, if we emulate a port, where does the port send the data that passes
> into it and where does the port get the data to pass back? Are we now
How about /dev/parport0? Or, if it looks like printer protocol, /dev/lp0,
if you want just unidirection data. Or pipe it to lpr if you want to
pretend you have a PostScript printer when you don't.
For parallel ports, I believe that the port is the thing to emulate. For
IDE disks, say, perhaps the disk is a better thing to emulate. They are
different problems -- IDE disks are all supported by the host if the IDE
controller is supported. It's not the same for parallel port devices, and
one of the useful things about a virtual machine is that you can use a
guest OS that has drivers your host OS doesn't.
Incidentally, this is how VMware does it (or will when they get round to it),
and I wrote some of the code they ship, after some suggestions from them.
Check out vmppuser, and notice how similar it is to the ppdev code in 2.3...
Tim.
*/