Commit 71dd7e69 authored by David Hildenbrand's avatar David Hildenbrand Committed by Cornelia Huck
Browse files

s390x/kvm: synchronize the cpu state after SIGP (INITIAL) CPU RESET



We need to synchronize registers after a reset has been performed. The
current code does that in qemu_system_reset(), load_normal_reset() and
modified_clear_reset() for all vcpus. After SIGP (INITIAL) CPU RESET,
this needs to be done for the targeted vcpu as well, so let's call
cpu_synchronize_post_reset() in the respective handlers.

Signed-off-by: default avatarDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: default avatarJens Freimann <jfrei@linux.vnet.ibm.com>
Reviewed-by: default avatarCornelia Huck <cornelia.huck@de.ibm.com>
CC: Andreas Faerber <afaerber@suse.de>
Tested-by: default avatarChristian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: default avatarCornelia Huck <cornelia.huck@de.ibm.com>
parent 99607144
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -952,6 +952,7 @@ static void sigp_initial_cpu_reset(void *arg)

    cpu_synchronize_state(cpu);
    scc->initial_cpu_reset(cpu);
    cpu_synchronize_post_reset(cpu);
}

static void sigp_cpu_reset(void *arg)
@@ -961,6 +962,7 @@ static void sigp_cpu_reset(void *arg)

    cpu_synchronize_state(cpu);
    scc->cpu_reset(cpu);
    cpu_synchronize_post_reset(cpu);
}

#define SIGP_ORDER_MASK 0x000000ff