mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
KVM: s390: disabled wait cares about machine checks, not PER
We don't care about program event recording irqs (synchronous program irqs) but asynchronous irqs when checking for disabled wait. Machine checks were missing. Let's directly switch to the functions we have for that purpose instead of testing once again for magic bits. Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
This commit is contained in:
parent
f59922b47e
commit
fee0e0fdb2
1 changed files with 3 additions and 5 deletions
|
@ -51,11 +51,9 @@ static int psw_mchk_disabled(struct kvm_vcpu *vcpu)
|
|||
|
||||
static int psw_interrupts_disabled(struct kvm_vcpu *vcpu)
|
||||
{
|
||||
if ((vcpu->arch.sie_block->gpsw.mask & PSW_MASK_PER) ||
|
||||
(vcpu->arch.sie_block->gpsw.mask & PSW_MASK_IO) ||
|
||||
(vcpu->arch.sie_block->gpsw.mask & PSW_MASK_EXT))
|
||||
return 0;
|
||||
return 1;
|
||||
return psw_extint_disabled(vcpu) &&
|
||||
psw_ioint_disabled(vcpu) &&
|
||||
psw_mchk_disabled(vcpu);
|
||||
}
|
||||
|
||||
static int ckc_interrupts_enabled(struct kvm_vcpu *vcpu)
|
||||
|
|
Loading…
Reference in a new issue