[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v5 8/8] target/s390x: Use start-powered-off CPUState property
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH v5 8/8] target/s390x: Use start-powered-off CPUState property |
Date: |
Wed, 19 Aug 2020 05:10:36 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 |
On 8/19/20 4:42 AM, Thiago Jung Bauermann wrote:
> Instead of setting CPUState::halted to 1 in s390_cpu_initfn(), use the
> start-powered-off property which makes cpu_common_reset() initialize it
> to 1 in common code.
>
> Note that this changes behavior by setting cs->halted to 1 on reset, which
> didn't happen before.
>
> Acked-by: Cornelia Huck <cohuck@redhat.com>
> Signed-off-by: Thiago Jung Bauermann <bauerman@linux.ibm.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> ---
> target/s390x/cpu.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/target/s390x/cpu.c b/target/s390x/cpu.c
> index 08eb674d22..73d7d6007e 100644
> --- a/target/s390x/cpu.c
> +++ b/target/s390x/cpu.c
> @@ -291,7 +291,7 @@ static void s390_cpu_initfn(Object *obj)
> S390CPU *cpu = S390_CPU(obj);
>
> cpu_set_cpustate_pointers(cpu);
> - cs->halted = 1;
> + cs->start_powered_off = true;
> cs->exception_index = EXCP_HLT;
> #if !defined(CONFIG_USER_ONLY)
> object_property_add(obj, "crash-information", "GuestPanicInformation",
>
- [PATCH v5 4/8] ppc/e500: Use start-powered-off CPUState property, (continued)
- [PATCH v5 4/8] ppc/e500: Use start-powered-off CPUState property, Thiago Jung Bauermann, 2020/08/18
- [PATCH v5 3/8] ppc/spapr: Use start-powered-off CPUState property, Thiago Jung Bauermann, 2020/08/18
- [PATCH v5 6/8] sparc/sun4m: Remove main_cpu_reset(), Thiago Jung Bauermann, 2020/08/18
- [PATCH v5 5/8] mips/cps: Use start-powered-off CPUState property, Thiago Jung Bauermann, 2020/08/18
- [PATCH v5 7/8] sparc/sun4m: Use start-powered-off CPUState property, Thiago Jung Bauermann, 2020/08/18
- [PATCH v5 8/8] target/s390x: Use start-powered-off CPUState property, Thiago Jung Bauermann, 2020/08/18
- Re: [PATCH v5 8/8] target/s390x: Use start-powered-off CPUState property,
Philippe Mathieu-Daudé <=