KVM: s390: inject PER i-fetch events on applicable icpts
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Tue, 24 May 2016 10:10:27 +0000 (12:10 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 5 Jul 2016 10:02:56 +0000 (12:02 +0200)
commit5ffe466cd3a33543306c37a0789e2116286367f1
tree57a5f6ae2a1d787d8d8bad3bfa3304915f8aacd6
parent196f20ca52e8c7281932663c348fa54b82d03914
KVM: s390: inject PER i-fetch events on applicable icpts

In case we have to emuluate an instruction or part of it (instruction,
partial instruction, operation exception), we have to inject a PER
instruction-fetching event for that instruction, if hardware told us to do
so.

In case we retry an instruction, we must not inject the PER event.

Please note that we don't filter the events properly yet, so guest
debugging will be visible for the guest.

Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/guestdbg.c
arch/s390/kvm/intercept.c
arch/s390/kvm/kvm-s390.h