* [PATCH] KVM: PPC: Make Performance Counters work
@ 2010-04-16 22:22 ` Alexander Graf
0 siblings, 0 replies; 6+ messages in thread
From: Alexander Graf @ 2010-04-16 22:22 UTC (permalink / raw)
To: kvm-ppc-u79uwXL29TY76Z2rM5mHXA; +Cc: kvm-u79uwXL29TY76Z2rM5mHXA
When we get a performance counter interrupt we need to route it on to the
Linux handler after we got out of the guest context. We also need to tell
our handling code that this particular interrupt doesn't need treatment.
So let's add those two bits in, making perf work while having a KVM guest
running.
Signed-off-by: Alexander Graf <agraf@suse.de>
---
arch/powerpc/kvm/book3s.c | 3 +++
arch/powerpc/kvm/book3s_interrupts.S | 2 ++
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/arch/powerpc/kvm/book3s.c b/arch/powerpc/kvm/book3s.c
index a7de709..a03163b 100644
--- a/arch/powerpc/kvm/book3s.c
+++ b/arch/powerpc/kvm/book3s.c
@@ -872,6 +872,9 @@ int kvmppc_handle_exit(struct kvm_run *run, struct kvm_vcpu *vcpu,
vcpu->stat.ext_intr_exits++;
r = RESUME_GUEST;
break;
+ case BOOK3S_INTERRUPT_PERFMON:
+ r = RESUME_GUEST;
+ break;
case BOOK3S_INTERRUPT_PROGRAM:
{
enum emulation_result er;
diff --git a/arch/powerpc/kvm/book3s_interrupts.S b/arch/powerpc/kvm/book3s_interrupts.S
index f5b3358..e486193 100644
--- a/arch/powerpc/kvm/book3s_interrupts.S
+++ b/arch/powerpc/kvm/book3s_interrupts.S
@@ -228,6 +228,8 @@ no_dcbz32_off:
beq call_linux_handler
cmpwi r12, BOOK3S_INTERRUPT_DECREMENTER
beq call_linux_handler
+ cmpwi r12, BOOK3S_INTERRUPT_PERFMON
+ beq call_linux_handler
/* Back to EE=1 */
mtmsr r6
--
1.6.0.2
^ permalink raw reply related [flat|nested] 6+ messages in thread* [PATCH] KVM: PPC: Make Performance Counters work
@ 2010-04-16 22:22 ` Alexander Graf
0 siblings, 0 replies; 6+ messages in thread
From: Alexander Graf @ 2010-04-16 22:22 UTC (permalink / raw)
To: kvm-ppc-u79uwXL29TY76Z2rM5mHXA; +Cc: kvm-u79uwXL29TY76Z2rM5mHXA
When we get a performance counter interrupt we need to route it on to the
Linux handler after we got out of the guest context. We also need to tell
our handling code that this particular interrupt doesn't need treatment.
So let's add those two bits in, making perf work while having a KVM guest
running.
Signed-off-by: Alexander Graf <agraf-l3A5Bk7waGM@public.gmane.org>
---
arch/powerpc/kvm/book3s.c | 3 +++
arch/powerpc/kvm/book3s_interrupts.S | 2 ++
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/arch/powerpc/kvm/book3s.c b/arch/powerpc/kvm/book3s.c
index a7de709..a03163b 100644
--- a/arch/powerpc/kvm/book3s.c
+++ b/arch/powerpc/kvm/book3s.c
@@ -872,6 +872,9 @@ int kvmppc_handle_exit(struct kvm_run *run, struct kvm_vcpu *vcpu,
vcpu->stat.ext_intr_exits++;
r = RESUME_GUEST;
break;
+ case BOOK3S_INTERRUPT_PERFMON:
+ r = RESUME_GUEST;
+ break;
case BOOK3S_INTERRUPT_PROGRAM:
{
enum emulation_result er;
diff --git a/arch/powerpc/kvm/book3s_interrupts.S b/arch/powerpc/kvm/book3s_interrupts.S
index f5b3358..e486193 100644
--- a/arch/powerpc/kvm/book3s_interrupts.S
+++ b/arch/powerpc/kvm/book3s_interrupts.S
@@ -228,6 +228,8 @@ no_dcbz32_off:
beq call_linux_handler
cmpwi r12, BOOK3S_INTERRUPT_DECREMENTER
beq call_linux_handler
+ cmpwi r12, BOOK3S_INTERRUPT_PERFMON
+ beq call_linux_handler
/* Back to EE=1 */
mtmsr r6
--
1.6.0.2
^ permalink raw reply related [flat|nested] 6+ messages in thread[parent not found: <1271456552-14334-1-git-send-email-agraf-l3A5Bk7waGM@public.gmane.org>]
* Re: [PATCH] KVM: PPC: Make Performance Counters work
[not found] ` <1271456552-14334-1-git-send-email-agraf-l3A5Bk7waGM@public.gmane.org>
@ 2010-04-19 10:34 ` Avi Kivity
0 siblings, 0 replies; 6+ messages in thread
From: Avi Kivity @ 2010-04-19 10:34 UTC (permalink / raw)
To: Alexander Graf; +Cc: kvm-ppc-u79uwXL29TY76Z2rM5mHXA, kvm-u79uwXL29TY76Z2rM5mHXA
On 04/17/2010 01:22 AM, Alexander Graf wrote:
> When we get a performance counter interrupt we need to route it on to the
> Linux handler after we got out of the guest context. We also need to tell
> our handling code that this particular interrupt doesn't need treatment.
>
> So let's add those two bits in, making perf work while having a KVM guest
> running.
>
>
Doesn't apply - does it depend on another patchset?
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH] KVM: PPC: Make Performance Counters work
@ 2010-04-19 10:34 ` Avi Kivity
0 siblings, 0 replies; 6+ messages in thread
From: Avi Kivity @ 2010-04-19 10:34 UTC (permalink / raw)
To: Alexander Graf; +Cc: kvm-ppc-u79uwXL29TY76Z2rM5mHXA, kvm-u79uwXL29TY76Z2rM5mHXA
On 04/17/2010 01:22 AM, Alexander Graf wrote:
> When we get a performance counter interrupt we need to route it on to the
> Linux handler after we got out of the guest context. We also need to tell
> our handling code that this particular interrupt doesn't need treatment.
>
> So let's add those two bits in, making perf work while having a KVM guest
> running.
>
>
Doesn't apply - does it depend on another patchset?
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <4BCC319B.5000708-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>]
* Re: [PATCH] KVM: PPC: Make Performance Counters work
[not found] ` <4BCC319B.5000708-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2010-04-19 10:56 ` Alexander Graf
0 siblings, 0 replies; 6+ messages in thread
From: Alexander Graf @ 2010-04-19 10:56 UTC (permalink / raw)
To: Avi Kivity; +Cc: kvm-ppc-u79uwXL29TY76Z2rM5mHXA, kvm-u79uwXL29TY76Z2rM5mHXA
On 19.04.2010, at 12:34, Avi Kivity wrote:
> On 04/17/2010 01:22 AM, Alexander Graf wrote:
>> When we get a performance counter interrupt we need to route it on to the
>> Linux handler after we got out of the guest context. We also need to tell
>> our handling code that this particular interrupt doesn't need treatment.
>>
>> So let's add those two bits in, making perf work while having a KVM guest
>> running.
>>
>>
>
> Doesn't apply - does it depend on another patchset?
This patch is deprecated by the "Post-PPC32" patchset. I only noted that in the cover letter of the Post-PPC32 patchset, not in a reply to this patch. Sorry.
Alex
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH] KVM: PPC: Make Performance Counters work
@ 2010-04-19 10:56 ` Alexander Graf
0 siblings, 0 replies; 6+ messages in thread
From: Alexander Graf @ 2010-04-19 10:56 UTC (permalink / raw)
To: Avi Kivity; +Cc: kvm-ppc-u79uwXL29TY76Z2rM5mHXA, kvm-u79uwXL29TY76Z2rM5mHXA
On 19.04.2010, at 12:34, Avi Kivity wrote:
> On 04/17/2010 01:22 AM, Alexander Graf wrote:
>> When we get a performance counter interrupt we need to route it on to the
>> Linux handler after we got out of the guest context. We also need to tell
>> our handling code that this particular interrupt doesn't need treatment.
>>
>> So let's add those two bits in, making perf work while having a KVM guest
>> running.
>>
>>
>
> Doesn't apply - does it depend on another patchset?
This patch is deprecated by the "Post-PPC32" patchset. I only noted that in the cover letter of the Post-PPC32 patchset, not in a reply to this patch. Sorry.
Alex
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-04-19 10:56 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-16 22:22 [PATCH] KVM: PPC: Make Performance Counters work Alexander Graf
2010-04-16 22:22 ` Alexander Graf
[not found] ` <1271456552-14334-1-git-send-email-agraf-l3A5Bk7waGM@public.gmane.org>
2010-04-19 10:34 ` Avi Kivity
2010-04-19 10:34 ` Avi Kivity
[not found] ` <4BCC319B.5000708-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2010-04-19 10:56 ` Alexander Graf
2010-04-19 10:56 ` Alexander Graf
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.