]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S PR: Refactor program interrupt related code into separate function
authorThomas Huth <thuth@redhat.com>
Wed, 25 Jan 2017 12:27:22 +0000 (13:27 +0100)
committerPaul Mackerras <paulus@ozlabs.org>
Fri, 27 Jan 2017 09:34:28 +0000 (20:34 +1100)
commit183fede96d6c8209f90e4b2caa68722ab9c0ca0e
tree309b711e754c9969e7cca480669f63713b89e998
parentf21022cd80bf28ef234f1a49790869bac741ed2f
KVM: PPC: Book3S PR: Refactor program interrupt related code into separate function

The function kvmppc_handle_exit_pr() is quite huge and thus hard to read,
and even contains a "spaghetti-code"-like goto between the different case
labels of the big switch statement. This can be made much more readable
by moving the code related to injecting program interrupts / instruction
emulation into a separate function instead.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/kvm/book3s_pr.c