Patchwork [4/7,v3] booke: exit to user space if emulator request

login
register
mail settings
Submitter Bharat Bhushan
Date April 8, 2013, 10:32 a.m.
Message ID <1365417138-8202-5-git-send-email-Bharat.Bhushan@freescale.com>
Download mbox | patch
Permalink /patch/234725/
State New
Headers show

Comments

Bharat Bhushan - April 8, 2013, 10:32 a.m.
From: Bharat Bhushan <bharat.bhushan@freescale.com>

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>
---
 arch/powerpc/kvm/booke.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

Patch

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();
 	}