Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1712920pxb; Fri, 20 Aug 2021 12:02:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4hIK6ABTjRrlz8IIfBeCoTXds7SoKbrZhuE0ZGvBCCIh+zy9OHxIhrBCxJpLw+ZnzfB9W X-Received: by 2002:a05:6e02:1888:: with SMTP id o8mr14511630ilu.124.1629486140680; Fri, 20 Aug 2021 12:02:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629486140; cv=none; d=google.com; s=arc-20160816; b=ivgPXXAx5JnyjOkk7KEnsuiI7Q2lQDXIIYW69CVZ0c5N/ES8LB+K3Kmk6Vg8a6ryOn TYftcfAH+7M3xJAAtF+G1aqxE/VYLgk50AcMlJOGmbM18GOg0rPBcLCQS0CYAGf42unR 5zvgkgawNqPFLyhPNizKI69auLgsNxVJOP6l3IzkqYIc2fXPw01c3/JyzitAlgd98OST RhHWckbWT1LKwW2QO2p21bXV3fwgyAMMxVWO6Z/gAP1MKhl4PvYDwUw3K6VGHIu0UY+a J1Evp3LfncX66HPJro9pJmTcUCDEsK+QxMXC0nWKF2xFVM5MTNQWWp96v7wcd6xreDol JGRg== 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; bh=nQsayGOzUGH6QDFn3Yvh6FpYChv/W+Obo6lI1lSM73g=; b=qB4OJ8eSldQH1W0WiRUvZLNNKM/lMKB+yQEKVucCqAzKNhzf72/8UoVlLap00D1o6v 06CyMhTijTmWW17nas9ZXTVWp+knvmLKG7uvHTZlXONkuI/LE2BTDBvGfkmn5xbhWl/j Ulswr7Z0kprMuHIBs6aLB5f6k3l6XcuL+vGYoAK1ffcNIVX6UmLb3AuKwxPry4YcNEhe 264iWz7dP1A7BasPNeeSuB+i2yF2kGK6DEE0B7Emv6LPYcimW6N4qLzQVHjygoP2Sjk3 AYUM3E6Jvd/wtBdSQJdzC2gZP6OWL2DrcCCfjChPZtMc/85425cJZvN98H4JHCmCt9sj 0czQ== 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 i13si8352696jaj.35.2021.08.20.12.02.09; Fri, 20 Aug 2021 12:02:20 -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 S234973AbhHTTBq (ORCPT + 99 others); Fri, 20 Aug 2021 15:01:46 -0400 Received: from mga17.intel.com ([192.55.52.151]:4596 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbhHTTBq (ORCPT ); Fri, 20 Aug 2021 15:01:46 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10082"; a="197082645" X-IronPort-AV: E=Sophos;i="5.84,338,1620716400"; d="scan'208";a="197082645" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Aug 2021 12:01:08 -0700 X-IronPort-AV: E=Sophos;i="5.84,338,1620716400"; d="scan'208";a="506580400" Received: from jmorauga-mobl.amr.corp.intel.com (HELO skuppusw-mobl5.amr.corp.intel.com) ([10.209.135.55]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Aug 2021 12:01:06 -0700 Subject: Re: [PATCH v5 06/12] x86/tdx: Get TD execution environment information via TDINFO To: Andi Kleen , Borislav Petkov Cc: Thomas Gleixner , Ingo Molnar , Peter Zijlstra , Andy Lutomirski , Peter H Anvin , Dave Hansen , Tony Luck , Dan Williams , Kirill Shutemov , Sean Christopherson , Kuppuswamy Sathyanarayanan , x86@kernel.org, linux-kernel@vger.kernel.org References: <20210804181329.2899708-1-sathyanarayanan.kuppuswamy@linux.intel.com> <20210804181329.2899708-7-sathyanarayanan.kuppuswamy@linux.intel.com> <174d5062-3618-4343-bdfb-22b5cd2662f8@linux.intel.com> <5c4b8cff-ebc0-515f-acb3-aee53f955e4c@linux.intel.com> From: "Kuppuswamy, Sathyanarayanan" Message-ID: <428c09d3-f636-2a99-e394-e46b57c38b29@linux.intel.com> Date: Fri, 20 Aug 2021 12:01:04 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <5c4b8cff-ebc0-515f-acb3-aee53f955e4c@linux.intel.com> 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 8/20/21 11:58 AM, Andi Kleen wrote: > > > Without working TDCALLs the error message won't appear anywhere. The only practical way to debug > such a problem is a kernel debugger. > > Also printing an error message might end up recursing because the console write would trigger TDCALL > again, or eventually stop because the console lock is already taken. In any case it won't work. Yes, good point. In this case, adding debug print will not work. But I can add more comments to the code. -- Sathyanarayanan Kuppuswamy Linux Kernel Developer