Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3588874pxj; Mon, 7 Jun 2021 14:53:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyz7pGfwvEuCIb6o38S0Fk/GvC3PwdFC+8q0StIxYvu1guGYka76DnE3ZMcQTGKFV3fXSi0 X-Received: by 2002:a05:6402:b1a:: with SMTP id bm26mr22361820edb.387.1623102827893; Mon, 07 Jun 2021 14:53:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623102827; cv=none; d=google.com; s=arc-20160816; b=E9txVOTqsp4YxH8JT5mr7K1KwpLeuZwTXKHN7+KpoaAAy91PK/1EV176zqcRnIIyrO xAvgKRuloHgEXLgfUJL4o2xTIKq3NHCkaoevg0BebKlxLFJETQ4X6rIFSDZS9OxgYAdb tDd8pSFmQJ2EsP6lIVvSsPM/GieDpSwCAuo6GUALdDr/g6jYmhyCtmdRhAVY71GdCuRj 5ROPfH32ejQZXJU13Xkkep98UEpkO3vrdWRFPTFABpafwgRrIvsbDs45H3eAumkYiszr sCm6ihKeXk1tyfr8OMpEzwJUi88WHB+x3JsFLFseKQNgwsMYazP7iidwg3y+82bxaNjm jMCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=y34n/C2/APaedTiTibH294HTAi7ZL//VXJvLrl3jf+k=; b=Eyc1miR/DChDQ5G3haI+rLFo8qUyDrgMD6fuEnouYP8VJjRdlIRSm2S6dkZ/jZkAve vRkVIEWJON74fdXquYa+sMmlikX2/oMNp2TChfl4RttsXgAz36FQu3ZLQKqyrciBft1S ECtLOZVgoeiyxwBZQHpFORHz3x41TzkT5w1sEDgjD+f6yHbfKjLPB9MUX45od5tk8el3 tKMN2P2xFIO509MzjlV+CY8G+jpmUja0NhJUUzUhZc8N1WLsxegM4xbPmqssPiDyFhVs OFen1CRr+7i+kb8NSZIqzlLs7R8V1cRCMneD0ulXMzcuTPsLaVp6A0IkDuk1a7bax6n/ eokA== ARC-Authentication-Results: i=1; mx.google.com; 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 e25si13179016ejm.685.2021.06.07.14.53.24; Mon, 07 Jun 2021 14:53:47 -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; 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 S231165AbhFGVyO (ORCPT + 99 others); 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