From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AD4EAC5DF60 for ; Fri, 8 Nov 2019 15:31:12 +0000 (UTC) Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (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 88A3B21882 for ; Fri, 8 Nov 2019 15:31:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 88A3B21882 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=iommu-bounces@lists.linux-foundation.org Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 4F364CA4; Fri, 8 Nov 2019 15:31:12 +0000 (UTC) Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 854D0B0B for ; Fri, 8 Nov 2019 08:47:24 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id C865F196 for ; Fri, 8 Nov 2019 08:47:22 +0000 (UTC) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Nov 2019 00:47:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,280,1569308400"; d="scan'208";a="205932721" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga003.jf.intel.com with ESMTP; 08 Nov 2019 00:47:21 -0800 Received: from fmsmsx112.amr.corp.intel.com (10.18.116.6) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 8 Nov 2019 00:47:21 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX112.amr.corp.intel.com (10.18.116.6) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 8 Nov 2019 00:47:21 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.60]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.2]) with mapi id 14.03.0439.000; Fri, 8 Nov 2019 16:47:19 +0800 From: "Zeng, Jason" To: David Woodhouse , Deepa Dinamani , "joro@8bytes.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] intel-iommu: Turn off translations at shutdown Thread-Topic: [PATCH] intel-iommu: Turn off translations at shutdown Thread-Index: AQHVlgnIrRA21rplp0+PB/+PXXgW6aeA7hBA Date: Fri, 8 Nov 2019 08:47:19 +0000 Message-ID: <8D8B600C3EC1B64FAD4503F0B66C61F23BB95B@SHSMSX103.ccr.corp.intel.com> References: <20191107205914.10611-1-deepa.kernel@gmail.com> <1672a5861c82c2e3c0c54b5311fd413a8eee5e64.camel@infradead.org> In-Reply-To: <1672a5861c82c2e3c0c54b5311fd413a8eee5e64.camel@infradead.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNmNlODA4ZTEtZjdhNC00Y2Y1LTgyNTMtZDVlNDZiMjBjMDllIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiOUtHNThaWTZwQWRidndTclFhRDl0dVpcL1E1Um5cL1wvQkVjZCtoVTAyUThcL2RxdGxDSSt2SXE0VUc2K0lHaysybHYifQ== x-originating-ip: [10.239.127.40] MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 08 Nov 2019 15:31:10 +0000 Cc: "iommu@lists.linux-foundation.org" , "Tian, Kevin" , "Zeng, Jason" X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: iommu-bounces@lists.linux-foundation.org Errors-To: iommu-bounces@lists.linux-foundation.org > -----Original Message----- > From: David Woodhouse > Sent: Friday, November 8, 2019 3:54 PM > To: Deepa Dinamani ; joro@8bytes.org; linux- > kernel@vger.kernel.org > Cc: iommu@lists.linux-foundation.org; Zeng, Jason ; > Tian, Kevin > Subject: Re: [PATCH] intel-iommu: Turn off translations at shutdown > > On Thu, 2019-11-07 at 12:59 -0800, Deepa Dinamani wrote: > > The intel-iommu driver assumes that the iommu state is > > cleaned up at the start of the new kernel. > > But, when we try to kexec boot something other than the > > Linux kernel, the cleanup cannot be relied upon. > > Hence, cleanup before we go down for reboot. > > > > Keeping the cleanup at initialization also, in case BIOS > > leaves the IOMMU enabled. > > > > I considered turning off iommu only during kexec reboot, > > but a clean shutdown seems always a good idea. But if > > someone wants to make it conditional, we can do that. > > This is going to break things for the VMM live update scheme that Jason > presented at KVM Forum, isn't it? > > In that case we rely on the IOMMU still operating during the > transition. For VMM live update case, we should be able to detect and bypass the shutdown that Deepa introduced here, so keep IOMMU still operating? Thanks, Jason _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu