Message ID | 20200804134209.8717-1-paul@xen.org (mailing list archive) |
---|---|
Headers | show
Return-Path: <SRS0=QSaH=BO=lists.xenproject.org=xen-devel-bounces@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9030C13B6 for <patchwork-xen-devel@patchwork.kernel.org>; Tue, 4 Aug 2020 13:43:36 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7ED4F2075D for <patchwork-xen-devel@patchwork.kernel.org>; Tue, 4 Aug 2020 13:43:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=xen.org header.i=@xen.org header.b="EIedvXoB" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7ED4F2075D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=xen.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from <xen-devel-bounces@lists.xenproject.org>) id 1k2xCu-0008Mf-UL; Tue, 04 Aug 2020 13:42:20 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from <SRS0=hzL0=BO=xen.org=paul@srs-us1.protection.inumbo.net>) id 1k2xCt-0008MU-Uf for xen-devel@lists.xenproject.org; Tue, 04 Aug 2020 13:42:19 +0000 X-Inumbo-ID: 7622e856-a2f1-4fcb-a52f-8dd9985ee52e Received: from mail.xenproject.org (unknown [104.130.215.37]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 7622e856-a2f1-4fcb-a52f-8dd9985ee52e; Tue, 04 Aug 2020 13:42:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xen.org; s=20200302mail; h=Content-Transfer-Encoding:Content-Type:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=8IxjuGrfelQ0GDEesgxSqx9+VOb5d7SWH04DNE9oG3o=; b=EIedvXoBGl2Tw1aYppdVSMfLX3 q/9LRfnFrD7Wa9/WtkgSppUA+jxGcmP5mktbO8r1cPJwaIhLsycecpu0t5SEFw9hV7ifX7YzPHuyc aWbqwb4dpzC/T91dYa168LqgnVOq16HRZYKTwfz91/pJA+4K6mAyKXDOm99uLrd8w3DQ=; Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from <paul@xen.org>) id 1k2xCp-00083o-0M; Tue, 04 Aug 2020 13:42:15 +0000 Received: from host86-143-223-30.range86-143.btcentralplus.com ([86.143.223.30] helo=u2f063a87eabd5f.home) by xenbits.xenproject.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <paul@xen.org>) id 1k2xCo-0003ag-KK; Tue, 04 Aug 2020 13:42:14 +0000 From: Paul Durrant <paul@xen.org> To: xen-devel@lists.xenproject.org Subject: [PATCH v4 00/14] IOMMU cleanup Date: Tue, 4 Aug 2020 14:41:55 +0100 Message-Id: <20200804134209.8717-1-paul@xen.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion <xen-devel.lists.xenproject.org> List-Unsubscribe: <https://lists.xenproject.org/mailman/options/xen-devel>, <mailto:xen-devel-request@lists.xenproject.org?subject=unsubscribe> List-Post: <mailto:xen-devel@lists.xenproject.org> List-Help: <mailto:xen-devel-request@lists.xenproject.org?subject=help> List-Subscribe: <https://lists.xenproject.org/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xenproject.org?subject=subscribe> Cc: Kevin Tian <kevin.tian@intel.com>, Stefano Stabellini <sstabellini@kernel.org>, Julien Grall <julien@xen.org>, Jun Nakajima <jun.nakajima@intel.com>, Wei Liu <wl@xen.org>, Andrew Cooper <andrew.cooper3@citrix.com>, Paul Durrant <pdurrant@amazon.com>, Ian Jackson <ian.jackson@eu.citrix.com>, George Dunlap <george.dunlap@citrix.com>, Lukasz Hawrylko <lukasz.hawrylko@linux.intel.com>, Jan Beulich <jbeulich@suse.com>, Volodymyr Babchuk <Volodymyr_Babchuk@epam.com>, =?utf-8?q?Roger_Pau_Monn?= =?utf-8?q?=C3=A9?= <roger.pau@citrix.com> Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" <xen-devel-bounces@lists.xenproject.org> |
Series |
IOMMU cleanup
|
expand
|
From: Paul Durrant <pdurrant@amazon.com> v4: - Added three more patches to convert root_entry, context_entry and dma_pte to bit fields. Paul Durrant (14): x86/iommu: re-arrange arch_iommu to separate common fields... x86/iommu: add common page-table allocator x86/iommu: convert VT-d code to use new page table allocator x86/iommu: convert AMD IOMMU code to use new page table allocator iommu: remove unused iommu_ops method and tasklet iommu: flush I/O TLB if iommu_map() or iommu_unmap() fail iommu: make map, unmap and flush all take both an order and a count remove remaining uses of iommu_legacy_map/unmap common/grant_table: batch flush I/O TLB iommu: remove the share_p2m operation iommu: stop calling IOMMU page tables 'p2m tables' vtd: use a bit field for root_entry vtd: use a bit field for context_entry vtd: use a bit field for dma_pte xen/arch/arm/p2m.c | 2 +- xen/arch/x86/domain.c | 9 +- xen/arch/x86/mm.c | 21 +- xen/arch/x86/mm/p2m-ept.c | 20 +- xen/arch/x86/mm/p2m-pt.c | 15 +- xen/arch/x86/mm/p2m.c | 29 ++- xen/arch/x86/tboot.c | 4 +- xen/arch/x86/x86_64/mm.c | 27 +- xen/common/grant_table.c | 142 +++++++---- xen/common/memory.c | 9 +- xen/drivers/passthrough/amd/iommu.h | 20 +- xen/drivers/passthrough/amd/iommu_guest.c | 8 +- xen/drivers/passthrough/amd/iommu_map.c | 26 +- xen/drivers/passthrough/amd/pci_amd_iommu.c | 110 +++----- xen/drivers/passthrough/arm/ipmmu-vmsa.c | 2 +- xen/drivers/passthrough/arm/smmu.c | 2 +- xen/drivers/passthrough/iommu.c | 118 ++------- xen/drivers/passthrough/vtd/iommu.c | 269 +++++++++----------- xen/drivers/passthrough/vtd/iommu.h | 153 ++++++----- xen/drivers/passthrough/vtd/utils.c | 10 +- xen/drivers/passthrough/vtd/x86/ats.c | 27 +- xen/drivers/passthrough/x86/iommu.c | 54 +++- xen/include/asm-x86/iommu.h | 34 ++- xen/include/xen/iommu.h | 37 +-- 24 files changed, 585 insertions(+), 563 deletions(-) --- Cc: Andrew Cooper <andrew.cooper3@citrix.com> Cc: George Dunlap <george.dunlap@citrix.com> Cc: Ian Jackson <ian.jackson@eu.citrix.com> Cc: Jan Beulich <jbeulich@suse.com> Cc: Julien Grall <julien@xen.org> Cc: Jun Nakajima <jun.nakajima@intel.com> Cc: Kevin Tian <kevin.tian@intel.com> Cc: Lukasz Hawrylko <lukasz.hawrylko@linux.intel.com> Cc: "Roger Pau Monné" <roger.pau@citrix.com> Cc: Stefano Stabellini <sstabellini@kernel.org> Cc: Volodymyr Babchuk <Volodymyr_Babchuk@epam.com> Cc: Wei Liu <wl@xen.org>