[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 09/13] s390x: Exit on vcpu reset error
From: |
Janosch Frank |
Subject: |
[PATCH v2 09/13] s390x: Exit on vcpu reset error |
Date: |
Fri, 29 Nov 2019 04:48:05 -0500 |
If a vcpu is not properly reset it might be better to just end the VM.
Signed-off-by: Janosch Frank <address@hidden>
Reviewed-by: David Hildenbrand <address@hidden>
---
target/s390x/kvm.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/target/s390x/kvm.c b/target/s390x/kvm.c
index 5b1ed3acb4..15b041a601 100644
--- a/target/s390x/kvm.c
+++ b/target/s390x/kvm.c
@@ -424,11 +424,13 @@ static void kvm_s390_reset_vcpu(S390CPU *cpu, unsigned
long type)
if (kvm_vcpu_ioctl(cs, KVM_S390_VCPU_RESET, type)) {
error_report("CPU reset type %ld failed on CPU %i",
type, cs->cpu_index);
+ exit(1);
}
return;
}
if (kvm_vcpu_ioctl(cs, KVM_S390_INITIAL_RESET, NULL)) {
error_report("Initial CPU reset failed on CPU %i", cs->cpu_index);
+ exit(1);
}
}
--
2.20.1
[PATCH v2 09/13] s390x: Exit on vcpu reset error,
Janosch Frank <=
[PATCH v2 08/13] s390x: protvirt: Add new VCPU reset functions, Janosch Frank, 2019/11/29
[PATCH v2 13/13] s390x: protvirt: Handle SIGP store status correctly, Janosch Frank, 2019/11/29
[PATCH v2 10/13] s390x: protvirt: Set guest IPL PSW, Janosch Frank, 2019/11/29