From patchwork Tue Dec 18 03:05:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Mackerras X-Patchwork-Id: 10734641 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4070F14E2 for ; Tue, 18 Dec 2018 03:05:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2589E2959B for ; Tue, 18 Dec 2018 03:05:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 198F3295AB; Tue, 18 Dec 2018 03:05:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E0CB42959B for ; Tue, 18 Dec 2018 03:05:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726549AbeLRDFF (ORCPT ); Mon, 17 Dec 2018 22:05:05 -0500 Received: from ozlabs.org ([203.11.71.1]:56423 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726285AbeLRDFF (ORCPT ); Mon, 17 Dec 2018 22:05:05 -0500 Received: by ozlabs.org (Postfix, from userid 1003) id 43JjYq3DP0z9sC7; Tue, 18 Dec 2018 14:05:03 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1545102303; bh=hDptG1lhaEuYGRBrGeFi0UBg2BuvfRxMmCJdJub++50=; h=Date:From:To:Subject:From; b=H04ov96i8EHAzpINxmSne4YW69iCu/0j9V7zyvrbXVdI/PyTuRbg1yBRWIHI/qwAy zXE8I06O637/OKakVR4KsAzKjlrNIXAB4R32mQHWkTdVj4/ROEKEj5BGmDQKXffLMS yp98WOAM2IinY7uPejYNx8/TNMWu3icqSXwfEZJipvhwbV1lXfDW9jB/oGaoWqE0aZ pzNiEPuzJH9yY6jdiYdPYs4SFmz3ROW1LjqJZXTWFUTIk8siuAYvWsZhnNejmS7fa0 VLBwWtNyyjM4FqqVEsqPTHbDvwxmEyDgGelXu86eM3oiaQkn0ooLOGP519/QUyxFlv O6RUf2QlO/mrA== Date: Tue, 18 Dec 2018 14:05:00 +1100 From: Paul Mackerras To: Paolo Bonzini , Radim =?utf-8?b?S3LEjW3DocWZ?= , kvm@vger.kernel.org, kvm-ppc@vger.kernel.org, David Gibson Subject: [GIT PULL] Please pull my kvm-ppc-next-4.21-1 tag Message-ID: <20181218030500.GA29160@blackberry> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Paolo or Radim, Please do a pull from my kvm-ppc-next-4.21-1 tag to get a PPC KVM update for 4.21. The main new thing this time is an improvement to the nested HV KVM code so that if you have a nested hypervisor that has a PCI device which is actually emulated by the level 0 hypervisor, level 1 can pass that through to level 2 using VFIO and the accesses to the device by level 2 will be emulated by level 0 and the results passed down to level 2 correctly. Thanks, Paul. The following changes since commit fd65d3142f734bc4376053c8d75670041903134d: kvm: svm: Ensure an IBPB on all affected CPUs when freeing a vmcb (2018-11-27 12:50:42 +0100) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc tags/kvm-ppc-next-4.21-1 for you to fetch changes up to 95d386c2d2e7660a6447df1507a9845665dab7d8: KVM: PPC: Book3S HV: Allow passthrough of an emulated device to an L3 guest (2018-12-17 11:33:50 +1100) ---------------------------------------------------------------- PPC KVM update for 4.21 The main new feature this time is support in HV nested KVM for passing a device that is emulated by a level 0 hypervisor and presented to level 1 as a PCI device through to a level 2 guest using VFIO. Apart from that there are improvements for migration of radix guests under HV KVM and some other fixes and cleanups. ---------------------------------------------------------------- Bharata B Rao (1): KVM: PPC: Pass change type down to memslot commit function Paul Mackerras (4): KVM: PPC: Book3S HV: Fix race between kvm_unmap_hva_range and MMU mode switch KVM: PPC: Book3S HV: Map single pages when doing dirty page logging KVM: PPC: Book3S HV: Cleanups - constify memslots, fix comments KVM: PPC: Book3S HV: Flush guest mappings when turning dirty tracking on/off Suraj Jitindar Singh (9): KVM: PPC: Book3S PR: Set hflag to indicate that POWER9 supports 1T segments KVM: PPC: Book3S: Only report KVM_CAP_SPAPR_TCE_VFIO on powernv machines KVM: PPC: Book3S HV: Add function kvmhv_vcpu_is_radix() KVM: PPC: Book3S HV: Implement functions to access quadrants 1 & 2 KVM: PPC: Add load_from_eaddr and store_to_eaddr to the kvmppc_ops struct KVM: PPC: Update kvmppc_st and kvmppc_ld to use quadrants KVM: PPC: Book3S HV: Allow passthrough of an emulated device to an L2 guest KVM: PPC: Book3S: Introduce new hcall H_COPY_TOFROM_GUEST to access quadrants 1 & 2 KVM: PPC: Book3S HV: Allow passthrough of an emulated device to an L3 guest Yangtao Li (1): KVM: PPC: Book3S HV: Change to use DEFINE_SHOW_ATTRIBUTE macro arch/powerpc/include/asm/hvcall.h | 1 + arch/powerpc/include/asm/kvm_book3s.h | 21 +++-- arch/powerpc/include/asm/kvm_book3s_64.h | 15 +++- arch/powerpc/include/asm/kvm_host.h | 3 + arch/powerpc/include/asm/kvm_ppc.h | 10 ++- arch/powerpc/kernel/exceptions-64s.S | 9 +++ arch/powerpc/kvm/book3s.c | 5 +- arch/powerpc/kvm/book3s_64_mmu_hv.c | 12 ++- arch/powerpc/kvm/book3s_64_mmu_radix.c | 134 +++++++++++++++++++++++++++++-- arch/powerpc/kvm/book3s_hv.c | 95 +++++++++++++++++++--- arch/powerpc/kvm/book3s_hv_nested.c | 116 ++++++++++++++++++++++++-- arch/powerpc/kvm/book3s_hv_rm_mmu.c | 2 +- arch/powerpc/kvm/book3s_pr.c | 4 +- arch/powerpc/kvm/book3s_xics.c | 12 +-- arch/powerpc/kvm/book3s_xive.c | 12 +-- arch/powerpc/kvm/booke.c | 3 +- arch/powerpc/kvm/powerpc.c | 33 +++++++- arch/powerpc/mm/fault.c | 1 + 18 files changed, 418 insertions(+), 70 deletions(-)