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.5 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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 87E00C43331 for ; Sun, 10 Nov 2019 18:24:33 +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 47D5D20818 for ; Sun, 10 Nov 2019 18:24:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="EuRtfDui" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 47D5D20818 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.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 01B988FF; Sun, 10 Nov 2019 18:24:33 +0000 (UTC) Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 5E2D940B for ; Sun, 10 Nov 2019 18:24:32 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-io1-f65.google.com (mail-io1-f65.google.com [209.85.166.65]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id EC77212E for ; Sun, 10 Nov 2019 18:24:31 +0000 (UTC) Received: by mail-io1-f65.google.com with SMTP id p6so11866386iod.7 for ; Sun, 10 Nov 2019 10:24:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SGPvkCQhS8lOGjJsjyLIOzETx5n0C33gWGyQBfpGz08=; b=EuRtfDui/jVwc7I7G2EAEIoN7CusJdRjXcOpzduQ1FCCd/wL4Oymv8SmWjUDLcJiJH XJ1k46LoLnQS8qLJ0rKKwFj9tQF5XncAcJFYalytPsokgB73l61dymH9ObiimWRgRALx /e4oe4PRzYLuM+duiVlB4IHgKYpypi1byIzNTSoe4skgCzcTo6yrayCURZUjLdX3tBxX eF55HKBhql/aCdebLp8rEskuX2uAB0vnXgGfPDMiZdxza1FmkMQBkNEXzmV7IbWHsgIG v1lE4Kaic2fjve2LS9kPgI04vEbB0LzPw8cCD9E2aEtylU+L+pME+mHNcGDIPXoomHuC dtYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SGPvkCQhS8lOGjJsjyLIOzETx5n0C33gWGyQBfpGz08=; b=VL00frZWY4Pw2tJMf4wG5eRCBVDUkKGCGYQbbVTjbwavIsM0OA7qTwRJwA5HYohMFp ooRK0ALp0Y4Ar/p7rD9eEYkigMhOLM7c73Rgo6Wf9Vn7bIbnpbOmqfTFvTp5s01kRm47 vj+Dpq6WONV4+r51nmURLfVeYZiUHJ/n1FSdZXQ1ix3VU4BKWY+pIhsFI7XbPKqi92qp kN8Feg2UlFxwRrLuu0YAEvVmCzpsRgk1Uc7NYRQvZ1+LVZF5n7wgZ8z14UfAUv7Rin0M 9NybLlvvZ1T5u7GFdCIHWmzv1mGfOnLM62cQy4uIz93whgI8lckpmkR3UEqjuk0dtHAo d3eA== X-Gm-Message-State: APjAAAUiK5MOMolX8O9eb2T2FeSfyZOymh1oa2wl5EdrEeaiOJQRumFi ytM82gqhKNfl980lVvEGaCowhc/CGgoHCDVOFIs= X-Google-Smtp-Source: APXvYqyz5D2ExJqLF8IgqivapjYXzOhUz1k6GWk/e/rE20GM4qdFusyulwHj9R/uZPLrDWZ2NCC+37New78NJexUnkw= X-Received: by 2002:a6b:3c04:: with SMTP id k4mr12754617iob.110.1573410271227; Sun, 10 Nov 2019 10:24:31 -0800 (PST) MIME-Version: 1.0 References: <20191107205914.10611-1-deepa.kernel@gmail.com> <1672a5861c82c2e3c0c54b5311fd413a8eee5e64.camel@infradead.org> <8D8B600C3EC1B64FAD4503F0B66C61F23BB95B@SHSMSX103.ccr.corp.intel.com> <8D8B600C3EC1B64FAD4503F0B66C61F23BBA24@SHSMSX103.ccr.corp.intel.com> In-Reply-To: From: Deepa Dinamani Date: Sun, 10 Nov 2019 10:24:19 -0800 Message-ID: Subject: Re: [PATCH] intel-iommu: Turn off translations at shutdown To: "Zeng, Jason" Cc: "Tian, Kevin" , Arnd Bergmann , "linux-kernel@vger.kernel.org" , "iommu@lists.linux-foundation.org" , Ron Minnich , David Woodhouse 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 On Fri, Nov 8, 2019 at 2:48 PM Deepa Dinamani wrote: > > > > > For VMM live update case, we should be able to detect and bypass > > > > the shutdown that Deepa introduced here, so keep IOMMU still operating? > > > > > > Is that a 'yes' to Deepa's "if someone wants to make it conditional, we > > > can do that" ? > > > > Yes, I think so. Thanks! > > Are these changes already part of the kernel like avoiding shutdown of > the passthrough devices? device_shutdown() doesn't seem to be doing > anything selectively as of now. I've posted the v2 without the conditional for now: https://lore.kernel.org/patchwork/patch/1151225/ As a side topic, I'm trying to support https://www.linuxboot.org/. I have a couple of more such cleanups coming. The VMM live updates and linuxboot seem to have contradicting requirements and they both use kexec. So kexec_in_progress doesn't seem like a sufficient indicator to distinguish between the two. Do you already have an idea on how to distiguish between them? Does a separate sys_reboot() command parameter sound ok? Or, we could use the flags in the sys_kexec_load() depending on how the live update feature is implemented. -Deepa _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu