KVM: s390: rewrite vcpu_post_run and drop out early
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Mon, 19 Oct 2015 14:24:28 +0000 (16:24 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 30 Nov 2015 11:47:05 +0000 (12:47 +0100)
commit71f116bfedfdd6763f2caf842bf40a6506759029
treeceee587318172ad8aca0f2ea7a542a568839e6f0
parent4bd33b568855f5483a6c6d7e4706ef507ab8586b
KVM: s390: rewrite vcpu_post_run and drop out early

Let's rewrite this function to better reflect how we actually handle
exit_code. By dropping out early we can save a few cycles. This
especially speeds up sie exits caused by host irqs.

Also, let's move the special -EOPNOTSUPP for intercepts to
the place where it belongs and convert it to -EREMOTE.

Reviewed-by: Dominik Dingel <dingel@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@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
arch/s390/kvm/kvm-s390.c