diff options
author | Bharat Bhushan <bharat.bhushan@freescale.com> | 2013-04-08 00:32:15 (GMT) |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2013-04-26 18:27:04 (GMT) |
commit | 9b4f530807e4243d8c4bc02c5bbd5b9e3e2ed9e0 (patch) | |
tree | 64cf38b02e459b27576bc72adaace0b82247a118 | |
parent | 0f47f9b51734290968189286e6b65f1139d0f72d (diff) | |
download | linux-fsl-qoriq-9b4f530807e4243d8c4bc02c5bbd5b9e3e2ed9e0.tar.xz |
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>
-rw-r--r-- | arch/powerpc/kvm/booke.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/booke.c b/arch/powerpc/kvm/booke.c index a3e2db0..97ae158 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(); } |