Hi Ciro,

This doesn't work straightforwardly right now. For gdb, I believe there is
a special case for debugging the guest application (see remote_gdb code).

Otherwise, there is a special network device: "EtherTap" that allows gem5
to send network request to the host. See src/dev/net/Ethernet.py. EtherTap
is very hard to get working, though. I've had mixed results.

Cheers,
Jason


On Thu, Mar 15, 2018 at 3:03 AM Ciro Santilli <ciro.santi...@gmail.com>
wrote:

> https://stackoverflow.com/questions/48941494
>
> For example, I want to be able to do on guest:
>
>     nc -l -p 45455
>
> and then on host:
>
>     echo asdf | nc  localhost 45455
>
> and have the guest receive the `asdf`.
>
> My initial goal with this is to setup `gdbserver`, but this could also
> be used for fun things like simulating clusters.
>
> In QEMU for example, I can do that with:
>
>     -netdev user,hostfwd=tcp::45455-:45455,id=net0
>
> I am also interested in the guest to host direction, although that I
> haven't managed to do in QEMU yet:
>
> https://serverfault.com/questions/769874/how-to-forward-a-port-from-guest-to-host-in-qemu-kvm
> _______________________________________________
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to