All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Graf <agraf@suse.de>
To: kvm-ppc@vger.kernel.org
Cc: KVM list <kvm@vger.kernel.org>
Subject: [PATCH 07/10] KVM: PPC: Book3S: PR: Indicate we're out of guest mode
Date: Mon, 13 Aug 2012 03:21:32 +0200	[thread overview]
Message-ID: <1344820895-8475-8-git-send-email-agraf@suse.de> (raw)
In-Reply-To: <1344820895-8475-1-git-send-email-agraf@suse.de>

When going out of guest mode, indicate that we are in vcpu->mode. That way
requests from other CPUs don't needlessly need to kick us to process them,
because it'll just happen next time we enter the guest.

Signed-off-by: Alexander Graf <agraf@suse.de>
---
 arch/powerpc/kvm/book3s_pr.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/kvm/book3s_pr.c b/arch/powerpc/kvm/book3s_pr.c
index ed9ac3f..10a1c5c 100644
--- a/arch/powerpc/kvm/book3s_pr.c
+++ b/arch/powerpc/kvm/book3s_pr.c
@@ -1154,6 +1154,7 @@ int kvmppc_vcpu_run(struct kvm_run *kvm_run, struct kvm_vcpu *vcpu)
 #endif
 
 out:
+	vcpu->mode = OUTSIDE_GUEST_MODE;
 	preempt_enable();
 	return ret;
 }
-- 
1.6.0.2


WARNING: multiple messages have this Message-ID (diff)
From: Alexander Graf <agraf@suse.de>
To: kvm-ppc@vger.kernel.org
Cc: KVM list <kvm@vger.kernel.org>
Subject: [PATCH 07/10] KVM: PPC: Book3S: PR: Indicate we're out of guest mode
Date: Mon, 13 Aug 2012 01:21:32 +0000	[thread overview]
Message-ID: <1344820895-8475-8-git-send-email-agraf@suse.de> (raw)
In-Reply-To: <1344820895-8475-1-git-send-email-agraf@suse.de>

When going out of guest mode, indicate that we are in vcpu->mode. That way
requests from other CPUs don't needlessly need to kick us to process them,
because it'll just happen next time we enter the guest.

Signed-off-by: Alexander Graf <agraf@suse.de>
---
 arch/powerpc/kvm/book3s_pr.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/kvm/book3s_pr.c b/arch/powerpc/kvm/book3s_pr.c
index ed9ac3f..10a1c5c 100644
--- a/arch/powerpc/kvm/book3s_pr.c
+++ b/arch/powerpc/kvm/book3s_pr.c
@@ -1154,6 +1154,7 @@ int kvmppc_vcpu_run(struct kvm_run *kvm_run, struct kvm_vcpu *vcpu)
 #endif
 
 out:
+	vcpu->mode = OUTSIDE_GUEST_MODE;
 	preempt_enable();
 	return ret;
 }
-- 
1.6.0.2


  parent reply	other threads:[~2012-08-13  1:21 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-13  1:21 [PATCH 00/10] Book3S MMU Notifiers, subarch unification, lazy ee Alexander Graf
2012-08-13  1:21 ` Alexander Graf
2012-08-13  1:21 ` [PATCH 01/10] KVM: PPC: BookE: No duplicate request != 0 check Alexander Graf
2012-08-13  1:21   ` Alexander Graf
2012-08-13  1:21 ` [PATCH 02/10] KVM: PPC: Use same kvmppc_prepare_to_enter code for booke and book3s_pr Alexander Graf
2012-08-13  1:21   ` Alexander Graf
2012-08-13  1:21 ` [PATCH 03/10] KVM: PPC: Book3s: PR: Add (dumb) MMU Notifier support Alexander Graf
2012-08-13  1:21   ` Alexander Graf
2012-08-13  1:21 ` [PATCH 04/10] KVM: PPC: BookE: Drop redundant vcpu->mode set Alexander Graf
2012-08-13  1:21   ` Alexander Graf
2012-08-13  1:21 ` [PATCH 05/10] KVM: PPC: Book3S: PR: Only do resched check once per exit Alexander Graf
2012-08-13  1:21   ` Alexander Graf
2012-08-13  1:21 ` [PATCH 06/10] KVM: PPC: Exit guest context while handling exit Alexander Graf
2012-08-13  1:21   ` Alexander Graf
2012-08-13  1:21 ` Alexander Graf [this message]
2012-08-13  1:21   ` [PATCH 07/10] KVM: PPC: Book3S: PR: Indicate we're out of guest mode Alexander Graf
2012-08-13  1:21 ` [PATCH 08/10] KVM: PPC: Consistentify vcpu exit path Alexander Graf
2012-08-13  1:21   ` Alexander Graf
2012-08-13  1:21 ` [PATCH 09/10] KVM: PPC: Book3S: PR: Rework irq disabling Alexander Graf
2012-08-13  1:21   ` Alexander Graf
2012-08-13  1:21 ` [PATCH 10/10] KVM: PPC: Move kvm_guest_enter call into generic code Alexander Graf
2012-08-13  1:21   ` Alexander Graf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1344820895-8475-8-git-send-email-agraf@suse.de \
    --to=agraf@suse.de \
    --cc=kvm-ppc@vger.kernel.org \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.