diff options
author | QingFeng Hao <haoqf@linux.vnet.ibm.com> | 2018-03-02 11:56:47 +0100 |
---|---|---|
committer | Christian Borntraeger <borntraeger@de.ibm.com> | 2018-03-14 19:21:17 +0000 |
commit | 32de0749097ea5be5af7f06bc26cf4e06958ac0f (patch) | |
tree | 71dfbecd1fd55309a5a2f4ba3166dddad6d6d14e /arch/s390/kvm/interrupt.c | |
parent | 258400304225a219a2d98f29fe957df98789a843 (diff) | |
download | linux-32de0749097ea5be5af7f06bc26cf4e06958ac0f.tar.gz linux-32de0749097ea5be5af7f06bc26cf4e06958ac0f.tar.bz2 linux-32de0749097ea5be5af7f06bc26cf4e06958ac0f.zip |
KVM: add machine check counter to kvm_stat
This counter can be used for administration, debug or test purposes.
Suggested-by: Vladislav Mironov <mironov@de.ibm.com>
Signed-off-by: QingFeng Hao <haoqf@linux.vnet.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'arch/s390/kvm/interrupt.c')
-rw-r--r-- | arch/s390/kvm/interrupt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/s390/kvm/interrupt.c b/arch/s390/kvm/interrupt.c index b04616b57a94..bde04a6191ca 100644 --- a/arch/s390/kvm/interrupt.c +++ b/arch/s390/kvm/interrupt.c @@ -595,6 +595,7 @@ static int __must_check __deliver_machine_check(struct kvm_vcpu *vcpu) trace_kvm_s390_deliver_interrupt(vcpu->vcpu_id, KVM_S390_MCHK, mchk.cr14, mchk.mcic); + vcpu->stat.deliver_machine_check++; rc = __write_machine_check(vcpu, &mchk); } return rc; |