From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Mackerras Subject: [PATCH 0/8] PPC Book 3S HV-mode KVM updates for 3.15 Date: Tue, 25 Mar 2014 10:47:00 +1100 Message-ID: <1395704828-20180-1-git-send-email-paulus@samba.org> Cc: Alexander Graf To: kvm@vger.kernel.org, kvm-ppc@vger.kernel.org Return-path: Sender: kvm-ppc-owner@vger.kernel.org List-Id: kvm.vger.kernel.org This series of patches fixes some bugs in HV-mode KVM for PowerPC Book 3S and finishes off adding the support for POWER8. Patches 2 and 3 are the two patches from the series I posted in January that Alex Graf didn't apply at that stage. I have updated them according to his review comments. The last patch is also POWER8-related, adding code to save and restore more of the host state of the PMU. (We context-switch the PMU between host and guest since the guest can access the PMU directly.) The remaining patches fix bugs that have been found over the last few months of testing. This patch series is based on the merge of the "queue" branch of the kvm tree with the "kvm-ppc-queue" branch of Alex Graf's tree, though I expect they would apply cleanly against the kvm tree "queue" branch also. I would like these to go into 3.15. Scott, please ack. Paul. --- [PATCH 1/8] KVM: PPC: Book3S HV: Fix KVM hang with CONFIG_KVM_XICS=n [PATCH 2/8] KVM: PPC: Book3S HV: Add transactional memory support [PATCH 3/8] KVM: PPC: Book3S HV: Add get/set_one_reg for new TM state [PATCH 4/8] KVM: PPC: Book3S: Trim top 4 bits of physical address in [PATCH 5/8] KVM: PPC: Book3S HV: Return ENODEV error rather than EIO [PATCH 6/8] KVM: PPC: Book3S HV: Don't use kvm_memslots() in real [PATCH 7/8] KVM: PPC: Book3S HV: Fix decrementer timeouts with [PATCH 8/8] KVM: PPC: Book3S HV: Save/restore host PMU registers that arch/powerpc/include/asm/kvm_book3s_64.h | 12 ++ arch/powerpc/include/asm/kvm_book3s_asm.h | 2 +- arch/powerpc/include/asm/tm.h | 4 + arch/powerpc/kvm/book3s_64_mmu_hv.c | 9 +- arch/powerpc/kvm/book3s_hv.c | 153 +++++++++++++++++++++----- arch/powerpc/kvm/book3s_hv_interrupts.S | 22 ++++ arch/powerpc/kvm/book3s_hv_rm_mmu.c | 6 +- arch/powerpc/kvm/book3s_hv_rmhandlers.S | 177 +++++++++++++++++++++++++----- arch/powerpc/kvm/book3s_rtas.c | 7 +- 9 files changed, 329 insertions(+), 63 deletions(-) From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Mackerras Date: Mon, 24 Mar 2014 23:47:00 +0000 Subject: [PATCH 0/8] PPC Book 3S HV-mode KVM updates for 3.15 Message-Id: <1395704828-20180-1-git-send-email-paulus@samba.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org, kvm-ppc@vger.kernel.org Cc: Alexander Graf This series of patches fixes some bugs in HV-mode KVM for PowerPC Book 3S and finishes off adding the support for POWER8. Patches 2 and 3 are the two patches from the series I posted in January that Alex Graf didn't apply at that stage. I have updated them according to his review comments. The last patch is also POWER8-related, adding code to save and restore more of the host state of the PMU. (We context-switch the PMU between host and guest since the guest can access the PMU directly.) The remaining patches fix bugs that have been found over the last few months of testing. This patch series is based on the merge of the "queue" branch of the kvm tree with the "kvm-ppc-queue" branch of Alex Graf's tree, though I expect they would apply cleanly against the kvm tree "queue" branch also. I would like these to go into 3.15. Scott, please ack. Paul. --- [PATCH 1/8] KVM: PPC: Book3S HV: Fix KVM hang with CONFIG_KVM_XICS=n [PATCH 2/8] KVM: PPC: Book3S HV: Add transactional memory support [PATCH 3/8] KVM: PPC: Book3S HV: Add get/set_one_reg for new TM state [PATCH 4/8] KVM: PPC: Book3S: Trim top 4 bits of physical address in [PATCH 5/8] KVM: PPC: Book3S HV: Return ENODEV error rather than EIO [PATCH 6/8] KVM: PPC: Book3S HV: Don't use kvm_memslots() in real [PATCH 7/8] KVM: PPC: Book3S HV: Fix decrementer timeouts with [PATCH 8/8] KVM: PPC: Book3S HV: Save/restore host PMU registers that arch/powerpc/include/asm/kvm_book3s_64.h | 12 ++ arch/powerpc/include/asm/kvm_book3s_asm.h | 2 +- arch/powerpc/include/asm/tm.h | 4 + arch/powerpc/kvm/book3s_64_mmu_hv.c | 9 +- arch/powerpc/kvm/book3s_hv.c | 153 +++++++++++++++++++++----- arch/powerpc/kvm/book3s_hv_interrupts.S | 22 ++++ arch/powerpc/kvm/book3s_hv_rm_mmu.c | 6 +- arch/powerpc/kvm/book3s_hv_rmhandlers.S | 177 +++++++++++++++++++++++++----- arch/powerpc/kvm/book3s_rtas.c | 7 +- 9 files changed, 329 insertions(+), 63 deletions(-)