db3b2566e0
Current implementation depends on the order of resets getting triggered. If a cpu reset is triggered after the ipl device reset, the CPU is stopped and the VM will not run. In fact, that hinders us from converting the ipl device into a TYPE_DEVICE. Let's change that by manually configuring the ipl cpu during a system reset, so we have full control and can demangle that code. Also remove the superflous cpu parameter from s390_update_iplstate on the way. Acked-by: Christian Borntraeger <borntraeger@de.ibm.com> Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
29 lines
649 B
C
29 lines
649 B
C
/*
|
|
* s390 IPL device
|
|
*
|
|
* Copyright 2015 IBM Corp.
|
|
* Author(s): Zhang Fan <bjfanzh@cn.ibm.com>
|
|
*
|
|
* This work is licensed under the terms of the GNU GPL, version 2 or (at
|
|
* your option) any later version. See the COPYING file in the top-level
|
|
* directory.
|
|
*/
|
|
|
|
#ifndef HW_S390_IPL_H
|
|
#define HW_S390_IPL_H
|
|
|
|
#include "cpu.h"
|
|
|
|
typedef struct IplParameterBlock {
|
|
uint8_t reserved1[110];
|
|
uint16_t devno;
|
|
uint8_t reserved2[88];
|
|
} IplParameterBlock;
|
|
|
|
void s390_ipl_update_diag308(IplParameterBlock *iplb);
|
|
void s390_ipl_prepare_cpu(S390CPU *cpu);
|
|
IplParameterBlock *s390_ipl_get_iplb(void);
|
|
void s390_reipl_request(void);
|
|
|
|
#endif
|