]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
KVM: PPC: Book3s: Remove kvmppc_read_inst() function
authorMihai Caraman <mihai.caraman@freescale.com>
Wed, 23 Jul 2014 16:06:20 +0000 (19:06 +0300)
committerAlexander Graf <agraf@suse.de>
Mon, 28 Jul 2014 13:23:13 +0000 (15:23 +0200)
commit9a26af64d6bba72c9dfd62cc0cab0e79f8a66d7b
treec5f5d37390630b55f6a9b234a56fc6c76b887792
parent9c0d4e0dcf69b1ab3a9f8debebd119f53964cb57
KVM: PPC: Book3s: Remove kvmppc_read_inst() function

In the context of replacing kvmppc_ld() function calls with a version of
kvmppc_get_last_inst() which allow to fail, Alex Graf suggested this:

"If we get EMULATE_AGAIN, we just have to make sure we go back into the guest.
No need to inject an ISI into  the guest - it'll do that all by itself.
With an error returning kvmppc_get_last_inst we can just use completely
get rid of kvmppc_read_inst() and only use kvmppc_get_last_inst() instead."

As a intermediate step get rid of kvmppc_read_inst() and only use kvmppc_ld()
instead.

Signed-off-by: Mihai Caraman <mihai.caraman@freescale.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/kvm/book3s_pr.c