From: Bharat Bhushan Date: Mon, 8 Apr 2013 00:32:15 +0000 (+0000) Subject: booke: exit to user space if emulator request X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=9b4f530807e4243d8c4bc02c5bbd5b9e3e2ed9e0;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Alexander Graf --- 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(); }