* How to communicate 2 guest machines over serial in qemu?
@ 2023-05-16 10:25 Sidhartha Reddy Kaliki
2023-05-16 14:48 ` Alex Bennée
0 siblings, 1 reply; 3+ messages in thread
From: Sidhartha Reddy Kaliki @ 2023-05-16 10:25 UTC (permalink / raw)
To: openbmc; +Cc: qemu-devel
Hi,
We have 2 independent devices running openbmc software on each of
them. These devices can communicate with each other over a serial line
using SLIP protocol. Now we would like to emulate the same using qemu.
Do we have any provision to communicate 2 guest machines over a serial
interface using SLIP protocol?
We have tried a few options which are not helpful to solve our purpose.
It will be really helpful if you can provide us some guidance on this.
Thanks
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to communicate 2 guest machines over serial in qemu?
2023-05-16 10:25 How to communicate 2 guest machines over serial in qemu? Sidhartha Reddy Kaliki
@ 2023-05-16 14:48 ` Alex Bennée
2023-05-17 10:33 ` Sidhartha Reddy Kaliki
0 siblings, 1 reply; 3+ messages in thread
From: Alex Bennée @ 2023-05-16 14:48 UTC (permalink / raw)
To: Sidhartha Reddy Kaliki; +Cc: openbmc, qemu-devel
Sidhartha Reddy Kaliki <sidhartha@drut.io> writes:
> Hi,
>
> We have 2 independent devices running openbmc software on each of
> them. These devices can communicate with each other over a serial line
> using SLIP protocol. Now we would like to emulate the same using qemu.
>
> Do we have any provision to communicate 2 guest machines over a serial
> interface using SLIP protocol?
You can connect the two chardev backends to each other. One will want to
be a server, the other a client. You can use pipe, socket or network
backends to do this.
> We have tried a few options which are not helpful to solve our purpose.
> It will be really helpful if you can provide us some guidance on this.
What have you tried so far?
>
> Thanks
--
Alex Bennée
Virtualisation Tech Lead @ Linaro
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to communicate 2 guest machines over serial in qemu?
2023-05-16 14:48 ` Alex Bennée
@ 2023-05-17 10:33 ` Sidhartha Reddy Kaliki
0 siblings, 0 replies; 3+ messages in thread
From: Sidhartha Reddy Kaliki @ 2023-05-17 10:33 UTC (permalink / raw)
To: Alex Bennée; +Cc: openbmc, qemu-devel
we tried of working on socket and pipes,
In the original hardware, We have 2 compute modules. A serail
interface is available between them and we run a SLIP protocol in
software for the communication.
We would like to replecate the same in Qemu environment. In our
scenario the machine A and a machine B both runs the same software
image, they both should communicate over a SLIP protocol.
We tried using pipes but we are not sure how to communicate between 2
Virtual machines using them.
We appreciate a solution to communicate between Machine A and B using
pipe or by establishing a SLIP protocol between the machines.
Is there any way to establish a pipe between master and slave machine ?
On Tue, May 16, 2023 at 8:20 PM Alex Bennée <alex.bennee@linaro.org> wrote:
>
>
> Sidhartha Reddy Kaliki <sidhartha@drut.io> writes:
>
> > Hi,
> >
> > We have 2 independent devices running openbmc software on each of
> > them. These devices can communicate with each other over a serial line
> > using SLIP protocol. Now we would like to emulate the same using qemu.
> >
> > Do we have any provision to communicate 2 guest machines over a serial
> > interface using SLIP protocol?
>
> You can connect the two chardev backends to each other. One will want to
> be a server, the other a client. You can use pipe, socket or network
> backends to do this.
>
> > We have tried a few options which are not helpful to solve our purpose.
> > It will be really helpful if you can provide us some guidance on this.
>
> What have you tried so far?
>
> >
> > Thanks
>
>
> --
> Alex Bennée
> Virtualisation Tech Lead @ Linaro
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-05-17 10:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-16 10:25 How to communicate 2 guest machines over serial in qemu? Sidhartha Reddy Kaliki
2023-05-16 14:48 ` Alex Bennée
2023-05-17 10:33 ` Sidhartha Reddy Kaliki
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).