KVM: s390: track synchronous pfault events in kvm_stat
authorChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 25 Nov 2020 09:06:58 +0000 (10:06 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 10 Dec 2020 13:20:26 +0000 (14:20 +0100)
commit50a05be484cb70d9dfb55fa5a6ed57eab193901f
tree35cf553d8382971deb83b465d646fc56e32f4179
parentefaa83a3736d392c61499ee3aad8690a142675cd
KVM: s390: track synchronous pfault events in kvm_stat

Right now we do count pfault (pseudo page faults aka async page faults
start and completion events). What we do not count is, if an async page
fault would have been possible by the host, but it was disabled by the
guest (e.g. interrupts off, pfault disabled, secure execution....).  Let
us count those as well in the pfault_sync counter.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Link: https://lore.kernel.org/r/20201125090658.38463-1-borntraeger@de.ibm.com
arch/s390/include/asm/kvm_host.h
arch/s390/kvm/kvm-s390.c