From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Graf Subject: [PATCH 0/9] Post-PPC32 series v2 Date: Tue, 20 Apr 2010 02:49:45 +0200 Message-ID: <1271724594-6223-1-git-send-email-agraf@suse.de> Cc: kvm@vger.kernel.org To: kvm-ppc@vger.kernel.org Return-path: Received: from cantor.suse.de ([195.135.220.2]:56031 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752454Ab0DTAtz (ORCPT ); Mon, 19 Apr 2010 20:49:55 -0400 Sender: kvm-owner@vger.kernel.org List-ID: While working with the PPC32 host target we finally have I stumbled over several things. Thanks to the now possible performance measurements I also tracked down split mode as one of the major slowdowns to KVM. What's left now that slows us down is the normal flushing code that needs to move to a table based lookup and instruction emulation. On PPC32 guests we waste about 70% of our time on emulating mfmsr, mtmsr, mfsprg, mtsprg and friends. Either way - this patch series deprecates the former performance counter and u64 patch. Avi / Marcelo, please apply the former series and this series. Ignore the two patches in between. v1 -> v2: - add paired single patch - move WARN bailing to the correct patch Alexander Graf (9): KVM: PPC: Convert u64 -> ulong KVM: PPC: Make Performance Counters work KVM: PPC: Improve split mode KVM: PPC: Make Alignment interrupts work again KVM: PPC: Be more informative on BUG KVM: PPC: Set VSID_PR also for Book3S_64 KVM: PPC: Fix Book3S_64 Host MMU debug output KVM: PPC: Find HTAB ourselves KVM: PPC: Enable native paired singles arch/powerpc/include/asm/kvm_asm.h | 1 + arch/powerpc/include/asm/kvm_book3s.h | 13 +++---- arch/powerpc/include/asm/kvm_host.h | 6 ++-- arch/powerpc/kernel/ppc_ksyms.c | 5 --- arch/powerpc/kvm/book3s.c | 56 +++++++++++++++++++++++---------- arch/powerpc/kvm/book3s_32_mmu.c | 27 +++++++++------ arch/powerpc/kvm/book3s_32_mmu_host.c | 29 +++++++++------- arch/powerpc/kvm/book3s_64_mmu.c | 34 ++++++++++++-------- arch/powerpc/kvm/book3s_64_mmu_host.c | 36 +++++++++++++------- arch/powerpc/kvm/book3s_emulate.c | 5 ++- arch/powerpc/kvm/book3s_interrupts.S | 2 + arch/powerpc/kvm/book3s_segment.S | 2 + 12 files changed, 132 insertions(+), 84 deletions(-) From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Graf Date: Tue, 20 Apr 2010 00:49:45 +0000 Subject: [PATCH 0/9] Post-PPC32 series v2 Message-Id: <1271724594-6223-1-git-send-email-agraf@suse.de> List-Id: 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 While working with the PPC32 host target we finally have I stumbled over several things. Thanks to the now possible performance measurements I also tracked down split mode as one of the major slowdowns to KVM. What's left now that slows us down is the normal flushing code that needs to move to a table based lookup and instruction emulation. On PPC32 guests we waste about 70% of our time on emulating mfmsr, mtmsr, mfsprg, mtsprg and friends. Either way - this patch series deprecates the former performance counter and u64 patch. Avi / Marcelo, please apply the former series and this series. Ignore the two patches in between. v1 -> v2: - add paired single patch - move WARN bailing to the correct patch Alexander Graf (9): KVM: PPC: Convert u64 -> ulong KVM: PPC: Make Performance Counters work KVM: PPC: Improve split mode KVM: PPC: Make Alignment interrupts work again KVM: PPC: Be more informative on BUG KVM: PPC: Set VSID_PR also for Book3S_64 KVM: PPC: Fix Book3S_64 Host MMU debug output KVM: PPC: Find HTAB ourselves KVM: PPC: Enable native paired singles arch/powerpc/include/asm/kvm_asm.h | 1 + arch/powerpc/include/asm/kvm_book3s.h | 13 +++---- arch/powerpc/include/asm/kvm_host.h | 6 ++-- arch/powerpc/kernel/ppc_ksyms.c | 5 --- arch/powerpc/kvm/book3s.c | 56 +++++++++++++++++++++++---------- arch/powerpc/kvm/book3s_32_mmu.c | 27 +++++++++------ arch/powerpc/kvm/book3s_32_mmu_host.c | 29 +++++++++------- arch/powerpc/kvm/book3s_64_mmu.c | 34 ++++++++++++-------- arch/powerpc/kvm/book3s_64_mmu_host.c | 36 +++++++++++++------- arch/powerpc/kvm/book3s_emulate.c | 5 ++- arch/powerpc/kvm/book3s_interrupts.S | 2 + arch/powerpc/kvm/book3s_segment.S | 2 + 12 files changed, 132 insertions(+), 84 deletions(-)