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=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 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 15955C47082 for ; Mon, 7 Jun 2021 21:52:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F133E61208 for ; Mon, 7 Jun 2021 21:52:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231185AbhFGVyO (ORCPT ); Mon, 7 Jun 2021 17:54:14 -0400 Received: from mga06.intel.com ([134.134.136.31]:59257 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230359AbhFGVyN (ORCPT ); Mon, 7 Jun 2021 17:54:13 -0400 IronPort-SDR: QxUsVQvhHaI40VlgjfunMvB79wBipanx9QzOeB7BD5J+5zFkS3GW8n3LKCuOlwCsk3As3eyBk2 oujirIKL2U5g== X-IronPort-AV: E=McAfee;i="6200,9189,10008"; a="265872465" X-IronPort-AV: E=Sophos;i="5.83,256,1616482800"; d="scan'208";a="265872465" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2021 14:52:09 -0700 IronPort-SDR: l9vvd8gzcND4FQkTfOq1fqytD5uK+SHg/6kGl2eWzJzBFcdmlwhJBg4CO0gOZxLk/3Emj41hmL On1yW0s5J9WQ== X-IronPort-AV: E=Sophos;i="5.83,256,1616482800"; d="scan'208";a="619084289" Received: from ssanje1x-mobl1.amr.corp.intel.com (HELO skuppusw-mobl5.amr.corp.intel.com) ([10.251.153.170]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2021 14:52:05 -0700 Subject: Re: [RFC v2-fix-v1 3/3] x86/tdx: Handle port I/O To: Dan Williams Cc: Peter Zijlstra , Andy Lutomirski , Dave Hansen , Tony Luck , Andi Kleen , Kirill Shutemov , Kuppuswamy Sathyanarayanan , Raj Ashok , Sean Christopherson , Linux Kernel Mailing List 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> From: "Kuppuswamy, Sathyanarayanan" Message-ID: Date: Mon, 7 Jun 2021 14:52:02 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > -- Sathyanarayanan Kuppuswamy Linux Kernel Developer