From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Graf Date: Fri, 26 Apr 2013 18:30:00 +0000 Subject: [PATCH 05/42] booke: exit to user space if emulator request Message-Id: <1367001037-10394-27-git-send-email-agraf@suse.de> List-Id: References: <1367001037-10394-1-git-send-email-agraf@suse.de> In-Reply-To: <1367001037-10394-1-git-send-email-agraf@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kvm-ppc@vger.kernel.org Cc: "kvm@vger.kernel.org mailing list" , Marcelo Tosatti , Gleb Natapov , Bharat Bhushan From: Bharat Bhushan 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 --- 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(); } -- 1.6.0.2