2013-03-04 09:36:40

by Paolo Bonzini

[permalink] [raw]
Subject: Re: [PATCH v13 2/8] start vm after resetting it

Il 28/02/2013 13:13, Hu Tao ha scritto:
> From: Wen Congyang <[email protected]>
>
> The guest should run after resetting it, but it does not run if its
> old state is RUN_STATE_INTERNAL_ERROR or RUN_STATE_PAUSED.
>
> We don't set runstate to RUN_STATE_PAUSED when resetting the guest,
> so the runstate will be changed from RUN_STATE_INTERNAL_ERROR or
> RUN_STATE_PAUSED to RUN_STATE_RUNNING(not RUN_STATE_PAUSED).

This is also debatable. In particular, restarting an INTERNAL_ERROR
guest makes it harder to inspect the state at the time of the failure.

INTERNAL_ERROR should never happen, let's separate this patch too.

Paolo


2013-03-05 03:26:56

by Hu Tao

[permalink] [raw]
Subject: Re: [PATCH v13 2/8] start vm after resetting it

On Mon, Mar 04, 2013 at 10:32:17AM +0100, Paolo Bonzini wrote:
> Il 28/02/2013 13:13, Hu Tao ha scritto:
> > From: Wen Congyang <[email protected]>
> >
> > The guest should run after resetting it, but it does not run if its
> > old state is RUN_STATE_INTERNAL_ERROR or RUN_STATE_PAUSED.
> >
> > We don't set runstate to RUN_STATE_PAUSED when resetting the guest,
> > so the runstate will be changed from RUN_STATE_INTERNAL_ERROR or
> > RUN_STATE_PAUSED to RUN_STATE_RUNNING(not RUN_STATE_PAUSED).
>
> This is also debatable. In particular, restarting an INTERNAL_ERROR
> guest makes it harder to inspect the state at the time of the failure.
>
> INTERNAL_ERROR should never happen, let's separate this patch too.

Sure.

>
> Paolo