Hi,

Is there anything in qemu to check for a machine which all devices are
added or working? Can we do that!?

Thank you,
Abhijeet.

On Tue, Sep 14, 2021, 11:23 Peter Maydell <peter.mayd...@linaro.org> wrote:

> On Tue, 14 Sept 2021 at 09:52, abhijeet inamdar
> <abhijeetinamdar3...@gmail.com> wrote:
> > I was trying to emulate a machine in qemu-4.2.0 but was getting an error
> message:
> >
> > Unexpected error in qemu_chr_fe_init() at
> /home/qemu-4.2.0/chardev/char-fe.c:220:
> > qemu-system-arm: Device 'serial0' is in use
> >
> > I tried to apply this patch
> >
> https://patchwork.kernel.org/project/qemu-devel/patch/20200306171458.1848-25-kw...@redhat.com/
> >
> > But still the error persists. Any suggestions?
>
> That patch is only improving the error handling, so that instead of
> crashing QEMU reports the problem more cleanly. You need to fix
> the underlying problem, which is that more than one device
> is trying to use the same "serial0" chardev. Any given chardev
> can only be used by one thing at once.
>
> -- PMM
>

Reply via email to