Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3594799pxj; Mon, 7 Jun 2021 15:04:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2uvJW/sBtooB8W3UG541yvuhuS/dzrVOztBipr//QPaB6rR+WDX0HBSt7CHdhXI/SVmWv X-Received: by 2002:a17:906:2c4a:: with SMTP id f10mr19475304ejh.493.1623103459832; Mon, 07 Jun 2021 15:04:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623103459; cv=none; d=google.com; s=arc-20160816; b=fKTyNwS4EGHaT7GyyHkyrn3kDEkLbyKnvGO6TZof/deHgEjoKGIXijGA5IDi3htP57 qRv9+7tNvasjW5tZoEFBK0wnWaNccmA/qHmE0vALLHDuYf3S7OQ55Zk0S6ETwHuOPlcH LtAWpWInlPHukoXdMTUzSu597jNgAB+KXxwUPc/DWkEWrZdB8SeznSYqwxg9NArNQkGv rLUkBEfXjKsI7tbd067u7D50bCytplR4RANcTtbo17uktQE22hY/aQTFd9r0FcMf5c+4 D0oXO0Gk6NcuzjCo5EgiRq82fqTxbF5hBKWQo4ceoYC3yYjsNtXspTnEukdIv5m1vY/k uIpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=WNKMrasHpNaeqwrkhFMNAE+AW6y2Sn1+mKflF4XxOjI=; b=h7QrVTcbkN+9wtG3Jr/WwIW8gXCJxKtjzX9hhwPSTs4o8/H1Ww/dOnKMiujUSet/lS fOuN/aTTGO0AXRe7rs71959ObDgjIHTekJYqu3IUG4EaSIYPLG2qzrdt2zE6srQwbCO3 Ge1w4tBU+ikXqg8HGPOF4kCq4xHRaZvkiAk1XjLw8wvY9dNXu1+KBEc/p7DK2XBOTqXc opwrSwv2tKwq9lvIrWTl9S0yI1GsXjLLJH7BsiOR98rm1qWb4zsj3i6WxJJDm/60Ek6a G/CXwWNcLQDTWwOrAXeZdc+Bjp6VUs6qVH4A03WUVI46tuuasl8BjKIWwIm+E2MHBeg7 bAsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=juxKJR2p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b1si8663805ejl.3.2021.06.07.15.03.55; Mon, 07 Jun 2021 15:04:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=juxKJR2p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231214AbhFGWDp (ORCPT + 99 others); Mon, 7 Jun 2021 18:03:45 -0400 Received: from mail-pf1-f176.google.com ([209.85.210.176]:34697 "EHLO mail-pf1-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230359AbhFGWDo (ORCPT ); Mon, 7 Jun 2021 18:03:44 -0400 Received: by mail-pf1-f176.google.com with SMTP id g6so14151527pfq.1 for ; Mon, 07 Jun 2021 15:01:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WNKMrasHpNaeqwrkhFMNAE+AW6y2Sn1+mKflF4XxOjI=; b=juxKJR2pYcBkxm6GQEluwpShhxejA60z1ZPl2HLmHbUEwOJS5iXYbJaq59h/t0GSGP EBtpna7T8KPL6XiN0ev5nb19j7lwWTi+fmq9CfcNEiDE3WNRZJu4mR4R2wHLuzsAsYjm eSb6kHU+KCHR6FeSpdi7rWai/CTxR/3pNVg6j0pcujQw/35Q4fT3R7fDiwKHpVgExo2c p9KSntyeOBMLiseLdSDnrzo18Jz9yHJ4ZcUPHVRtflxsAZRcGGvXVxr8ORVPkD9GOT8T XWGc/7OoO9gtXAUkbcEiQN92+MEEx8oxey3vBcVYmCf4luXGrMDt+Kd6Hal68+VBSNqp xmsg== 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=WNKMrasHpNaeqwrkhFMNAE+AW6y2Sn1+mKflF4XxOjI=; b=T9APFqtYKHcdkCnxoLLqfIuBmfmtjpn+wXgoQ0gAG6pFGE4LFiC+vRaJKE9ML5oyMJ Nsx7UkRl2OSd3/Igq1i41EtQAO/0s+VBeVFImSkhh+cbGh4CFiiQ8F9xIBf8AAKggEzW IQWXI+ISKlyZyL136Ypfmsw6CUHAjoIWVj89spKg50cMCW0jfRtHr/sL8cr2qtjNur2L tH91EP2HjOwwkopdcgaJ9NR/ecNcI78RgSPo3/ijJWRndA+yzQkMHnxqvrxf4Mnuv0T6 T2mTMrpaZaceoxWy1Ed1LsLxZ8aS/bXMgykWUXCEnWTAcQF8WGUZ8bp8UM54jC6dvO6e 9heQ== X-Gm-Message-State: AOAM5331oPNfVOYWGrz20iJ74edyttJ7n8KiBvLncEdsFCGoHVXkSNZj +IuSucPx0GBAQqim3AE/1bk5kAmCOs1Edt54ZAZbEg== X-Received: by 2002:a63:5c4a:: with SMTP id n10mr11952006pgm.279.1623103252950; Mon, 07 Jun 2021 15:00:52 -0700 (PDT) MIME-Version: 1.0 References: <20210527042356.3983284-1-sathyanarayanan.kuppuswamy@linux.intel.com> <20210527042356.3983284-4-sathyanarayanan.kuppuswamy@linux.intel.com> <2aba694b-ec36-d57f-06e0-a269f9953bb3@linux.intel.com> In-Reply-To: From: Dan Williams Date: Mon, 7 Jun 2021 15:00:42 -0700 Message-ID: Subject: Re: [RFC v2-fix-v1 3/3] x86/tdx: Handle port I/O To: "Kuppuswamy, Sathyanarayanan" Cc: Peter Zijlstra , Andy Lutomirski , Dave Hansen , Tony Luck , Andi Kleen , Kirill Shutemov , Kuppuswamy Sathyanarayanan , Raj Ashok , Sean Christopherson , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 7, 2021 at 2:52 PM Kuppuswamy, Sathyanarayanan wrote: > > > > On 6/7/21 10:17 AM, Dan Williams wrote: > >> Did it answer your query? > > Yes, all but the concern of printk recursion. > > I think recursion is not possible because printk will > handle it (using console_lock). If another print is > triggered during the current printk handling, it will > be directed to logbuf and delayed. > > https://elixir.bootlin.com/linux/latest/source/kernel/printk/printk_safe.c#L382 That depends on printk_nmi_direct_enter() to set the context, wouldn't an equivalent printk_ve_direct_enter() context flag be needed as well?