KVM: s390: clean up prog irq injection on prog irq icpts
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Wed, 4 Nov 2015 15:22:19 +0000 (16:22 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 10 Feb 2016 12:12:52 +0000 (13:12 +0100)
commitf6af84e7e7eb0558d5ad3882007956eb5b748ffd
treeb082b83acc3b40c892f6ad15307823f60596b192
parent659773227506f7b971cfd52e1aa146c896405187
KVM: s390: clean up prog irq injection on prog irq icpts

__extract_prog_irq() is used only once for getting the program check data
in one place. Let's combine it with an injection function to avoid a memset
and to prevent misuse on injection by simplifying the interface to only
have the VCPU as parameter.

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