]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb34f385be26bb1249d1bc0dd48ccf859cd08eed9
treeceee587318172ad8aca0f2ea7a542a568839e6f0
parent2ff93f2439f4d36bf76511a91060374efacac0b9
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