[Bug 42755] KVM is being extremely slow on AMD Athlon64 4000+ Dual Core 2.1GHz Brisbane

2012-02-26 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=42755 --- Comment #35 from Rosen sandik...@yandex.ru 2012-02-26 09:53:22 --- No changes with git version of qemu-kvm Only see when work guest cpu usage is out of range, about 120% - 150% -- Configure bugmail:

Re: [PATCH 35/37] KVM: PPC: booke: Support perfmon interrupts

2012-02-26 Thread Alexander Graf
On 25.02.2012, at 00:33, Scott Wood wrote: On 02/24/2012 08:26 AM, Alexander Graf wrote: When during guest context we get a performance monitor interrupt, we currently bail out and oops. Let's route it to its correct handler instead. Signed-off-by: Alexander Graf ag...@suse.de ---

Re: [PATCH 36/37] KVM: PPC: booke: expose guest registers on irq reinject

2012-02-26 Thread Alexander Graf
On 25.02.2012, at 00:40, Scott Wood wrote: On 02/24/2012 08:26 AM, Alexander Graf wrote: +static void kvmppc_fill_pt_regs(struct kvm_vcpu *vcpu, struct pt_regs *regs) { -int r = RESUME_HOST; +int i; -/* update before a new last_exit_type is rewritten */ -

[PATCH 1/3] KVM: x86 emulator: warn when pin control is set in eventsel msr

2012-02-26 Thread Gleb Natapov
Print warning once if pin control bit is set in eventsel msr since emulation does not support it yet. Signed-off-by: Gleb Natapov g...@redhat.com --- arch/x86/include/asm/perf_event.h |1 + arch/x86/kvm/pmu.c|3 +++ 2 files changed, 4 insertions(+), 0 deletions(-) diff

[PATCH 2/3] KVM: x86 emulator: Fix raw event check

2012-02-26 Thread Gleb Natapov
If eventsel has EDGE, INV or CMASK set we should create raw counter for it, but the check is done on a wrong variable. Fix it. Signed-off-by: Gleb Natapov g...@redhat.com --- arch/x86/kvm/pmu.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/kvm/pmu.c

[PATCH 3/3] KVM: x86 emulator: add proper support for fixed counter 2

2012-02-26 Thread Gleb Natapov
Currently pmu emulation emulates fixed counter 2 as bus cycles architectural counter, but since commit 9c1497ea591b25d perf has pseudo encoding for it. Use it. Signed-off-by: Gleb Natapov g...@redhat.com --- arch/x86/kvm/pmu.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff

[PATCH 0/3] pmu emulation fixes

2012-02-26 Thread Gleb Natapov
Gleb Natapov (3): KVM: x86 emulator: warn when pin control is set in eventsel msr KVM: x86 emulator: Fix raw event check KVM: x86 emulator: add proper support for fixed counter 2 arch/x86/include/asm/perf_event.h |1 + arch/x86/kvm/pmu.c|8 ++-- 2 files changed,

[PATCH 1/2 unit-test] Add rdpmc instruction accessor

2012-02-26 Thread Gleb Natapov
From: Avi Kivity a...@redhat.com Signed-off-by: Avi Kivity a...@redhat.com Signed-off-by: Gleb Natapov g...@redhat.com --- lib/x86/processor.h |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/lib/x86/processor.h b/lib/x86/processor.h index f69f9ff..c7e1afb 100644

[PATCH 2/2 unit-test] Add PMU test

2012-02-26 Thread Gleb Natapov
Add unit test to test architectural PMU emulation in kvm. Signed-off-by: Gleb Natapov g...@redhat.com --- config-x86-common.mak |4 +- x86/pmu.c | 409 + 2 files changed, 412 insertions(+), 1 deletions(-) create mode 100644

Re: Current kernel fails to compile with KVM on PowerPC

2012-02-26 Thread Jörg Sommer
Jörg Sommer hat am Sat 25. Feb, 15:51 (+0100) geschrieben: Jörg Sommer hat am Tue 21. Feb, 09:32 (+0100) geschrieben: Alexander Graf hat am Mon 20. Feb, 22:27 (+0100) geschrieben: On 20.02.2012, at 18:38, Jörg Sommer wrote: Alexander Graf hat am Tue 22. Nov, 22:29 (+0100) geschrieben:

Re: Current kernel fails to compile with KVM on PowerPC

2012-02-26 Thread Alexander Graf
On 26.02.2012, at 01:06, Jörg Sommer wrote: Jörg Sommer hat am Sat 25. Feb, 15:51 (+0100) geschrieben: Jörg Sommer hat am Tue 21. Feb, 09:32 (+0100) geschrieben: Alexander Graf hat am Mon 20. Feb, 22:27 (+0100) geschrieben: On 20.02.2012, at 18:38, Jörg Sommer wrote: Alexander Graf hat am

Re: Current kernel fails to compile with KVM on PowerPC

2012-02-26 Thread Jörg Sommer
Alexander Graf hat am Sun 26. Feb, 12:43 (+0100) geschrieben: On 25.02.2012, at 15:51, Jörg Sommer wrote: Jörg Sommer hat am Tue 21. Feb, 09:32 (+0100) geschrieben: Alexander Graf hat am Mon 20. Feb, 22:27 (+0100) geschrieben: On 20.02.2012, at 18:38, Jörg Sommer wrote: Alexander Graf hat

Re: Current kernel fails to compile with KVM on PowerPC

2012-02-26 Thread Alexander Graf
On 27.02.2012, at 01:08, Jörg Sommer wrote: Alexander Graf hat am Sun 26. Feb, 12:43 (+0100) geschrieben: On 25.02.2012, at 15:51, Jörg Sommer wrote: Jörg Sommer hat am Tue 21. Feb, 09:32 (+0100) geschrieben: Alexander Graf hat am Mon 20. Feb, 22:27 (+0100) geschrieben: On 20.02.2012, at

[PATCH] kvm: notify host when guest paniced

2012-02-26 Thread Wen Congyang
We can know the guest is paniced when the guest runs on xen. But we do not have such feature on kvm. This patch implemnts this feature, and the implementation is the same as xen: register panic notifier, and call hypercall when the guest is paniced. Signed-off-by: Wen Congyang

Re: [PATCH 3/3] KVM: perf: kvm events analysis tool

2012-02-26 Thread Xiao Guangrong
On 02/21/2012 07:47 AM, David Ahern wrote: diff --git a/tools/perf/util/thread.h b/tools/perf/util/thread.h index 70c2c13..c48ebf3 100644 --- a/tools/perf/util/thread.h +++ b/tools/perf/util/thread.h @@ -16,6 +16,8 @@ struct thread { boolcomm_set; char

Re: [PATCH 35/37] KVM: PPC: booke: Support perfmon interrupts

2012-02-26 Thread Alexander Graf
On 25.02.2012, at 00:33, Scott Wood wrote: On 02/24/2012 08:26 AM, Alexander Graf wrote: When during guest context we get a performance monitor interrupt, we currently bail out and oops. Let's route it to its correct handler instead. Signed-off-by: Alexander Graf ag...@suse.de ---

Re: [PATCH 36/37] KVM: PPC: booke: expose guest registers on irq reinject

2012-02-26 Thread Alexander Graf
On 25.02.2012, at 00:40, Scott Wood wrote: On 02/24/2012 08:26 AM, Alexander Graf wrote: +static void kvmppc_fill_pt_regs(struct kvm_vcpu *vcpu, struct pt_regs *regs) { -int r = RESUME_HOST; +int i; -/* update before a new last_exit_type is rewritten */ -

Re: Current kernel fails to compile with KVM on PowerPC

2012-02-26 Thread Jörg Sommer
Jörg Sommer hat am Sat 25. Feb, 15:51 (+0100) geschrieben: Jörg Sommer hat am Tue 21. Feb, 09:32 (+0100) geschrieben: Alexander Graf hat am Mon 20. Feb, 22:27 (+0100) geschrieben: On 20.02.2012, at 18:38, Jörg Sommer wrote: Alexander Graf hat am Tue 22. Nov, 22:29 (+0100) geschrieben:

Re: Current kernel fails to compile with KVM on PowerPC

2012-02-26 Thread Alexander Graf
On 26.02.2012, at 01:06, Jörg Sommer wrote: Jörg Sommer hat am Sat 25. Feb, 15:51 (+0100) geschrieben: Jörg Sommer hat am Tue 21. Feb, 09:32 (+0100) geschrieben: Alexander Graf hat am Mon 20. Feb, 22:27 (+0100) geschrieben: On 20.02.2012, at 18:38, Jörg Sommer wrote: Alexander Graf hat am

Re: Current kernel fails to compile with KVM on PowerPC

2012-02-26 Thread Jörg Sommer
Alexander Graf hat am Sun 26. Feb, 12:43 (+0100) geschrieben: On 25.02.2012, at 15:51, Jörg Sommer wrote: Jörg Sommer hat am Tue 21. Feb, 09:32 (+0100) geschrieben: Alexander Graf hat am Mon 20. Feb, 22:27 (+0100) geschrieben: On 20.02.2012, at 18:38, Jörg Sommer wrote: Alexander Graf hat

Re: Current kernel fails to compile with KVM on PowerPC

2012-02-26 Thread Alexander Graf
On 27.02.2012, at 01:08, Jörg Sommer wrote: Alexander Graf hat am Sun 26. Feb, 12:43 (+0100) geschrieben: On 25.02.2012, at 15:51, Jörg Sommer wrote: Jörg Sommer hat am Tue 21. Feb, 09:32 (+0100) geschrieben: Alexander Graf hat am Mon 20. Feb, 22:27 (+0100) geschrieben: On 20.02.2012, at