]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: s390: store the breaking-event address on pgm interrupts
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Wed, 25 Mar 2015 12:12:32 +0000 (13:12 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 31 Mar 2015 11:49:08 +0000 (13:49 +0200)
commit297a450623de91eb3b92c680a48946a0b0980f00
tree2f4394b1dc5bef10a406c556429fe52a9114ed55
parentabddeca459cd97e29905caa6dae0d45e48f7d009
KVM: s390: store the breaking-event address on pgm interrupts

If the PER-3 facility is installed, the breaking-event address is to be
stored in the low core.

There is no facility bit for PER-3 in stfl(e) and Linux always uses the
value at address 272 no matter if PER-3 is available or not.
We can't hide its existence from the guest. All program interrupts
injected via the SIE automatically store this information if the PER-3
facility is available in the hypervisor. Also the itdb contains the
address automatically.

As there is no switch to turn this mechanism off, let's simply make it
consistent and also store the breaking event address in case of manual
program interrupt injection.

Reviewed-by: Jens Freimann <jfrei@linux.vnet.ibm.com>
Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
arch/s390/kvm/interrupt.c