summaryrefslogtreecommitdiff
path: root/arch/powerpc/kvm/booke.c
diff options
context:
space:
mode:
authorBharat Bhushan <bharat.bhushan@freescale.com>2013-04-08 00:32:15 +0000
committerAlexander Graf <agraf@suse.de>2013-04-26 20:27:04 +0200
commit9b4f530807e4243d8c4bc02c5bbd5b9e3e2ed9e0 (patch)
tree64cf38b02e459b27576bc72adaace0b82247a118 /arch/powerpc/kvm/booke.c
parent0f47f9b51734290968189286e6b65f1139d0f72d (diff)
booke: exit to user space if emulator request
This allows the exit to user space if emulator request by returning EMULATE_EXIT_USER. This will be used in subsequent patches in list Signed-off-by: Bharat Bhushan <bharat.bhushan@freescale.com> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc/kvm/booke.c')
-rw-r--r--arch/powerpc/kvm/booke.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/booke.c b/arch/powerpc/kvm/booke.c
index a3e2db0cf2f9..97ae158ca4c8 100644
--- a/arch/powerpc/kvm/booke.c
+++ b/arch/powerpc/kvm/booke.c
@@ -745,6 +745,9 @@ static int emulation_exit(struct kvm_run *run, struct kvm_vcpu *vcpu)
kvmppc_core_queue_program(vcpu, ESR_PIL);
return RESUME_HOST;
+ case EMULATE_EXIT_USER:
+ return RESUME_HOST;
+
default:
BUG();
}