Message ID | 6272c301-a905-38cf-dd1a-645f3d703241@suse.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <xen-devel-bounces@lists.xenproject.org> 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 6F5D56C5 for <patchwork-xen-devel@patchwork.kernel.org>; Tue, 16 Jul 2019 16:33:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2CF2B28607 for <patchwork-xen-devel@patchwork.kernel.org>; Tue, 16 Jul 2019 16:33:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1E8DF2860A; Tue, 16 Jul 2019 16:33:00 +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=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9AD4C28607 for <patchwork-xen-devel@patchwork.kernel.org>; Tue, 16 Jul 2019 16:32:55 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from <xen-devel-bounces@lists.xenproject.org>) id 1hnQLa-0001rQ-Cq; Tue, 16 Jul 2019 16:30:34 +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.89) (envelope-from <SRS0=LiPz=VN=suse.com=jbeulich@srs-us1.protection.inumbo.net>) id 1hnQLY-0001rL-PE for xen-devel@lists.xenproject.org; Tue, 16 Jul 2019 16:30:32 +0000 X-Inumbo-ID: 03f722d6-a7e7-11e9-8ec4-9b1935685f07 Received: from m4a0040g.houston.softwaregrp.com (unknown [15.124.2.86]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 03f722d6-a7e7-11e9-8ec4-9b1935685f07; Tue, 16 Jul 2019 16:30:26 +0000 (UTC) Received: FROM m4a0040g.houston.softwaregrp.com (15.120.17.147) BY m4a0040g.houston.softwaregrp.com WITH ESMTP; Tue, 16 Jul 2019 16:26:35 +0000 Received: from M9W0067.microfocus.com (2002:f79:be::f79:be) by M4W0335.microfocus.com (2002:f78:1193::f78:1193) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Tue, 16 Jul 2019 16:30:17 +0000 Received: from NAM02-BL2-obe.outbound.protection.outlook.com (15.124.72.10) by M9W0067.microfocus.com (15.121.0.190) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10 via Frontend Transport; Tue, 16 Jul 2019 16:30:17 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Yv84C7HklOkfD9IPEh6tjqm3EPbrEs003+rCKMtGg1pcQ6g7SkRhC+2/4AKm0GqqQEpgPXIAKZV5HFRsS5Rk/FBLGhxuzdqfsIMQIDSQTOGcfVvPi9RdRD9Z1qApAOs8YNhx5snFtwhQ3anqEDfoOG0hDdKGJtZHLheTr/R+fg1DM6Dz50wW3Lhs++Xc3CenjNx35eMp8fXAIp8iL2bMrFf7/5KesPZYr51hIRS/kmRxgwTuVQUYimydDYhHBewgbQ3JqnL0z+rPbOVK3N0dKAjG33JKbuDZT+KkM3tOTwOHNwGvvfpAyObmmLsaATJAZBc0FJd6szFvEAZH79YAcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=L4Gp7fWNTXaeSrGCl+wjv31xF/KYNMFYjqKltoOSKC0=; b=fmIG1QBxljT14s2ATXO7jKWaK4ERIeHAlPWXLK5bUCylDXr6o/M8J8TTmZp8xl1jCkOV38TL0Pb3T+BvgdRarCqsAgV3PVCz+1ZpUwdXA6XgionjTIKqotAG+s/VaOFW2F3D41G1F0UVJucT6QXI9G+eLFI++jNvQLKTM16nrTxXTExQItsSL91YTvb802+GaLrVaAGzGEHhqIIi3c3pWbj8MgTkLzApO+qFkVh0vbxk1hituoYLhpxm1KVRWK8MxaZCNo9ogKZAyuaF8WRea24PCa56VHWYsvk/UP2iG/xEFNMmYyBg0F10fyJOF0ZXawCpMY2xwNW5i4v1M2arSQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=suse.com;dmarc=pass action=none header.from=suse.com;dkim=pass header.d=suse.com;arc=none Received: from DM6PR18MB3401.namprd18.prod.outlook.com (10.255.174.218) by DM6SPR01MB0073.namprd18.prod.outlook.com (20.179.55.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2073.14; Tue, 16 Jul 2019 16:30:15 +0000 Received: from DM6PR18MB3401.namprd18.prod.outlook.com ([fe80::1fe:35f6:faf3:78c7]) by DM6PR18MB3401.namprd18.prod.outlook.com ([fe80::1fe:35f6:faf3:78c7%7]) with mapi id 15.20.2073.012; Tue, 16 Jul 2019 16:30:15 +0000 From: Jan Beulich <JBeulich@suse.com> To: "xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org> Thread-Topic: [PATCH v3 00/14] x86: AMD x2APIC support Thread-Index: AQHVO/O/ZQ7A1jEOCk+lXAlfr+dqKQ== Date: Tue, 16 Jul 2019 16:30:15 +0000 Message-ID: <6272c301-a905-38cf-dd1a-645f3d703241@suse.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-clientproxiedby: DB6PR07CA0192.eurprd07.prod.outlook.com (2603:10a6:6:42::22) To DM6PR18MB3401.namprd18.prod.outlook.com (2603:10b6:5:1cc::26) authentication-results: spf=none (sender IP is ) smtp.mailfrom=JBeulich@suse.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [87.234.252.170] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 10f919f7-ad00-4a28-29c1-08d70a0ae1b3 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(49563074)(7193020); SRVR:DM6SPR01MB0073; x-ms-traffictypediagnostic: DM6SPR01MB0073: x-microsoft-antispam-prvs: <DM6SPR01MB0073B1F77E5BF8E9B74A2C86B3CE0@DM6SPR01MB0073.namprd18.prod.outlook.com> x-ms-oob-tlc-oobclassifiers: OLM:7691; x-forefront-prvs: 0100732B76 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(4636009)(39860400002)(396003)(346002)(136003)(366004)(376002)(189003)(199004)(6116002)(68736007)(3846002)(8936002)(66066001)(71190400001)(71200400001)(66446008)(81166006)(66946007)(66576008)(66476007)(66556008)(8676002)(478600001)(25786009)(99936001)(64756008)(5660300002)(31686004)(7736002)(80792005)(81156014)(186003)(6916009)(2616005)(476003)(2501003)(102836004)(14454004)(52116002)(26005)(6506007)(386003)(6512007)(486006)(53936002)(6486002)(2906002)(6436002)(5024004)(2351001)(316002)(14444005)(256004)(86362001)(305945005)(5640700003)(99286004)(4326008)(36756003)(31696002)(54906003); DIR:OUT; SFP:1102; SCL:1; SRVR:DM6SPR01MB0073; H:DM6PR18MB3401.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: suse.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: RKqnqZ7qbO63GPD7Mt997EjbBrFywoAQLEyb7Vrt0NRNdFTJLByzefH4AqkC2i4l0tZ5LFmVpBmCb38qFbbHc8YwiQ1YJc0rAc0fOgyxL3Cgw7gDUuG0U2QaTj31hBynu+1opBmNeG5aRJ2OqIynOAHKp17KLVfRAnbqOTHWXlhIiqVLwM2qr+/ZMgfUBVn8Fk2ambrKdjyugsAsjLfdQ4Vk53QO53RYuNRhdpvMLR5+7uhrTONZRBcVQK/VaaJUQ5TXg+ILahvRsx8xvQUnVWF7/N/re+w4mkgmJFh7bDTpJqesPujLd0O5LKvtDvo6aq0WciGhOx19c0R9C663KplvO6IxN7+kjvdy1h/vEuko8/u8rsQLVgaqUGJxtGMqKWsBUOtKMTAy0ngAiztmmgypQ/dDQs3Ex14lG3FGWuE= Content-Type: multipart/mixed; boundary="_015_6272c301a90538cfdd1a645f3d703241susecom_" MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 10f919f7-ad00-4a28-29c1-08d70a0ae1b3 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jul 2019 16:30:15.4896 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 856b813c-16e5-49a5-85ec-6f081e13b527 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: JBeulich@suse.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6SPR01MB0073 X-OriginatorOrg: suse.com Subject: [Xen-devel] [PATCH v3 00/14] x86: AMD x2APIC support X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 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: Andrew Cooper <andrew.cooper3@citrix.com>, Brian Woods <brian.woods@amd.com>, Suravee Suthikulpanit <suravee.suthikulpanit@amd.com> Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" <xen-devel-bounces@lists.xenproject.org> X-Virus-Scanned: ClamAV using ClamSMTP |
--- a/xen/drivers/passthrough/amd/iommu_init.c +++ b/xen/drivers/passthrough/amd/iommu_init.c @@ -1070,13 +1070,12 @@ static void __init amd_iommu_init_cleanu { list_del(&iommu->list); if ( iommu->enabled ) - { disable_iommu(iommu); - deallocate_ring_buffer(&iommu->cmd_buffer); - deallocate_ring_buffer(&iommu->event_log); - deallocate_ring_buffer(&iommu->ppr_log); - unmap_iommu_mmio_region(iommu); - } + + deallocate_ring_buffer(&iommu->cmd_buffer); + deallocate_ring_buffer(&iommu->event_log); + deallocate_ring_buffer(&iommu->ppr_log); + unmap_iommu_mmio_region(iommu); xfree(iommu); } --- a/xen/drivers/passthrough/amd/iommu_intr.c +++ b/xen/drivers/passthrough/amd/iommu_intr.c @@ -610,6 +610,8 @@ int __init amd_iommu_free_intremap_table { void *tb = ivrs_mapping->intremap_table; + XFREE(ivrs_mapping->intremap_inuse); + if ( tb ) { __free_amd_iommu_tables(tb, INTREMAP_TABLE_ORDER);