On Thu, Nov 22, 2012 at 11:21:58AM +0100, Paolo Bonzini wrote:
> Il 22/11/2012 09:19, Stefan Hajnoczi ha scritto:
> >> > usage
> >> > -----
> >> > PCIEFW devices are instanciated using the following QEMU options:
> >> > -device \
> >> >  pciefw,\
> >> >  laddr=<local_addr>,\
> >> >  lport=<local_port>,\
> >> >  raddr=<remote_addr>,\
> >> >  rport=<remote_port>
> > Take a look at qemu_socket.h:socket_parse().  It should allow you to
> > support TCP, UNIX domain sockets, and arbitrary file descriptors.
> > 
> 
> Even better it could just be a chardev.  socket_parse() is only used by
> the (human) monitor interface.

The issue with chardev is that it's asynchronous.

In this case we cannot return from MemoryRegionOps->read() or
MemoryRegionOps->write() back to the event loop.

Stefan

Reply via email to