Re: [PATCH v8 06/13] acpi/ghes: add support for generic error injection via QAPI

From: Mauro Carvalho Chehab
Date: Sat Sep 14 2024 - 01:39:00 EST


Em Fri, 13 Sep 2024 14:28:02 +0200
Igor Mammedov <imammedo@xxxxxxxxxx> escreveu:

> > > 5. Just return an error code without doing any resets. To me, this is
> > > the worse scenario.
> > >
> > > I don't like (5), as if something bad happens, there's nothing to be
> > > done.
> >
> > If it happens on a real system nothing is done either. So I'm not sure
> > we need to handle that. Or maybe real hardware reinjects the interrupt
> > if the OSPM hasn't done anything about it for a while.
> >
> > >
> > > For QMP error injection (4) seems is overkill. It may be needed in the
> > > future if we end implementing a logic where host OS informs guest about
> > > hardware problems, and such errors use asynchronous notifications.
> > >
> > > I would also avoid implementing (3) at least for now, as reporting
> > > such error via QMP seems enough for the QMP usecase.
> > >
> > > So, if ok for you, I'll change the code to (2).
> >
> > Whilst I don't feel strongly about it, I think 5 is unfortunately the
> > correct option if we aren't going to queue errors in qemu (so make it
> > an injection tool problem).
>
> +1 to option (5)

Ok, will do (5) then.

Thanks,
Mauro